Select to view content in your preferred language

How do I convert polygons in JSON to KML?

1168
1
05-16-2020 07:45 AM
MarcHillman
Regular Contributor

I have a large number of adjacent polygons which I have reduced to a much smaller number of polygons using the ArcGIS REST API (union operation). I have the result in JSON. I have mostly OuterBoundary, but there will be a few InnerBoundary. How do I convert this to KML using the ArcGIS REST API? I don't wish to do it manually because of the inner/outer ring complication.

Tags (2)
0 Kudos
1 Reply
MarcHillman
Regular Contributor

I did the conversion to KML 'manually'. Wasn't too hard to determine polygon winding direction - used shoelace formula. 

0 Kudos