This is in some way related to my last post about collapsing geometry using da.InsertCursor.
That was solved by input from Chris Fox, thanks again.
My problem was a whole bunch of very badly captured polygons, many overlapping when they should'nt.
The input coord lists need to be reviewed and fixed.
I built a topology on these polygons and exported them to a poly fc.
This works, but you just get another bunch of overlapping polys. Understandable enough but not really what I wanted.
So started playing with all the geometry methods stuff. Fantastic, thank you the gurus at esri.
My routine attached here takes a poly fc with 6 overlapping circular polys, each has a "Name" - "1", "2", "3" etc. See jpg 1.
Then builds (after a lot of faffing about with dictionaries and lists) a set of non-overlapping polys, each of which has a text string of the identifiers of the input polys that make up this poly. Also add a count of the inputs for symbolisation purposes.
Output see jpg 2.
The real joy here is the ability to manipulate the geometry objects within a dictionary (or whatever you want), interact with them, compare them to others etc etc. Absolutely brilliant (the geometry methods, not my code to do it!)
Opens up a whole new way do doing analysis.
The routine is pure python / arcpy, it is not a tool! All paths hard coded and so forth. If you want to try this, need to look long and hard at the code and modify to suit.
Cheers,
Neil
That was solved by input from Chris Fox, thanks again.
My problem was a whole bunch of very badly captured polygons, many overlapping when they should'nt.
The input coord lists need to be reviewed and fixed.
I built a topology on these polygons and exported them to a poly fc.
This works, but you just get another bunch of overlapping polys. Understandable enough but not really what I wanted.
So started playing with all the geometry methods stuff. Fantastic, thank you the gurus at esri.
My routine attached here takes a poly fc with 6 overlapping circular polys, each has a "Name" - "1", "2", "3" etc. See jpg 1.
Then builds (after a lot of faffing about with dictionaries and lists) a set of non-overlapping polys, each of which has a text string of the identifiers of the input polys that make up this poly. Also add a count of the inputs for symbolisation purposes.
Output see jpg 2.
The real joy here is the ability to manipulate the geometry objects within a dictionary (or whatever you want), interact with them, compare them to others etc etc. Absolutely brilliant (the geometry methods, not my code to do it!)
Opens up a whole new way do doing analysis.
The routine is pure python / arcpy, it is not a tool! All paths hard coded and so forth. If you want to try this, need to look long and hard at the code and modify to suit.
Cheers,
Neil