[osmosis-dev] call osmosis from groovy
Gubler, Ruediger
rgubler at init-ka.de
Thu Sep 15 15:17:20 BST 2011
Oh no,
I found the error:
for(String fileStr : subFiles)
{
argsList.add("--fast-read-xml " + new File(dir, fileStr).canonicalPath)
count++
}
for(int ii = 1; ii < count; ii++)
{
argsList.add("--merge")
}
argsList.add("--wx " + new File(localDirectory, "tmp/osm/merged.osm"))
must be
for (String fileStr: subFiles)
{
argsList.add("--fast-read-xml")
argsList.add(new File(dir, fileStr).canonicalPath)
count++
}
for (int ii = 1; ii < count; ii++)
{
argsList.add("--merge")
}
argsList.add("--wx")
argsList.add(new File(localDirectory, "tmp/osm/merged.osm").canonicalPath)
The arguments must different entries not "--fast-read-xml c:\...." but "--fast-read-xml" "c:\...."
Now it works but osmosis is using over 8000 threads for 1904 *.osm files to merge ?!
Yours Rüdiger
More information about the osmosis-dev
mailing list