[OSM-dev] XAPI and other solutions

Pierre-Alain Dorange pdorange at mac.com
Sun Apr 24 18:20:16 BST 2011


Toby Murray <toby.murray at gmail.com> wrote:

> > 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

That sound nice, i'll try osmosis (never try before)...
First attempt just point some (small) troubles, osmosis cause a strange
error, probably an installation trouble or a lib missing.

Its seems that osmosis require Java 6 and i got Java 5 on mac MacOS X
10.5.x, Java SE6 is there but only for 64 bits... 

-- 
Pierre-Alain Dorange
OSM experiences : <http://www.leretourdelautruche.com/map/>




More information about the dev mailing list