AnsweredAssumed Answered

Examples of Geometry object - polygon and intersect

Question asked by laurablackburn on Jun 10, 2015
Latest reply on Jun 11, 2015 by rfairhur24

I have many polygon layers and one roads layer.  I am trying to essentially clip the roads layer by each polygon in my polygon layers (one polygon at a time) in order to retrieve the total length of roads within each polygon in my list of polygon layers.  When I use arcpy.Clip_analysis this takes a very long time.  So, I have been pointed to the geometry objects on the polygon class.  I typically use the code snippets in the help to aid in my code writing.  However, with this example the code provided seems useless to me.  Does anyone have a good example of how to use the geometry object to intersect another layer and return the length of the lines that fell inside the polygon?

Outcomes