Tuesday, 19 January 2016

arcgis desktop - Why are These KML Polygons Not Filled With Assigned Colour in Google Earth?


In ArcGIS Desktop 10.2.2 I converted a Feature Class into a KML using "Layer to KML (Conversion)".


The polygons in that KML look like this in Google Earth.



enter image description here


Why are (most of) the polygons rendering "oddly", that is, lacking a solid fill colour, and often mostly entirely absent?




@MichaelStimson provided the solution (to run Repair Geometry tool). See results below.


enter image description here



Answer



It seems that your geometries have errors, either self intersections or incorrect ring orientations which make them unsuitable to display in KML. According to https://github.com/Ecotrust/madrona/issues/186 KML insists on clockwise (exterior?) ring orientation.


Run Repair Geometry on your data before exporting to KMl to fix common geometry problems.


Repair geometry is the first thing I do when a feature class doesn't behave as it should.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...