With the current document, osmosis only support extracting a subset from a large downloaded file by define a polygon. But whether there’s a solution to cut out data within a defined polygon. I have file europe.pbf, what I want to do is cutting out 'Russia' data, keep other country, but I can't find a way which can help me. asked 24 May '17, 08:06 webertao |
Check the example on http://wiki.openstreetmap.org/wiki/Osmosis/Polygon_Filter_File_Format - what you want is a file with two polygons, the first being a large rectangle around Europe (or a rectangle that covers the whole planet), the second should be a polygon describing Russia, and it needs to be introduced with an exclamation mark which means it is a "hole" in the polygon before. answered 24 May '17, 08:44 Frederik Ramm ♦ Thanks a lot for the rectangle that covers the whole planet, whether it could be '90,180', '90,-180', '-90,-180', '-90, 180'?
(24 May '17, 09:20)
webertao
Yep, that'll work.
(24 May '17, 09:26)
Frederik Ramm ♦
|