[OSM-talk] Osmisis Uk Extracting
Frederik Ramm
frederik at remote.org
Fri May 1 08:30:59 BST 2009
Hi,
Peter Childs wrote:
> bzcat planet-latest.osm.bz2 | osmosis --read-xml-0.6 file="-"
> --bounding-polygon-0.6 file="united_kingdom2pts.txt" --write-xml-0.6
> file="-" | bzip2 >uk.osm.bz2
Using that united_kingdom2pts.txt is bound to be very slow because it
cuts out the UK along the coastline which is much more complex than it
needs to be; a polygon with 10 nodes is perfectly suitable, you don't
need one with 10s of 1000s! Use something like this for your polygon:
britain
1
-6.450000E+00 4.980000E+01
-2.000000E+00 4.890000E+01
-1.850000E+00 4.925000E+01
-2.080000E+00 4.973000E+01
1.350000E+00 5.090000E+01
2.250000E+00 5.258000E+01
-5.000000E-01 6.130000E+01
-8.920000E+00 5.785000E+01
-6.876876E+00 5.561885E+01
-5.412946E+00 5.507351E+01
-5.035438E+00 5.283576E+01
-6.450000E+00 4.980000E+01
END
END
> but I get an error of
>
> SEVERE: Thread for task 1-read-xml-0.6 failed
> java.lang.NumberFormatException: For input string: "Way"
Your planet file is broken. Get the latest one (090428) and it will work.
Bye
Frederik
--
Frederik Ramm ## eMail frederik at remote.org ## N49°00'09" E008°23'33"
More information about the talk
mailing list