[Tile-serving] [openstreetmap/osm2pgsql] Some towns from Belgium are not imported (#941)

Tobia De Koninck notifications at github.com
Wed Aug 7 08:01:52 UTC 2019


Hi

First of all, thanks for maintaining this library. It's very useful for my project.
I mostly use it to get the geometry in postgis format for importing in my own postgis database.

However, when importing Belgium (http://download.geofabrik.de/europe/belgium.html) two towns are not imported into the polygon table, these are:

  - `Eupen` (2400207) https://www.openstreetmap.org/relation/2400181
  - `Raeren` (2400181)  https://www.openstreetmap.org/relation/2400207
 
As you can see on the osm.org links, these have a complex border with Germany.
I'm running osm2pgsql with: `-S /workdir/empty.style -lc --hstore --keep-coastlines --slim` arguments, but with the Nominatim settings: `-S /workdir/import-full.style -lsc -O gazetteer --hstore --slim` it also does not seem to work correctly.

Both relations end up in the `rels` table.
Is there anyway to debug why these are not imported? I don't seem to find any specific logging. 
My guess is that the geometry of these two relations are invalid. Is there anyway I can report these? Is there maybe a way to let osm2pgsql handle the invalid geometries?

I exported the 2400207 town to a pbf file using `./osmium getid -r belgium-190801.osm.pbf  r2400207 -o output.osm.pbf`. I attached this file here, it may be useful for debugging.

[eupen.osm.zip](https://github.com/openstreetmap/osm2pgsql/files/3475889/eupen.osm.zip)

Let me know if you need more information and thanks in advance!

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/941
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20190807/21df7cc2/attachment.html>


More information about the Tile-serving mailing list