NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi!

I am using imposm to import data downloaded from OpenStreetMap. I am trying to generate map images using MapServer, using the guide from here: https://github.com/mapserver/mapserver/wiki/RenderingOsmDataOnUbuntuv2

When I import the data to my PostgreSql database using imposm, everything goes fine. But in the basemap XML there are a couple of problems. The following tables are not generated:

osm_new_landusages_gen00  
osm_new_waterways_gen0  
osm_new_waterways_gen1

But these tables are referenced in the basemap MapServer XML.

The following pictures show the problem. The first is my result, the second is the expected (from OpenStreetMap website map): alt text alt text

Thanks for any help!

Edit:

Now my maps look better and the tables are generated, still, the water area is not fixed. I found another example for problematic data:

alt text

asked 08 Jul '13, 11:21

Aston's gravatar image

Aston
1111
accept rate: 0%

edited 08 Jul '13, 14:31


The basemap uses a custom Imposm mapping. See imposm-mapping.py

You need to import with: imposm --mapping path/to/imposm-mapping.py ...

permanent link

answered 08 Jul '13, 12:46

olt's gravatar image

olt
763
accept rate: 0%

Thanks! I am checking it out. The tables are getting generated but the water area is still oddly missing unfortunately. I also had to switch to the basemaps 6-2 branch ...

(08 Jul '13, 13:50) Aston

The maps look much better now with the mapping file, but still, the odd missing water area problem persists : -(

(08 Jul '13, 14:17) Aston

Do you see these errors when you zoom in? If not, then you should try a newer version of Imposm (pip install https://github.com/omniscale/imposm/archive/master.zip) We fixed some issues during generalization.

(09 Jul '13, 07:31) olt

I tried with this latest version, but the same problem exists unfortunately. Is there any debug to catch elements that could not be processed? My original problem with the missing water area is like one well defined element that is just clearly missing from all zoom levels. The other problem, as you said, only appears on certain zoom levels.

(09 Jul '13, 12:01) Aston

You should try the latest version from GitHub and not the latest release (in case you didn't). You should also make sure that the geometry is completely included in you OSM extract (where did you get that extract?). Then there is the possibility that the geometry itself is broken. You could tweak imposm.config https://github.com/mapserver/basemaps/blob/master/imposm-mapping.py#L27..L33 and set import_partial_relations to True and/or change relation_builder to 'union' and see if the geometry gets imported.

permanent link

answered 12 Jul '13, 07:20

olt's gravatar image

olt
763
accept rate: 0%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×362
×196
×165
×14

question asked: 08 Jul '13, 11:21

question was seen: 6,461 times

last updated: 12 Jul '13, 07:20

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum