<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Gerd,<br>
    <br>
    I did a quick test with success:<br>
    <ul>
      <li>using osmconvert to get *.osm file</li>
      <li>removed the 'wrong' bounds tag</li>
      <li>using osmconvert to convert back to *.pbf file</li>
      <li>running splitter with success</li>
    </ul>
    <p>I will contact geofabrik guys.... many thanks again.<br>
    </p>
    <p>Patrik<br>
    </p>
    <div class="moz-cite-prefix">On 20.10.2014 10:28, Patrik Brunner
      wrote:<br>
    </div>
    <blockquote cite="mid:5444C79C.1050101@gmx.net" type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      Gerd,<br>
      <br>
      many thanks..... I think I got the point:<br>
      <ul>
        <li>splitter fails on a wrong bounds tag.... if that one would
          be absent it would check real bounds according existing nodes.</li>
        <li>osmconvert doesn't read out that wrong tag (else it would be
          the 'wrong bounds' too) but just reports bounds according to
          existing nodes</li>
      </ul>
      <p>It might be an option to have an '--override-bounds' or
        '--ignore-bounds' argument for splitter for the future, but I
        completely agree: the data should be fixed at the source, at
        geofabrik...<br>
        ... fixing the tools isn't the right solution for this... <span
          class="moz-smiley-s3"><span> ;-) </span></span><br>
      </p>
      <p>I've learnt again something about these files, and the
        behaviour of the different tools around them, thanks for
        teaching me, really appreciated....<br>
      </p>
      <p>Cheers Patrik<br>
        <br>
      </p>
      <div class="moz-cite-prefix">On 20.10.2014 10:16, Gerd Petermann
        wrote:<br>
      </div>
      <blockquote cite="mid:DUB112-W58AE80993A97CF887F2E709E970@phx.gbl"
        type="cite">
        <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
        <div dir="ltr">Hi Patrik,<br>
          <br>
          I have checked the data from geofabrik. The invalid (?)<br>
          bounds tag really is in the data (also in the *.osm.bz2 file)<br>
          <br>
          I am not sure what to do with this.<br>
          I can change splitter to ignore invalid bounds,<br>
          but I think you should contact the guys at geofabrik<br>
          to correct the data.<br>
          <br>
          Regarding the differences in the reported min/max values:<br>
          osmconvert reports correct values, the values reported by
          splitter<br>
          in the line starting ""Exact map coverage is "<br>
          depend on the bounds tag. If (valid) bounds were found,<br>
          they are used, if not, splitter also reports (and uses)<br>
          the real min/max values found in the nodes.<br>
          <br>
          Gerd<br>
          <br>
          <div>&gt; Date: Sun, 19 Oct 2014 15:58:02 +0200<br>
            &gt; From: <a moz-do-not-send="true"
              class="moz-txt-link-abbreviated"
              href="mailto:keenonkites@gmx.net">keenonkites@gmx.net</a><br>
            &gt; To: <a moz-do-not-send="true"
              class="moz-txt-link-abbreviated"
              href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
            &gt; Subject: [mkgmap-dev] Problem with splitter r412:
            invalid bbox area in pbf file<br>
            &gt; <br>
            &gt; Gents,<br>
            &gt; <br>
            &gt; We run into a problem with the splitter about invalid
            bbox area in pbf <br>
            &gt; file throwing the following error:<br>
            &gt; java.lang.IllegalArgumentException: invalid bbox area
            in pbf file: <br>
            &gt; (49.808900356292725,-179.95320081710815) to <br>
            &gt; (73.79793405532837,180.00049352645874)<br>
            &gt; <br>
            &gt; But this is sort of strange as osmconvert tells me
            different values for <br>
            &gt; the bbox. Additionally it has to be said that another
            file containing a <br>
            &gt; larger area (while containing the complete dataset of
            the file that <br>
            &gt; causes the trouble) works without troubles with the
            same call of <br>
            &gt; splitter and the same set of precompiled sea files and
            so on...<br>
            &gt; <br>
            &gt; Any help/comments would be appreciated....<br>
            &gt; <br>
            &gt; More Details:<br>
            &gt;
            ============================================================<br>
            &gt; The file triggering the problem:<br>
            &gt;
--------------------------------------------------------------------------------------------------<br>
            &gt; <a moz-do-not-send="true"
              class="moz-txt-link-freetext"
href="http://download.geofabrik.de/north-america/us/alaska-latest.osm.pbf">http://download.geofabrik.de/north-america/us/alaska-latest.osm.pbf</a><br>
            &gt; <br>
            &gt; And here the call and the output of the splitter:<br>
            &gt;
--------------------------------------------------------------------------------------------------<br>
            &gt; java -Xmx1536M -jar <br>
            &gt;
            /home/pab/develop/fzk-mde-garmin/Freizeitkarte-Entwicklung/tools/splitter/splitter.jar

            <br>
            &gt; --max-threads=2 <br>
            &gt;
            --geonames-file=/home/pab/develop/fzk-mde-garmin/Freizeitkarte-Entwicklung/cities/cities15000.zip

            <br>
            &gt; --no-trim <br>
            &gt;
            --precomp-sea=/home/pab/develop/fzk-mde-garmin/Freizeitkarte-Entwicklung/sea

            <br>
            &gt; --keep-complete=true --mapid=98600001
            --max-nodes=800000 --output=xml <br>
            &gt;
            --output-dir=/home/pab/develop/fzk-mde-garmin/Freizeitkarte-Entwicklung/work/Freizeitkarte_US_ALASKA

            <br>
            &gt;
/home/pab/develop/fzk-mde-garmin/Freizeitkarte-Entwicklung/work/Freizeitkarte_US_ALASKA/Freizeitkarte_US_ALASKA.osm.pbf<br>
            &gt; Splitter version 412 compiled 2014-06-21T13:47:04+0100<br>
            &gt; boundary-tags=use-exclude-list<br>
            &gt; cache=<br>
            &gt; description=<br>
            &gt;
geonames-file=/home/pab/develop/fzk-mde-garmin/Freizeitkarte-Entwicklung/cities/cities15000.zip<br>
            &gt; keep-complete=true<br>
            &gt; mapid=98600001<br>
            &gt; max-areas=512<br>
            &gt; max-nodes=800000<br>
            &gt; max-threads=2<br>
            &gt; mixed=false<br>
            &gt; no-trim=true<br>
            &gt; num-tiles=<br>
            &gt; output=xml<br>
            &gt;
output-dir=/home/pab/develop/fzk-mde-garmin/Freizeitkarte-Entwicklung/work/Freizeitkarte_US_ALASKA<br>
            &gt; overlap=auto<br>
            &gt; polygon-desc-file=<br>
            &gt; polygon-file=<br>
            &gt;
precomp-sea=/home/pab/develop/fzk-mde-garmin/Freizeitkarte-Entwicklung/sea<br>
            &gt; problem-file=<br>
            &gt; problem-report=<br>
            &gt; resolution=13<br>
            &gt; search-limit=200000<br>
            &gt; split-file=<br>
            &gt; status-freq=120<br>
            &gt; stop-after=dist<br>
            &gt; write-kml=<br>
            &gt; Elapsed time: 0s Memory: Current 479MB (5MB used, 474MB
            free) Max 1365MB<br>
            &gt; Time started: Sun Oct 19 15:28:09 CEST 2014<br>
            &gt; Map is being split for resolution 13:<br>
            &gt; - area boundaries are aligned to 0x800 map units
            (0.0439453125 degrees)<br>
            &gt; - areas are multiples of 0x800 map units wide and high<br>
            &gt; Processing <br>
            &gt;
/home/pab/develop/fzk-mde-garmin/Freizeitkarte-Entwicklung/work/Freizeitkarte_US_ALASKA/Freizeitkarte_US_ALASKA.osm.pbf<br>
            &gt; Bounding box -179.9532 49.8089 180.00050000000002
            73.79794000000001<br>
            &gt; java.lang.IllegalArgumentException: invalid bbox area
            in pbf file: <br>
            &gt; (49.808900356292725,-179.95320081710815) to <br>
            &gt; (73.79793405532837,180.00049352645874)<br>
            &gt; at <br>
            &gt;
            uk.me.parabola.splitter.BinaryMapParser.parse(BinaryMapParser.java:233)<br>
            &gt; at crosby.binary.BinaryParser.handleBlock(Unknown
            Source)<br>
            &gt; at crosby.binary.file.FileBlock.process(Unknown Source)<br>
            &gt; at crosby.binary.file.BlockInputStream.process(Unknown
            Source)<br>
            &gt; at
            uk.me.parabola.splitter.Main.processOSMFiles(Main.java:1380)<br>
            &gt; at
            uk.me.parabola.splitter.Main.processMap(Main.java:878)<br>
            &gt; at
            uk.me.parabola.splitter.Main.calculateAreas(Main.java:574)<br>
            &gt; at uk.me.parabola.splitter.Main.split(Main.java:252)<br>
            &gt; at uk.me.parabola.splitter.Main.start(Main.java:181)<br>
            &gt; at uk.me.parabola.splitter.Main.main(Main.java:151)<br>
            &gt; uk.me.parabola.splitter.SplitFailedException: ERROR:
            file <br>
            &gt;
            /home/pab/develop/fzk-mde-garmin/Freizeitkarte-Entwicklung/work/Freizeitkarte_US_ALASKA/Freizeitkarte_US_ALASKA.osm.pbf

            <br>
            &gt; contains unexpected data<br>
            &gt; at
            uk.me.parabola.splitter.Main.processOSMFiles(Main.java:1402)<br>
            &gt; at
            uk.me.parabola.splitter.Main.processMap(Main.java:878)<br>
            &gt; at
            uk.me.parabola.splitter.Main.calculateAreas(Main.java:574)<br>
            &gt; at uk.me.parabola.splitter.Main.split(Main.java:252)<br>
            &gt; at uk.me.parabola.splitter.Main.start(Main.java:181)<br>
            &gt; at uk.me.parabola.splitter.Main.main(Main.java:151)<br>
            &gt; <br>
            &gt; osmconvert output containing the statistics about the
            file<br>
            &gt;
--------------------------------------------------------------------------------------------------<br>
            &gt; tools/osmconvert/linux/osmconvert32 <br>
            &gt;
            work/Freizeitkarte_US_ALASKA/Freizeitkarte_US_ALASKA.osm.pbf
            <br>
            &gt; --out-statistics<br>
            &gt; timestamp min: 2007-06-05T03:23:59Z<br>
            &gt; timestamp max: 2014-10-18T11:48:05Z<br>
            &gt; lon min: -180.0000000<br>
            &gt; lon max: -122.5122521<br>
            &gt; lat min: 48.6234931<br>
            &gt; lat max: 71.6048217<br>
            &gt; nodes: 4028420<br>
            &gt; ways: 171349<br>
            &gt; relations: 1803<br>
            &gt; node id min: 27207079<br>
            &gt; node id max: 3136662460<br>
            &gt; way id min: 4708608<br>
            &gt; way id max: 308379297<br>
            &gt; relation id min: 13971<br>
            &gt; relation id max: 4116925<br>
            &gt; keyval pairs max: 302<br>
            &gt; keyval pairs max object: relation 60189<br>
            &gt; noderefs max: 2000<br>
            &gt; noderefs max object: way 42394334<br>
            &gt; relrefs max: 739<br>
            &gt; relrefs max object: relation 3337277<br>
            &gt; <br>
            &gt; File not causing any troubles (us-pacific, superset of
            ALASKA):<br>
            &gt;
--------------------------------------------------------------------------------------------------<br>
            &gt; <a moz-do-not-send="true"
              class="moz-txt-link-freetext"
              href="http://download.geofabrik.de/north-america/us-pacific.html">http://download.geofabrik.de/north-america/us-pacific.html</a><br>
            &gt; <br>
            &gt; splitter 'bounds' running against us-pacific file: part
            of the output<br>
            &gt;
--------------------------------------------------------------------------------------------------<br>
            &gt; ...<br>
            &gt; Exact map coverage is
            (15.920970439910889,-179.99648094177246) to <br>
            &gt; (72.98844337463379,-129.79979753494263)<br>
            &gt; Rounded map coverage is (15.908203125,-180.0) to <br>
            &gt; (72.9931640625,-129.7705078125)<br>
            &gt; ...<br>
            &gt; <br>
            &gt; Output of the osmconvert running against us-pacific
            file<br>
            &gt;
--------------------------------------------------------------------------------------------------<br>
            &gt; tools/osmconvert/linux/osmconvert32 <br>
            &gt;
            work/Freizeitkarte_US_PACIFIC/Kartendaten_Freizeitkarte_US_PACIFIC.osm.pbf

            <br>
            &gt; --out-statistics<br>
            &gt; timestamp min: 2006-12-08T15:49:14Z<br>
            &gt; timestamp max: 2014-10-18T18:10:31Z<br>
            &gt; lon min: -180.0000000<br>
            &gt; lon max: -122.5122521<br>
            &gt; lat min: 15.5631200<br>
            &gt; lat max: 71.6048217<br>
            &gt; nodes: 4906880<br>
            &gt; ways: 233739<br>
            &gt; relations: 2417<br>
            &gt; node id min: 21442033<br>
            &gt; node id max: 3136662460<br>
            &gt; way id min: 4045672<br>
            &gt; way id max: 308379297<br>
            &gt; relation id min: 13971<br>
            &gt; relation id max: 4116925<br>
            &gt; keyval pairs max: 302<br>
            &gt; keyval pairs max object: relation 60189<br>
            &gt; noderefs max: 2000<br>
            &gt; noderefs max object: way 42394334<br>
            &gt; relrefs max: 739<br>
            &gt; relrefs max object: relation 3337277<br>
            &gt; <br>
            &gt; <br>
            &gt; Many thanks already in advance...<br>
            &gt; Patrik<br>
            &gt; _______________________________________________<br>
            &gt; mkgmap-dev mailing list<br>
            &gt; <a moz-do-not-send="true"
              class="moz-txt-link-abbreviated"
              href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
            &gt; <a moz-do-not-send="true"
              class="moz-txt-link-freetext"
              href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
          </div>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
mkgmap-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
mkgmap-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
<a class="moz-txt-link-freetext" href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></pre>
    </blockquote>
    <br>
  </body>
</html>