Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

problems with diff import for multipolygons #2116

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

problems with diff import for multipolygons #2116

openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments

Comments

@openstreetmap-trac
Copy link

Reporter: schuetzm[at]gmx.net
[Submitted to the original trac issue database at 7.42am, Friday, 31st July 2009]

osm2pgsql doesn't seem to correctly handle diffs affecting multipolygons:
http://www.openstreetmap.org/?lat=49.926286&lon=11.585866&zoom=18&layers=B000FTF

The building called "Angewandte Informatik" is a multipolygon, which has been moved one and a half weeks ago. Both the old and the new shape are rendered now, and the hole is filled too.

See also the attached screenshot.

@openstreetmap-trac
Copy link
Author

Author: jburgess777[at]googlemail.com
[Added to the original trac issue at 10.55pm, Friday, 31st July 2009]

The data in the Mapnik rendering DB shows that it currently has two entries, the second one is causing the problem:

gis=> select osm_id,name,building,NumInteriorRings(way),astext(way) from planet_osm_polygon where osm_id in (8629,-8629,23482307,23482308);
  osm_id  |         name          | building | numinteriorrings |                                                                                                                  astext
----------+-----------------------+----------+------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    -8629 | Angewandte Informatik | yes      |                1 | POLYGON((1289716.68 6433574.35,1289787.21 6433574.35,1289787.26 6433483.45,1289716.89 6433483.42,1289716.68 6433574.35),(1289740.55 6433547.14,1289740.77 6433504.37,1289765.15 6433504.37,1289765.06 6433547.31,1289740.55 6433547.14))
 23482307 | Angewandte Informatik | yes      |                0 | POLYGON((1289711.93 6433568.51,1289781.82 6433568.53,1289781.85 6433482.45,1289711.95 6433482.43,1289711.93 6433568.51))

I'll try to recreate the sequence of diffs which occurred to see if I can trigger this to happen again.

@openstreetmap-trac
Copy link
Author

Author: jburgess777[at]googlemail.com
[Added to the original trac issue at 6.50pm, Friday, 21st August 2009]

The full import last week has fixed this. Is rendering OK now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant