Select to view content in your preferred language

Change direction of polygon vertices (CW to CCW)?

4973
5
06-10-2013 06:54 AM
BrettBeliveau
Occasional Contributor
I am having problems getting a polygon to render when exported into a kmz file.  Some research of this problem has pointed out that GE has a problem shading polygons that are drawn clockwise, which is the case with my polygon.  The polygon is much too complex for me to redraw CCW, so I was wondering if there is some way for me to edit the existing polygon and just change direction of the vertices?
TIA for any help
Brett
Tags (2)
0 Kudos
5 Replies
Robert_LeClair
Esri Notable Contributor
Brett -

How did you convert the feature class to kml/kmz?  Did you use the Layer to KML GP tool?  What I've been able to determine so far:

"ArcGIS counterclockwise vertices define the exterior boundary of a polygon and clockwise is used to define the interior boundary of a polygon. For example if a polygon has a hole inside, the outer boundary would be defined counterclockwise, the inner boundary would be defined clockwise. In KML, everything should be counterclockwise."

A possible workflow to consider:

    1.  Run the Check Geometry tool to check for geometry errors.
    2.  Run the Fix Geometry tool to fix any geometry errors.
    3.  Run the Layer to KML tool
    4.  What is the result in GE?

I'll monitor this thread for information.  Good luck!

Regards,

Robert LeClair
Esri-Denver
0 Kudos
BrettBeliveau
Occasional Contributor
Robert,  that's exactly what's happening.  For some reason, this one exterior polygon, out of the 45,000+ in the shp file, is clockwise and the interior polygons are counterclockwise.  Therefore, the interior ones show up shaded and the exterior polygon not.  I ran check and repair geometry to no avail. The interior polygons are actually exterior polygons for another value in the table. If I import the shp file into CAD and reverse the direction of the polyline and then export it as a shp file, it does not recognize the interior polygons.  Is there no way to reverse direction in Arc?
0 Kudos
Robert_LeClair
Esri Notable Contributor
I found a possible solution - select the polygon in question and run the "Feature to Polygon" GP tool.  This should reorder the vertices.  What is the result?  Please advise.
0 Kudos
BrettBeliveau
Occasional Contributor
Just my luck, it says I don't have a license to execute that tool......is there any other way?
0 Kudos
Robert_LeClair
Esri Notable Contributor
You do have some options:

1.  If you know of someone with an Advanced license, then perhaps they may convert the feature class for you.
2.  There is ET Geowizard from http://www.ian-ko.com/ that has a free function of line to polygon.  Convert the polygon to line in ArcGIS, then apply the line to polygon in ET Geowizard.
3.  Upgrade to an Advanced license (probably not what you want to hear...)

Hope this helps!
0 Kudos