This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Residual Polygons

0

Hi,

I am attempting to use JOSM and so far I have been using it successfully. I am using it in conjunction with SUMO. However not so long ago I found a problem which has gotten me stuck. So help would be greatly appreciated!

I downloaded a map from OSM, left it as it is, used polyconvert (from SUMO), and it worked out fine.

Then I spent some time simplifying the map using JOSM. (Deleting and modifying some of the nodes and polygons which I found to be unnecessary for my project.) After doing so, I tried using polyconvert once again, and the following error popped up:

'Error: Polygon "(With polygon number)" has no shape.'

At first I thought that there were some extra polygons not specified in my file, so I intentionally left a single node in the file and tried using polyconvert again. And the same error arises!

Now for me, it is impossible to remove all the work I have done on the map and start over, as I spent many hours modifying it. Therefore the way I see it, there are two solutions (which I do not know how to do!).

1) Copy the deleted polygons from the original file.

2) Remove any possible residuals of the polygons which I deleted.

Obviously I prefer solution (2) but I do not know how to do it..any help would be immensely appreciated! Thanks!

asked 20 Oct '13, 10:34

dmag0006's gravatar image

dmag0006
11112
accept rate: 0%

edited 22 Oct '13, 19:01

Richard's gravatar image

Richard ♦
30.9k44279412


One Answer:

0

In polyconverter, you can use the option --ignore-errors as True

answered 23 Jan '23, 08:59

prapul's gravatar image

prapul
1
accept rate: 0%

Source code available on GitHub .