Timeline for Cutting polygon using line - cutter, cut() - using ArcPy?
Current License: CC BY-SA 3.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 10, 2016 at 0:00 | history | edited | PolyGeo♦ |
edited tags
|
|
Aug 25, 2015 at 21:00 | vote | accept | BritishSteel | ||
Jul 20, 2015 at 21:57 | history | edited | PolyGeo♦ | CC BY-SA 3.0 |
Removed tag prefix from question title as per Jeff Atwood style preference
|
Jul 20, 2015 at 15:38 | answer | added | Emil Brundage | timeline score: 3 | |
Jul 20, 2015 at 15:17 | comment | added | Tristan Forward | Let us continue this discussion in chat. | |
Jul 20, 2015 at 15:06 | comment | added | Tristan Forward | Try removing polygons.deleteRow() from the code. It's just the index. For example "myList = [A, B, C]" a = index 0, b index = 1, c index = 2 and so on | |
Jul 20, 2015 at 15:01 | comment | added | BritishSteel | You mentioned the "polygon[1]"; what is it actually doing, or why is it causing the problem? | |
Jul 20, 2015 at 15:00 | comment | added | BritishSteel | Creating a copy is a very good idea, and an easy way to avoid that issue, good call! I've use the code from the other topic now, but the issue persists. It always splits only one polygon, and deletes any other polygon the line runs through. If I have polygons that are not crossed by the line, then those polygons are not touched. So it always leaves me with the untouched polygons as well as one split polyon. | |
Jul 20, 2015 at 12:28 | comment | added | Tristan Forward | Try using the code at the very start of the post. This is the one you need I believe, as it updates the geom each time. If your still running into issues with it deleting the other features have it create a new featureclass and write the new polygons to that one versus back in on itself, as how this script is doing at the moment. The "polygon[1]" at the end of the script is what is causing you problems. | |
S Jul 20, 2015 at 12:13 | history | suggested | Michael B |
Added two new tags.
|
|
Jul 20, 2015 at 12:01 | comment | added | BritishSteel | I tried this code earlier today but it only cuts one polygon, deleting all the others. Or did I miss something? :-) Furthermore I would like to export the result into a separate file, without overriding the original polygon file. | |
Jul 20, 2015 at 11:42 | review | Suggested edits | |||
S Jul 20, 2015 at 12:13 | |||||
Jul 20, 2015 at 11:36 | comment | added | Tristan Forward | You are correct that documentation on the cut feature is lacking. Try this implementation below. Note: You also need a polyline feature to cut the polygon feature with. gis.stackexchange.com/questions/124198/… | |
Jul 20, 2015 at 11:29 | history | asked | BritishSteel | CC BY-SA 3.0 |