bdxd111 / JOSM-Polygon-Cut-Out

GNU General Public License v3.0
1 stars 1 forks source link

Unable to split some polygons with "The selected line does not start and end on a polygon" error #7

Open Talkless opened 1 year ago

Talkless commented 1 year ago

Please try splitting this forest:

https://www.openstreetmap.org/way/71615416

What I get is The selected line does not start and end on a polygon error for the reason I don't understand"

image

I ant to split this multipolygon into parts because it's actually multiple forests with different names.

bdxd111 commented 1 year ago

The problem looks to be an inner polygon consisting of 2 ways https://www.openstreetmap.org/way/1157130857 https://www.openstreetmap.org/way/1156875078

When I removed those 2 ways from the relation the splitting seemed to work fine.

Multipoligons can only have closed ways as members,and can not have more than 1 outer way. It is kind of rare so there is no dedicated error message.

pelderson commented 1 year ago

Was the MP fully loaded? If not you get that error message. After 'download incomplete members' the plugin should work fine.

Talkless commented 1 year ago

The problem looks to be an inner polygon consisting of 2 ways https://www.openstreetmap.org/way/1157130857 https://www.openstreetmap.org/way/1156875078

I've refactored so there's one circular way as inner, and now it works!

Let's home google with bring other mappers to this issue :) . Or maybe error message could show problematic ways? Or that's "too much"?