[OSM-dev] XAPI and other solutions
Toby Murray
toby.murray at gmail.com
Sun Apr 24 17:32:00 BST 2011
On Sun, Apr 24, 2011 at 5:43 AM, Pierre-Alain Dorange <pdorange at mac.com> wrote:
> Yes, but they are huge...
> My original place=* for france is 50 MB (not compressed).
>
> France extract if 2 GB compressed, i don't think my python script was
> able to handle such a huge data.
That's why you use osmosis to trim it down to what you want.
The following osmosis command gives me a 34 MB XML file when run on
the France PBF file from geofabrik.
osmosis --read-pbf france.osm.pbf \
--tf accept-ways "place=*" \
--tf accept-nodes "place=*"
--tf accept-relations "place=*"
--write-xml france_place.osm
Toby
More information about the dev
mailing list