1

I have used Osmosis to load a large cut of OSM into a PostGIS DB, that works great. BUT, I would like to use the OSM-Bright style (carto CSS) to style it in TileMill and built tiles, offline. Going through the OSM-Bright user guide/install etc. there is no option to configure it to use an Osmosis schema (only osm2pgsql and imposm).

On windows osm2pgsql will not import very large OSM datasets hence the Osmosis route to get me this far.

Is there a way to style my data imported with Osmosis, or modify my DB so it is in the correct schema (the schema osm2pgsql uses)?

0

Osmosis stores the OSM data in the same way as the editor uses it: nodes, ways and relations.

One of the time consuming tasks of osm2pgsql is to convert closed ways and multipolygon relations to multipolygons that can be used for rendering, as well as defining a rendering order of features that overlap like bridges over ways or other buildings. This is not done by osmosis, and doing that manually will be quite a pain.

What you can do:

  • Cut the large OSM dataset with osmfilter or osmconvert in smaller, overlapping rectangles, and render those one after each other
  • install Oracle virtual box with a current Ubuntu, and render the tiles inside the virtual box
  • Great points. To clarify, if i did it on Ubuntu, could i then use osm2pgsql. Is there no way to have osm2pgsql act on the data i have in the DB currently...or is the pointless? – user965586 Nov 18 '14 at 17:16
  • The data already inserted with osmosis is useless for rendering. I'm not sure where the limit is for osm2pgsql on windows. I have recently imported a 465MB pbf file successfully. For ubuntu, there is no limitation reported. – AndreJ Nov 18 '14 at 19:44
  • Great answer. I'll change my process and report back anything interesting – user965586 Nov 18 '14 at 19:47
  • Windows does not have any limitations as well. For a fairly new version of osm2pgsql have a look at github.com/openstreetmap/osm2pgsql/issues/17 – Benjamin Nov 18 '14 at 23:59
  • @Benjamin "if you try to use the planet-latest.osm.pbf it crash" does not look promising... – AndreJ Nov 19 '14 at 4:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.