Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have got a country.osm file and I want to split it alongside of admin_level=8. I extracted previously ~3.000 poly files into a separated folder. I have batch script, that split them, if I give the input and the poly:

osmosis --read-xml %1 enableDateParsing=no --bounding-polygon file=%2 completeWays=no completeRelations=no clipIncompleteEntities=true --write-xml file=clc_%2.osm

The question: Are there any way to do this parallel and the input file read just once?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

Yes, there is. You have to rework your script file. Add as many polygons as you want as in the example here: http://blog.geofabrik.de/?p=75

This will read the input file only once and output as many files as you polygons you specified.

share|improve this answer
    
Yes, I already found this site, but it didn't worked by this way. Then I changed my osmosis 0.41 to 0.39 and the problem solved. –  Plutoz Oct 15 '12 at 8:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.