<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi,</p>
<p>I'm trying to solve this problem for some time already, but can't
find the solution so I hope this is the right place to ask.</p>
<p>I'm trying to split SRTM contours for Nepal with 10 m contours.
It is not that much data, the .pbf file has just 375 MB.</p>
<p>However when I try to run it:</p>
<p><tt>java -jar -Xms4G -Xmx4G ..\mkgmap\Splitter\splitter.jar
--output-dir=./SRTM/ --output=pbf --max-threads=6
--status-freq=60 SRTM_NP.pbf</tt></p>
<p>it first starts to give warnings:</p>
<p><tt>Warning: Fileblock has body size too large and may be
considered corrupt</tt></p>
<p>then errors:</p>
<p><tt>Exception in thread "worker-3" java.lang.Error: This file has
too many entities in a block. Parsers will reject it.</tt><tt><br>
</tt><tt> at
crosby.binary.file.FileBlock.newInstance(Unknown Source)</tt><tt><br>
</tt><tt> at
crosby.binary.BinarySerializer.processBatch(Unknown Source)</tt><tt><br>
</tt><tt> at
uk.me.parabola.splitter.writer.BinaryMapWriter$PBFSerializer$Processor.checkLimit(BinaryMapWriter.java:385)</tt><tt><br>
</tt><tt> at
uk.me.parabola.splitter.writer.BinaryMapWriter$PBFSerializer$Processor.process(BinaryMapWriter.java:406)</tt><tt><br>
</tt><tt> at
uk.me.parabola.splitter.writer.BinaryMapWriter.write(BinaryMapWriter.java:515)</tt><tt><br>
</tt><tt> at
uk.me.parabola.splitter.writer.AbstractOSMWriter.write(AbstractOSMWriter.java:83)</tt><tt><br>
</tt><tt> at
uk.me.parabola.splitter.SplitProcessor$OSMWriterWorker.run(SplitProcessor.java:430)</tt><tt><br>
</tt><tt> at java.lang.Thread.run(Unknown Source)</tt></p>
<p>and the resulting files are incomplete.</p>
<p>I tried to lower the <i>--max-nodes</i> parameter, but it just
prolongs the process until I got to days of processing time.<br>
</p>
<p>Do you have any idea what to tune to avoid this? I splitted files
of similar size before, but Nepal seems to be a tough nut to
crack. I have Oracle Java 1.8.0_191 64bit (but I had the problems
with 32bit Java too).</p>
<p>Thanks in advance,</p>
<p>Vojta</p>
<p><a class="moz-txt-link-freetext" href="https://garmin.v0174.net">https://garmin.v0174.net</a><br>
</p>
</body>
</html>