mapsforge-map-writer bbox required

329 views
Skip to first unread message

Neil Boyd

unread,
Apr 9, 2012, 3:28:03 PM4/9/12
to mapsfo...@googlegroups.com
I've created a country osm.pbf from planet using a polygon and I want to make a map from it.  When I use the map writer osmosis plugin I get this error:

SEVERE: No valid bounding box found in input data.
Please provide valid bounding box via command line parameter 'bbox=minLat,minLon,maxLat,maxLon'.
Tile based data store not initialized. Aborting...

I don't have a bounding box because I used a polygon.  I could add bbox=-90,-180,90,180 to get rid of the error, but that doesn't seem like the best solution. Is there a better way of generating the map from a polygon?

Neil

Neil Boyd

unread,
Apr 10, 2012, 3:58:16 PM4/10/12
to mapsfo...@googlegroups.com
Okay, I answered my own question.  I converted the polygon to a bounding box using a slightly modified version of poly2osm.pl from here


And used that to specify the bbox.

Neil
Reply all
Reply to author
Forward
0 new messages