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

Hi All

I got the map data source in .shp formate so I use JOSM to save it as .osm format and then osm2pgsql it into database. However the converted .osm seems not be able to properly rendered by my tile server because there is nothing showing in my browser while my other map layers can still show normally.

I have checked there is some meta tiles generated like 136.meta, 8.meta, etc in the renderd folder /var/lib/mod_tile/layer/. However my browser does not show anything. I am running my own tile server by the way following the switch2osm tutorial.

The only thing difference between the converted .osm and normal .osm is that JOSM editor assigned negative ids to the nodes in the map. Is that the reason why this is happening? How should I solve this?

Thanks guys.

alt text alt text alt text

asked 13 Sep '15, 09:06

dalishi's gravatar image

dalishi
1264411
accept rate: 0%

edited 14 Sep '15, 04:28


Are your meta tiles perhaps all the same size? Then they're likely empty. Perhaps because the OSM data you created was either not imported at all (count the number of objects in your postgres tables) or the data was imported, but did not have the proper tags. What kind of shape files did you use and what did you expect to see on the map?

permanent link

answered 13 Sep '15, 13:33

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Hi @Frederik Ramm thanks for your reply. I followed your checking advices. (1)The meta tiles are of different size. (2) count number of objects: 23. Please check my previous post where I added the screen shot. (3) The tags. The JOSM converted .osm does include certain tags. Please also see my added screen shot. But I am not quite sure what is the "proper tags" you mentioned that is necessary for rendering. The .shp file is from our own team which is generated by ArcGIS. We want to render the data just as we render the osm data.

(14 Sep '15, 04:27) dalishi

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:

×622
×287
×33

question asked: 13 Sep '15, 09:06

question was seen: 2,826 times

last updated: 14 Sep '15, 04:28

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