Select to view content in your preferred language

accessing fields of geometry object using Python scripting

619
0
11-01-2010 02:00 PM
David_JAnderson
Regular Contributor
I'm working on a script that defines some points along a polygon, draws line between some of those points, then finds the intersection of the lines and used those points to draw some new polygons.
I can figure out how to do everything by reading and writing to temporary features classes/shapefiles stored on disk.  I thought it would be interesting to see if I could do the process using geometry objects.  Creating the geometry objects and using them in the intersect to create another geometry object works.  What is not working is accessing the attributes.

When using the Intersect geoprocessing tool, one option is to keep all of the attributes from the input feature classes.  I can not figure out how to do the same thing when using geometry objects instead of feature classes as the inputs.  The points are created but I can not see how to access any attributes besides ID, X and Y.
0 Kudos
0 Replies