logo separator

[mkgmap-dev] Infinite loop splitter

From Minko ligfietser at online.nl on Sat Mar 8 11:07:51 GMT 2014

Hi Gerd,
I always mix the osm data with address nodes for Vlaanderen and the Netherlands with osmconvert.
This part of my batch file looks like this:

%DIR%\Tools\osmconvert --drop-version %DIR%\%date%\Splitter\%extract% %DIR%\resources\adres.o5m %DIR%\resources\vlaanderen-adres.o5m -B=%DIR%\resources\bnl_01.poly -o=%DIR%\%date%\Splitter\benelux.o5m

%extract% is europe.osm.pbf from today

NL adres.o5m:
lon min: 3.3590433
lon max: 7.2259690
lat min: 50.7510383
lat max: 53.4972667
nodes: 8551053
ways: 0
relations: 0
node id min: 100000000000
node id max: 100008551052
keyval pairs max: 2
keyval pairs max object: node 100000000000 

Vlaanderen vlaanderen-adres.o5m

lon min: 2.3066895
lon max: 5.8980601
lat min: 49.2933351
lat max: 51.5047683
nodes: 2449726
ways: 0
relations: 0
node id min: 200000000001
node id max: 200002449726
keyval pairs max: 4
keyval pairs max object: node 200000000001 

After this I split the resulting file as follows

java -Xmx8000m -XX:+UseParallelGC -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -jar  %SPLITTER% --output-dir=%date%\Splitter --max-threads=8 --problem-file=%DIR%\resources\problem_areas.txt --precomp-sea=%seafile% --keep-complete --overlap=0 --mapid=10010001 --polygon-file=%DIR%\resources\benelux.poly --max-nodes=1750000 --write-kml=%areas%.kml --output=o5m --geonames-file=%DIR%\resources\cities5000.txt --description=OFM_BNL %DIR%\%date%\Splitter\benelux.o5m > splitter2.log 2>err2.log

Normally it all goes well until this morning.
I've tried the latest splitter version too but it didnt help.
I also tried to make the first polygon bnl_01.poly much bigger ( it is a little bigger than the second benelux.poly in the splitter step 2). This also didnt help.

Now if I skip the first step and split it without merging the address nodes it goes well without problems. Could it be that the splitter creates fake ID's that overlap my address data nodes?
Or is there an overlap in osm id's with the fake address nodes?

More information about the mkgmap-dev mailing list