Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

Your Answer


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.