This project has moved and is read-only. For the latest updates, please go here.

SharpKML -Terrific

May 31, 2011 at 11:04 AM

This is an awesome piece of work. Golly I have been programming for over 40 years and I wish I could write code like this. I am so impressed with the detail of this and the fact that it supports kml2.2 also. Well done Sam Cragg and whoever else wasinvolved in the development of this very neat piece of work. I hope myself to put it to a very good use.

May 31, 2011 at 10:51 PM

Thanks for the kind words!

If you need any help with using it or suggestions for missing features then please let me know.

Sam

Jun 1, 2011 at 5:30 PM

Dear Sam,

 

Yes I have one query. I don't seem to be able to substitute my own kml for your Sample.kml and sort Placemarks. The file does load into GoogleEarth ok. Could you advise me on what I may be doing wrong. Many thanks.

 The error I get is:-

Unable to find any recognized Kml in the specified file.

 

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.2">
  <Document>
    <Placemark>
      <Style>
        <LineStyle>
          <color>ff0099ff</color>
          <width>1.00</width>
        </LineStyle>
        <PolyStyle>
          <color>7f0066ff</color>
          <fill>1</fill>
          <fill>1</fill>
        </PolyStyle>
      </Style>
      <MultiGeometry>
        <Polygon>
          <outerBoundaryIs>
            <LinearRing>
              <extrude>0</extrude>
              <tesselate>0</tesselate>
              <altitudeMode>clampToGround</altitudeMode>
              <coordinates>104.9034459591750,11.55674431437360,15.041 104.9034506809230,11.55669371585710,14.193 104.9034959699030,11.55670080320840,14.568 104.9034903068150,11.55675451384130,14.601 104.9034459591750,11.55674431437360,15.041 </coordinates>
            </LinearRing>
          </outerBoundaryIs>
        </Polygon>
        <LineString>
          <extrude>0</extrude>
          <tesselate>0</tesselate>
          <altitudeMode>clampToGround</altitudeMode>
          <coordinates>104.9034459591750,11.55674431437360,15.041 104.9034506809230,11.55669371585710,14.193 104.9034959699030,11.55670080320840,14.568 104.9034903068150,11.55675451384130,14.601 104.9034459591750,11.55674431437360,15.041 </coordinates>
        </LineString>
      </MultiGeometry>
      <ExtendedData>
        <Data name="uprn">
          <value>46</value>
        </Data>
        <Data name="Parcel No ">
          <value>01</value>
        </Data>
        <Data name="Surveyor Name">
          <value>MBT</value>
        </Data>
        <Data name="ProDiCoVi">
          <value>
          </value>
        </Data>
        <Data name="AREA">
          <value>28.746</value>
        </Data>
      </ExtendedData>
      <name>Parcel</name>
    </Placemark>
    <Placemark>
      <Style>
        <LineStyle>
          <color>ff0099ff</color>
          <width>1.00</width>
        </LineStyle>
        <PolyStyle>
          <color>7f0066ff</color>
          <fill>1</fill>
          <fill>1</fill>
        </PolyStyle>
      </Style>
      <MultiGeometry>
        <Polygon>
          <outerBoundaryIs>
            <LinearRing>
              <extrude>0</extrude>
              <tesselate>0</tesselate>
              <altitudeMode>clampToGround</altitudeMode>
              <coordinates>104.9034903068150,11.55675451384130,14.601 104.9035359122770,11.55675470513110,13.460 104.9035422951640,11.55670322588970,14.300 104.9034959699030,11.55670080320840,14.568 104.9034903068150,11.55675451384130,14.601 </coordinates>
            </LinearRing>
          </outerBoundaryIs>
        </Polygon>
        <LineString>
          <extrude>0</extrude>
          <tesselate>0</tesselate>
          <altitudeMode>clampToGround</altitudeMode>
          <coordinates>104.9034903068150,11.55675451384130,14.601 104.9035359122770,11.55675470513110,13.460 104.9035422951640,11.55670322588970,14.300 104.9034959699030,11.55670080320840,14.568 104.9034903068150,11.55675451384130,14.601 </coordinates>
        </LineString>
      </MultiGeometry>
      <ExtendedData>
        <Data name="uprn">
          <value>47</value>
        </Data>
        <Data name="Parcel No ">
          <value>
          </value>
        </Data>
        <Data name="Surveyor Name">
          <value>
          </value>
        </Data>
        <Data name="ProDiCoVi">
          <value>
          </value>
        </Data>
        <Data name="AREA">
          <value>29.265</value>
        </Data>
      </ExtendedData>
      <name>Parcel</name>
    </Placemark>
    <Placemark>
      <Style>
        <LineStyle>
          <color>ff0099ff</color>
          <width>1.00</width>
        </LineStyle>
        <PolyStyle>
          <color>7f0066ff</color>
          <fill>1</fill>
          <fill>1</fill>
        </PolyStyle>
      </Style>
      <MultiGeometry>
        <Polygon>
          <outerBoundaryIs>
            <LinearRing>
              <extrude>0</extrude>
              <tesselate>0</tesselate>
              <altitudeMode>clampToGround</altitudeMode>
              <coordinates>104.9035359122770,11.55675470513110,13.460 104.9035237235330,11.55681469130680,13.332 104.9034337415120,11.55680065500580,13.867 104.9034459591750,11.55674431437360,15.041 104.9034903068150,11.55675451384130,14.601 104.9035359122770,11.55675470513110,13.460 </coordinates>
            </LinearRing>
          </outerBoundaryIs>
        </Polygon>
        <LineString>
          <extrude>0</extrude>
          <tesselate>0</tesselate>
          <altitudeMode>clampToGround</altitudeMode>
          <coordinates>104.9035359122770,11.55675470513110,13.460 104.9035237235330,11.55681469130680,13.332 104.9034337415120,11.55680065500580,13.867 104.9034459591750,11.55674431437360,15.041 104.9034903068150,11.55675451384130,14.601 104.9035359122770,11.55675470513110,13.460 </coordinates>
        </LineString>
      </MultiGeometry>
      <ExtendedData>
        <Data name="uprn">
          <value>48</value>
        </Data>
        <Data name="Parcel No ">
          <value>
          </value>
        </Data>
        <Data name="Surveyor Name">
          <value>
          </value>
        </Data>
        <Data name="ProDiCoVi">
          <value>
          </value>
        </Data>
        <Data name="AREA">
          <value>62.183</value>
        </Data>
      </ExtendedData>
      <name>Parcel</name>
    </Placemark>
  </Document>
</kml>