How to extract wkt string from kml file C#

123 views Asked by At

So I’m trying to use ArcGIS Runtime to import and export kml files from a basic map control. I have the export working and I only now have to extract data from the kml file to draw a geometry on the map control.

I am only supporting line, points and polygons. Also single geometries only.

Do I simply try and use linq expressions to walk through the kml file and extract what I need? For example, if it’s a line, point or polygon and then create the WKT string from the coordinates and the shape information? I don’t want to use any third party tools but I can seem to see any relevant examples in the ArcGIS Runtime .NET examples.

0

There are 0 answers