I have downloaded the Geofabrik Australia.osm.pbf extract dated 8/10/12 and loaded into a PostGIS database with osm2pgsql with no errors. However, when I display this data (using OpenLayers and MapServer), I see quite a different picture from what I see when I look at the same area on www.openstreetmap.org. At www.openstreetmap.org lat=-34.932, lon=138.574, zoom=10, I see red, orange and green streets, green park names and quite a few parks, lakes and streams. The same area in my map shows no green streets, no park names and only a couple of parks and lakes: generally much less detail. Yesterday, I loaded the extract dated 7/10/12 and compared it with www.openstreetmap.org and saw much the same differences so it is not just a matter of missing a few updates. How can I best get the more detailed data? Cheers and thanks, Stephen asked 09 Oct '12, 07:07 Stephen C Da... SomeoneElse ♦ |
Today I trashed my PostGIS database and created a new one using imposm (instead of osm2pgsql). I also recreated my map file using a new download of the mapserver-utils in "default" mode. The result is significantly closer to the OSM original but still has less detail. I have searched through the database and confirmed that there are a lot of features in the database that fail to meet any of the criteria in the map file so the bottom line seems to be that I need to manually edit the generated map file to include the ones that I want/need. answered 11 Oct '12, 08:16 Stephen C Da... |
OpenStreetMap's default "mapnik" map layer is generated rendered using Mapnik and not Mapserver. The mapnik styles are here: http://svn.openstreetmap.org/applications/rendering/mapnik/ And extended guide on how to setup mapnik for OSM is available on http://www.switch2osm.org answered 11 Oct '12, 13:21 Firefishy ♦♦ |
While it is always possible that there's a bug in the extraction process, the Geofabrik .osm.pbf extracts will normally contain every object that is in OpenStreetMap. Are you sure that your import and rendering process is working correctly? You could verify that by loading a small amount of data from the region in question through the "export" tab on openstreetmap.org. Can you post a screenshot of how the rendering looks on your machine? answered 09 Oct '12, 08:13 Frederik Ramm ♦ |
Zoom level 10 is quite a way out - depending on its specification, your server may take a while to render those tiles. Perhaps instead look at the differences between this tile on your server and the OSM server. EDIT - extraneous mod_tile-specific stuff removed. answered 09 Oct '12, 11:54 SomeoneElse ♦ I have put screen shots at www.sdc.com.au/osm/osm.png and www.sdc.com.au/osm/mapserver.png. I have also done an export of a small subset of the osm data and will load it into PostGIS ASAP.
(10 Oct '12, 02:43)
Stephen C Da...
|
I have loaded the small set of data exported from osm.org and again the results displayed by MapServer are quite different. (See www.sdc.com.au/osm/osm2.png and www.sdc.com.au/osm/mapserver2.png.) The obvious conclusion is that there is something wrong with my map file. I am using a map file generated by osm-mapserver-utils as documented in the MapServer "RenderingOsmData" section. answered 10 Oct '12, 03:14 Stephen C Da... |