Skip to content

Extension for SharpKML to generate Well Known Text (WKT)

License

Notifications You must be signed in to change notification settings

jeddawson/sharpkml-wkt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sharpkml-wkt

Sharpkml saves the day when it comes to parsing KML files, but I needed these extensions in order to store the polygon and multigeometry objects in a SQL Server db.

Here's how to use it:

//Load your kml just like normal
Parser parser = new Parser();
parser.ParseString(InputKml, false);

//Grab the placemark that has either a MultipleGeometry or Polygon Geomtery object
Placemark placemark = (Placemark)parser.Root;

//Extension doing what it does, giving us well known text ready for inserting into a SQL Geography column
string wkt = placemark.AsWKT();

About

Extension for SharpKML to generate Well Known Text (WKT)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages