AnsweredAssumed Answered

coordinate conversion

Question asked by myhillman on Feb 27, 2018
Latest reply on Feb 27, 2018 by myhillman

I need a little help. I have been successfully reading a number of shapefiles, extracting the polygons, and exporting them as KML. All works well, but now I've hit a shapefile that isn't WGS84. How do I convert all the points to WGS84?


I know the shapefile uses EPSG:2193.

To keep the KML file to a sensible size, I also do a generalize.

Not sure whether I transform "compressed" or "geo" in the code below.

Any help much appreciated.


For Each fragment As Esri.ArcGISRuntime.Data.GeodatabaseFeature In fragments

                Dim compressed As Esri.ArcGISRuntime.Geometry.Geometry = Esri.ArcGISRuntime.Geometry.GeometryEngine.Generalize(fragment.Geometry, My.Settings.TrackSmoothness * DegPerM, True)
                Dim geo As Esri.ArcGISRuntime.Geometry.Polygon = compressed





Skill level - knows enough to be dangerous.