问题
I have a json file with 80ish adjacent counties, represented as individual polygons. Each county, as expected, shares borders with other counties.
I'd like to convert each of those polygons to paths, creating paths symbolizing the borders of every county. At this point, I'd be left with many overlapping or duplicate paths where counties shared borders.
I'd like to find a systematic way to delete these overlapping paths so each line representing a border is only displayed once. By doing so, I'll be able to style the borders individually to fix a problem described in a previous question.
Does such a thing exist? I'm aware of the possibility of deleting shared borders in Illustrator, but many of the county polygons share borders with 3+ other counties, making this incredibly tedious.
Thanks.
回答1:
So, I eventually tackled this problem using ArcMap. My steps:
- Create a shapefile from the json I was using and load into ArcMap
- Import the shapefile into a geodatabase
- Put the file into a feature dataset
- Create a topology (right click on Feature Dataset > New > Topology)
- Add a rule to the topology against overlapping lines
- Find all errors (overlapping lines)
- Use the error inspector to select each overlapping line and Subtract (right click on error) one of the lines
- Took me about 5 minutes to do remove a hundred or so.
来源:https://stackoverflow.com/questions/22183660/many-adjacent-polygons-want-to-convert-polygons-to-paths-and-remove-resultant-d