OpenSeaMap / renderer

Code & scripts for our current Seamark & Sport layer renderers.
9 stars 7 forks source link

searender width and height wrong #7

Closed CptLeeChuck closed 9 years ago

CptLeeChuck commented 9 years ago

First of all thanks for the scripts to generate all tiles, I was able to execute them. However, the searender script does not calculate the width and height for the SVGs as I expected it. So at the end jtile is not able to covert them to PNGs.

Example:

I choosed one tile as example to explain the issue. This tile (11 / 1100 / 732) should include the lighthouse of cape Savudrija in Croatia.

The OSM file 1100-732-11.osm prepared by render & jsearch looks good to me and includes the lighhouse node (id=1569338877) and a lot of other seamark:type elements close to cape Savudrija.

But after executing searender for this OSM file with this command (as it would be done by your tilgen script):

../searender/searender ../searender/symbols/symbols.defs 11 >tmp/1100-732-11.svg <tmp/1100-732-11.osm

the resulting SVG looks like this:

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"
 width="0.000000" height="0.000000">
<defs>
snipped all definitions
</defs>
<path id="1" d="M 974.235748 -2264.470905 1593.571337 -2551.520107 1587.813781 -2450.353772 1015.360316 -2161.659386 974.235748 -2264.470905 Z" style="stroke:none; fill:#c480ff; fill-opacity:0.5; " />
<path id="2" d="M 642.066095 -1549.851316 837.784553 -715.824464 " style="stroke-width:4.540000; stroke-dasharray:9.080000,9.080000; stroke-linecap:butt; stroke-linejoin:round; fill:none; stroke:#c480ff; stroke-opacity:0.5; " />
<path id="3" d="M 1074.669814 -2022.182569 1564.051884 -2362.693676 1699.762959 -2361.048899 1912.787872 -2340.486629 " style="stroke-width:4.540000; stroke-dasharray:9.080000,9.080000; stroke-linecap:butt; stroke-linejoin:round; fill:none; stroke:#c480ff; stroke-opacity:0.5; " />
<g id="4" transform="translate(1430.294947, -2026.995946) scale(0.227000) translate(-150.000000, -200.000000) rotate(0.000000, 150.000000, 200.000000) "> <use xlink:href="#lighthouse" style="fill:"/> </g>
<g id="5" transform="translate(1430.294947, -2026.995946) scale(0.227000) translate(-150.000000, -200.000000) rotate(120.000000, 150.000000, 200.000000) "> <use xlink:href="#light" style="fill:#ffff00"/> </g>
</svg>

ID 4 + 5 is lighthouse Savudrija. Please note width and height of the SVG are both 0.0 This results in an PNG which is cut wrong and therefore ignored by jtile.jar conversion: savudrija

My understanding is, there should be some width and height and I believe the transforms of the objects might also be wrong. Maybe I'm doing something wrong, but recently I couldn't imagine what :(

By the way, doing the same with e.g. tile 737 results in

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"
 width="0.000000" height="4083.866324">
<defs>....

737 But in most cases (>99%) it is as described above with width and height = 0.00000

malcolmh commented 9 years ago

This looks like a bounding box problem. Check the tmp/1100-732-11.osm file. Is there a valid element?

CptLeeChuck commented 9 years ago

Yes for me it looks valid. The bounding box in the OSM file is smaller and within the real tile boundaries.

Thanks for your support so far!

I can try to compile the searender script today evening on my mac, currently I compiled and executed it on Ubuntu 14.04.

tmp/1100-732-11.osm as it comes out of render/jsearch script:

<?xml version='1.0' encoding='UTF-8'?>
<osm version='0.6' upload='false' generator='Jrender'>
<bounds minlat='45,33670191' minlon='13,18359375' maxlat='45,70617929' maxlon='13,71093750'/>
    <node id="472269699" lat="42.425321" lon="15.9884681" version="3" timestamp="2015-04-01T22:52:21Z" changeset="29917432" uid="554973" user="dgitto"/>
    <node id="472269700" lat="42.4025421" lon="15.9860411" version="3" timestamp="2015-04-01T22:52:22Z" changeset="29917432" uid="554973" user="dgitto"/>
    <node id="472269701" lat="42.3767556" lon="15.9883748" version="3" timestamp="2015-04-01T22:52:22Z" changeset="29917432" uid="554973" user="dgitto"/>
    <node id="472269702" lat="42.3266732" lon="16.0016812" version="3" timestamp="2015-04-01T22:52:22Z" changeset="29917432" uid="554973" user="dgitto"/>
    <node id="472269703" lat="42.2784387" lon="16.0345288" version="3" timestamp="2015-04-01T22:52:22Z" changeset="29917432" uid="554973" user="dgitto"/>
    <node id="472269704" lat="42.2347489" lon="16.0889948" version="3" timestamp="2015-04-01T22:52:22Z" changeset="29917432" uid="554973" user="dgitto"/>
    <node id="472269705" lat="42.2078351" lon="16.150886" version="3" timestamp="2015-04-01T22:52:22Z" changeset="29917432" uid="554973" user="dgitto"/>
    <node id="472269706" lat="42.1922118" lon="16.2285063" version="3" timestamp="2015-04-01T22:52:22Z" changeset="29917432" uid="554973" user="dgitto"/>
    <node id="472269707" lat="42.1760995" lon="16.3060714" version="3" timestamp="2015-04-01T22:52:22Z" changeset="29917432" uid="554973" user="dgitto"/>
    <node id="472269708" lat="42.1748212" lon="16.3357472" version="2" timestamp="2009-08-22T06:37:44Z" changeset="2230487" uid="148025" user="mvrban"/>
    <node id="472269709" lat="42.1770364" lon="16.3895525" version="2" timestamp="2009-08-22T06:37:44Z" changeset="2230487" uid="148025" user="mvrban"/>
    <node id="472269710" lat="42.1988236" lon="16.4752032" version="3" timestamp="2015-04-07T22:15:19Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="472269711" lat="42.2342608" lon="16.5379673" version="3" timestamp="2015-04-07T22:15:19Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="472269713" lat="42.2818378" lon="16.5862642" version="3" timestamp="2015-04-07T22:15:19Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="484752862" lat="45.4362781" lon="13.5129368" version="7" timestamp="2014-05-18T22:28:32Z" changeset="22415876" uid="449569" user="Nautic">
        <tag k="source" v="US NGA Pub. 113. 2010-10-22."/>
        <tag k="name:de" v="Molenfeuer Umag Green"/>
        <tag k="seamark:type" v="beacon_lateral"/>
        <tag k="description:de" v="gruener Stahlrohrmast auf de Mole Umag"/>
        <tag k="seamark:information" v="Visible 000°-315°."/>
        <tag k="seamark:light:range" v="4"/>
        <tag k="seamark:light:colour" v="green"/>
        <tag k="seamark:light:height" v="9"/>
        <tag k="seamark:light:period" v="5"/>
        <tag k="seamark:light:sequence" v="0.5+(4.5)"/>
        <tag k="seamark:light:character" v="Fl"/>
        <tag k="seamark:light:reference" v="E 2646"/>
        <tag k="seamark:light:sector_end" v="315"/>
        <tag k="seamark:light:sector_start" v="0"/>
        <tag k="seamark:beacon_lateral:colour" v="green"/>
        <tag k="seamark:beacon_lateral:height" v="21"/>
        <tag k="seamark:beacon_lateral:system" v="iala-a"/>
        <tag k="seamark:beacon_lateral:category" v="starboard"/>
    </node>
    <node id="496156942" lat="45.500978" lon="13.5013351" version="9" timestamp="2013-12-15T09:33:36Z" changeset="19460822" uid="128186" user="malcolmh">
        <tag k="name" v="Stara Savudrija Molenfeuer"/>
        <tag k="light" v="yes"/>
        <tag k="beacon" v="lateral_port"/>
        <tag k="source" v="US NGA Pub. 113. 2010-10-22."/>
        <tag k="ft_link" v="www.freietonne.de?edit=11649"/>
        <tag k="seamark" v="beacon"/>
        <tag k="description" v="Stara Savudrija Molenfeuer red. Kleiner gedrunger Steinturm mit einem roten Top aus Stahlrohr. Licht unbekannt."/>
        <tag k="seamark:name" v="Stara Savudrija"/>
        <tag k="seamark:type" v="light_minor"/>
        <tag k="beacon:colour" v="red"/>
        <tag k="seamark:light:1:group" v="2"/>
        <tag k="seamark:light:1:range" v="4"/>
        <tag k="seamark:light:2:group" v="2"/>
        <tag k="seamark:light:1:colour" v="red"/>
        <tag k="seamark:light:1:height" v="7"/>
        <tag k="seamark:light:1:period" v="5"/>
        <tag k="seamark:light:1:radius" v="0.01"/>
        <tag k="seamark:light:2:colour" v="red"/>
        <tag k="seamark:light:2:height" v="7"/>
        <tag k="seamark:light:2:period" v="5"/>
        <tag k="seamark:light:2:radius" v="0.01"/>
        <tag k="seamark:light:reference" v="E 2643"/>
        <tag k="seamark:light:1:sequence" v="0.5+(1),0.5+(3)"/>
        <tag k="seamark:light:2:sequence" v="0.5+(1),0.5+(3)"/>
        <tag k="seamark:light:1:character" v="Fl"/>
        <tag k="seamark:light:2:character" v="Fl"/>
        <tag k="seamark:light:1:sector_end" v="163"/>
        <tag k="seamark:light:2:sector_end" v="304"/>
        <tag k="seamark:light_minor:height" v="16"/>
        <tag k="seamark:light:1:sector_start" v="90"/>
        <tag k="seamark:light:2:sector_start" v="264"/>
    </node>
    <node id="1046771795" lat="45.4339856" lon="13.5177945" version="1" timestamp="2010-12-19T00:30:03Z" changeset="6701305" uid="72719" user="metaroll"/>
    <node id="1046771798" lat="45.4338837" lon="13.5177741" version="1" timestamp="2010-12-19T00:30:03Z" changeset="6701305" uid="72719" user="metaroll"/>
    <node id="1046771799" lat="45.4339099" lon="13.5175077" version="1" timestamp="2010-12-19T00:30:03Z" changeset="6701305" uid="72719" user="metaroll"/>
    <node id="1046771826" lat="45.4340118" lon="13.5175281" version="1" timestamp="2010-12-19T00:30:04Z" changeset="6701305" uid="72719" user="metaroll"/>
    <node id="1377048508" lat="45.3594623" lon="13.5519126" version="4" timestamp="2014-04-30T14:59:19Z" changeset="22045289" uid="2053850" user="PetarVal">
        <tag k="source" v="US NGA Pub. 113. 2010-10-22."/>
        <tag k="seamark:name" v="Karigador"/>
        <tag k="seamark:type" v="light_minor"/>
        <tag k="seamark:light:range" v="1"/>
        <tag k="seamark:light:colour" v="red"/>
        <tag k="seamark:light:height" v="7"/>
        <tag k="seamark:light:character" v="F"/>
        <tag k="seamark:light:reference" v="E 2652"/>
        <tag k="seamark:light_minor:height" v="20"/>
    </node>
    <node id="1377048524" lat="45.4234222" lon="13.5158435" version="4" timestamp="2013-10-16T08:25:04Z" changeset="18381641" uid="128186" user="malcolmh">
        <tag k="source" v="US NGA Pub. 113. 2010-10-22."/>
        <tag k="seamark:type" v="light_minor"/>
        <tag k="seamark:light:1:group" v="2"/>
        <tag k="seamark:light:1:range" v="3"/>
        <tag k="seamark:light:1:colour" v="green"/>
        <tag k="seamark:light:1:height" v="7"/>
        <tag k="seamark:light:1:period" v="5"/>
        <tag k="seamark:light:reference" v="E 2649"/>
        <tag k="seamark:light:1:sequence" v="0.5+(1),0.5+(3)"/>
        <tag k="seamark:light:1:character" v="Fl"/>
        <tag k="seamark:light:1:sector_end" v="318"/>
        <tag k="seamark:light_minor:height" v="16"/>
        <tag k="seamark:light:1:sector_start" v="56"/>
    </node>
    <node id="1377048529" lat="45.4345651" lon="13.5181719" version="3" timestamp="2013-10-16T08:25:05Z" changeset="18381641" uid="128186" user="malcolmh">
        <tag k="source" v="US NGA Pub. 113. 2010-10-22."/>
        <tag k="seamark:type" v="light_minor"/>
        <tag k="seamark:light:1:range" v="4"/>
        <tag k="seamark:light:1:colour" v="white"/>
        <tag k="seamark:light:1:height" v="8"/>
        <tag k="seamark:light:1:period" v="3"/>
        <tag k="seamark:light:reference" v="E 2648"/>
        <tag k="seamark:light:1:character" v="Fl"/>
        <tag k="seamark:light:1:sector_end" v="6"/>
        <tag k="seamark:light_minor:height" v="23"/>
        <tag k="seamark:light:1:sector_start" v="136"/>
    </node>
    <node id="1377048546" lat="45.4414783" lon="13.5035708" version="4" timestamp="2013-10-16T08:25:05Z" changeset="18381641" uid="128186" user="malcolmh">
        <tag k="source" v="US NGA Pub. 113. 2010-10-22."/>
        <tag k="seamark:name" v="Plicina Paklena"/>
        <tag k="seamark:type" v="light_minor"/>
        <tag k="seamark:information" v="W. 347°-165°, R.-347°."/>
        <tag k="seamark:light:1:group" v="2"/>
        <tag k="seamark:light:1:range" v="8"/>
        <tag k="seamark:light:2:group" v="2"/>
        <tag k="seamark:light:2:range" v="6"/>
        <tag k="seamark:light:1:colour" v="white"/>
        <tag k="seamark:light:1:height" v="10"/>
        <tag k="seamark:light:1:period" v="8"/>
        <tag k="seamark:light:2:colour" v="red"/>
        <tag k="seamark:light:2:height" v="10"/>
        <tag k="seamark:light:2:period" v="8"/>
        <tag k="seamark:light:reference" v="E 2644"/>
        <tag k="seamark:light:1:sequence" v="0.5+(2),0.5+(5)"/>
        <tag k="seamark:light:2:sequence" v="0.5+(2),0.5+(5)"/>
        <tag k="seamark:light:1:character" v="Fl"/>
        <tag k="seamark:light:2:character" v="Fl"/>
        <tag k="seamark:light:1:sector_end" v="165"/>
        <tag k="seamark:light:2:sector_end" v="347"/>
        <tag k="seamark:light_minor:height" v="19"/>
        <tag k="seamark:light:1:sector_start" v="347"/>
        <tag k="seamark:light:2:sector_start" v="165"/>
    </node>
    <node id="1377048556" lat="45.4729971" lon="13.4951884" version="4" timestamp="2013-10-16T08:25:05Z" changeset="18381641" uid="128186" user="malcolmh">
        <tag k="source" v="US NGA Pub. 113. 2010-10-22."/>
        <tag k="seamark:name" v="Plic Zanestra"/>
        <tag k="seamark:type" v="beacon_cardinal"/>
        <tag k="seamark:light:group" v="9"/>
        <tag k="seamark:light:range" v="3"/>
        <tag k="seamark:light:colour" v="white"/>
        <tag k="seamark:light:height" v="7"/>
        <tag k="seamark:light:period" v="15"/>
        <tag k="seamark:light:character" v="Q"/>
        <tag k="seamark:light:reference" v="E 2642.5"/>
        <tag k="seamark:beacon_cardinal:colour" v="yellow;black;yellow"/>
        <tag k="seamark:beacon_cardinal:height" v="20"/>
        <tag k="seamark:beacon_cardinal:category" v="west"/>
        <tag k="seamark:beacon_cardinal:colour_pattern" v="horizontal"/>
    </node>
    <node id="1381618427" lat="45.4371711" lon="13.5204743" version="2" timestamp="2011-09-08T09:14:22Z" changeset="9243777" uid="128186" user="malcolmh">
        <tag k="seamark" v="anchorage"/>
        <tag k="seamark:name" v="Umag"/>
        <tag k="seamark:type" v="anchorage"/>
    </node>
    <node id="1569338877" lat="45.4899723" lon="13.4910528" version="4" timestamp="2015-07-14T20:32:34Z" changeset="32637678" uid="244754" user="Janjko">
        <tag k="name" v="Svjetionik Savudrija"/>
        <tag k="tourism" v="attraction"/>
        <tag k="man_made" v="lighthouse"/>
        <tag k="seamark:name" v="Leuchturm Savudrija"/>
        <tag k="seamark:type" v="landmark"/>
        <tag k="seamark:light:group" v="3"/>
        <tag k="seamark:light:range" v="30"/>
        <tag k="seamark:light:colour" v="white"/>
        <tag k="seamark:light:period" v="15"/>
        <tag k="seamark:light:character" v="Fl"/>
    </node>
    <node id="2006824682" lat="45.4392107" lon="13.515502" version="1" timestamp="2012-11-10T17:57:39Z" changeset="13823924" uid="597190" user="Krille von Stralau">
        <tag k="seamark:type" v="small_craft_facility"/>
        <tag k="seamark:small_craft_facility:category" v="visitor_berth"/>
    </node>
    <node id="2006824688" lat="45.4385264" lon="13.5129296" version="3" timestamp="2014-05-18T22:11:01Z" changeset="22415661" uid="449569" user="Nautic">
        <tag k="seamark:type" v="small_craft_facility"/>
        <tag k="seamark:small_craft_facility:category" v="boat_hoist"/>
    </node>
    <node id="2006824696" lat="45.4407617" lon="13.5155087" version="2" timestamp="2012-11-11T17:33:35Z" changeset="13835986" uid="597190" user="Krille von Stralau">
        <tag k="seamark:type" v="small_craft_facility"/>
        <tag k="seamark:small_craft_facility:1:category" v="showers"/>
        <tag k="seamark:small_craft_facility:2:category" v="toilets"/>
        <tag k="seamark:small_craft_facility:3:category" v="laundrette"/>
    </node>
    <node id="2366689591" lat="45.436087" lon="13.5111537" version="3" timestamp="2014-08-24T11:38:38Z" changeset="24976506" uid="128186" user="malcolmh">
        <tag k="buoy" v="lateral_starboard"/>
        <tag k="seamark" v="buoy"/>
        <tag k="ft_symbol" v="6"/>
        <tag k="buoy:colour" v="green"/>
        <tag k="seamark:type" v="buoy_lateral"/>
        <tag k="seamark:light:colour" v="green"/>
        <tag k="seamark:topmark:shape" v="cone, point up"/>
        <tag k="seamark:topmark:colour" v="green"/>
        <tag k="seamark:buoy_lateral:shape" v="pillar"/>
        <tag k="seamark:buoy_lateral:colour" v="green"/>
        <tag k="seamark:buoy_lateral:system" v="iala-a"/>
        <tag k="seamark:buoy_lateral:category" v="starboard"/>
    </node>
    <node id="2366689595" lat="45.436352" lon="13.5108855" version="3" timestamp="2014-08-24T11:38:38Z" changeset="24976506" uid="128186" user="malcolmh">
        <tag k="buoy" v="lateral_port"/>
        <tag k="seamark" v="buoy"/>
        <tag k="ft_symbol" v="10"/>
        <tag k="buoy:colour" v="red"/>
        <tag k="seamark:type" v="buoy_lateral"/>
        <tag k="seamark:light:colour" v="red"/>
        <tag k="seamark:topmark:shape" v="cylinder"/>
        <tag k="seamark:topmark:colour" v="red"/>
        <tag k="seamark:buoy_lateral:shape" v="pillar"/>
        <tag k="seamark:buoy_lateral:colour" v="red"/>
        <tag k="seamark:buoy_lateral:system" v="iala-a"/>
        <tag k="seamark:buoy_lateral:category" v="port"/>
    </node>
    <node id="2741814021" lat="45.4502861" lon="13.201983" version="3" timestamp="2015-04-07T22:15:19Z" changeset="30051285" uid="554973" user="dgitto">
        <tag k="source" v="GURS"/>
    </node>
    <node id="2867532158" lat="45.4400481" lon="13.514067" version="1" timestamp="2014-05-18T22:10:47Z" changeset="22415661" uid="449569" user="Nautic"/>
    <node id="2867532164" lat="45.4401137" lon="13.5138604" version="1" timestamp="2014-05-18T22:10:47Z" changeset="22415661" uid="449569" user="Nautic"/>
    <node id="3138019708" lat="45.4888138" lon="13.3689586" version="1" timestamp="2014-10-19T08:01:21Z" changeset="26187656" uid="554973" user="dgitto"/>
    <node id="3138019709" lat="45.5055963" lon="13.3587775" version="1" timestamp="2014-10-19T08:01:21Z" changeset="26187656" uid="554973" user="dgitto"/>
    <node id="3138019710" lat="45.5223739" lon="13.3485963" version="1" timestamp="2014-10-19T08:01:21Z" changeset="26187656" uid="554973" user="dgitto"/>
    <node id="3138019711" lat="45.547099" lon="13.3344773" version="1" timestamp="2014-10-19T08:01:21Z" changeset="26187656" uid="554973" user="dgitto"/>
    <node id="3138019712" lat="45.5628601" lon="13.3254567" version="1" timestamp="2014-10-19T08:01:21Z" changeset="26187656" uid="554973" user="dgitto"/>
    <node id="3138019713" lat="45.565373" lon="13.6567036" version="1" timestamp="2014-10-19T08:01:21Z" changeset="26187656" uid="554973" user="dgitto"/>
    <node id="3138019714" lat="45.5703151" lon="13.5835673" version="1" timestamp="2014-10-19T08:01:21Z" changeset="26187656" uid="554973" user="dgitto"/>
    <node id="3138019715" lat="45.5707104" lon="13.5369746" version="1" timestamp="2014-10-19T08:01:21Z" changeset="26187656" uid="554973" user="dgitto"/>
    <node id="3138019719" lat="45.5812433" lon="13.5410536" version="1" timestamp="2014-10-19T08:01:22Z" changeset="26187656" uid="554973" user="dgitto"/>
    <node id="3138019724" lat="45.5917743" lon="13.5451326" version="1" timestamp="2014-10-19T08:01:22Z" changeset="26187656" uid="554973" user="dgitto"/>
    <node id="3138020829" lat="45.6160738" lon="13.5471093" version="1" timestamp="2014-10-19T08:01:22Z" changeset="26187656" uid="554973" user="dgitto"/>
    <node id="3138020830" lat="45.6310257" lon="13.5469836" version="1" timestamp="2014-10-19T08:01:22Z" changeset="26187656" uid="554973" user="dgitto"/>
    <node id="3138029015" lat="45.1735142" lon="13.2876305" version="1" timestamp="2014-10-19T08:17:51Z" changeset="26187837" uid="554973" user="dgitto"/>
    <node id="3138029027" lat="45.3750156" lon="13.2204359" version="1" timestamp="2014-10-19T08:17:51Z" changeset="26187837" uid="554973" user="dgitto"/>
    <node id="3295656093" lat="40.0804236" lon="18.9867942" version="1" timestamp="2015-01-18T01:08:00Z" changeset="28221919" uid="692602" user="Kanenas"/>
    <node id="3430933131" lat="42.1825193" lon="16.2679343" version="1" timestamp="2015-04-01T22:52:20Z" changeset="29917432" uid="554973" user="dgitto"/>
    <node id="3430933133" lat="42.1981883" lon="16.1895325" version="1" timestamp="2015-04-01T22:52:21Z" changeset="29917432" uid="554973" user="dgitto"/>
    <node id="3430933134" lat="42.2014696" lon="16.1753033" version="1" timestamp="2015-04-01T22:52:21Z" changeset="29917432" uid="554973" user="dgitto"/>
    <node id="3430933136" lat="42.2205755" lon="16.118383" version="1" timestamp="2015-04-01T22:52:21Z" changeset="29917432" uid="554973" user="dgitto"/>
    <node id="3430933137" lat="42.2560182" lon="16.0591052" version="1" timestamp="2015-04-01T22:52:21Z" changeset="29917432" uid="554973" user="dgitto"/>
    <node id="3430933138" lat="42.3027347" lon="16.015412" version="1" timestamp="2015-04-01T22:52:21Z" changeset="29917432" uid="554973" user="dgitto"/>
    <node id="3430933139" lat="42.3342484" lon="15.9988672" version="1" timestamp="2015-04-01T22:52:21Z" changeset="29917432" uid="554973" user="dgitto"/>
    <node id="3443694326" lat="40.1316123" lon="18.9772475" version="1" timestamp="2015-04-07T22:14:38Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694327" lat="40.2036303" lon="18.9509582" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694328" lat="40.3143507" lon="18.8797788" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694329" lat="40.3585881" lon="18.8594418" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694330" lat="40.3880636" lon="18.8512574" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694331" lat="40.5945959" lon="18.7594929" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694332" lat="40.6706353" lon="18.739404" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694333" lat="40.7326825" lon="18.7111306" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694334" lat="40.88511" lon="18.6592961" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694335" lat="40.9173526" lon="18.658304" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694336" lat="41.1082359" lon="18.595557" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694337" lat="41.1336452" lon="18.5764601" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694338" lat="41.1939529" lon="18.5427304" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694339" lat="41.4998597" lon="18.2163466" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694340" lat="41.6226523" lon="18.0200429" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694341" lat="41.6437842" lon="17.9959857" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694342" lat="41.8364231" lon="17.6154775" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694343" lat="41.9132054" lon="17.3096305" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694344" lat="41.9940663" lon="17.2114228" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694345" lat="42.4919834" lon="15.7459336" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694346" lat="42.6125658" lon="15.3610189" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694347" lat="42.7995905" lon="15.156161" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694348" lat="42.9867409" lon="15.011818" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694349" lat="43.0132595" lon="14.9648513" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694350" lat="43.0672766" lon="14.9038404" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694351" lat="43.1748065" lon="14.7998455" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694352" lat="43.2145844" lon="14.767604" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694353" lat="43.419011" lon="14.5816095" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694355" lat="43.5241771" lon="14.5065895" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694356" lat="43.6441836" lon="14.4063927" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694357" lat="43.7166463" lon="14.3577823" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694358" lat="43.8984923" lon="14.1702852" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694359" lat="43.9577944" lon="14.0839771" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694360" lat="44.0099029" lon="14.0085814" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694361" lat="44.1808958" lon="13.6663248" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694362" lat="44.2107687" lon="13.628627" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694363" lat="44.3024266" lon="13.4579947" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694364" lat="44.4655004" lon="13.1934686" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694365" lat="44.5007842" lon="13.1355962" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694366" lat="44.7489991" lon="13.1119177" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694367" lat="44.9761218" lon="13.0778356" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694368" lat="45.1856081" lon="13.0096713" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694369" lat="45.2794909" lon="13.0626194" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694370" lat="45.3352402" lon="13.1012011" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3443694371" lat="45.4443645" lon="13.2025479" version="1" timestamp="2015-04-07T22:14:39Z" changeset="30051285" uid="554973" user="dgitto"/>
    <node id="3493535182" lat="45.4399592" lon="13.5188575" version="1" timestamp="2015-05-02T17:57:23Z" changeset="30727923" uid="493209" user="Fiki"/>
    <node id="3493535183" lat="45.4399799" lon="13.5187467" version="1" timestamp="2015-05-02T17:57:23Z" changeset="30727923" uid="493209" user="Fiki"/>
    <node id="3493535186" lat="45.4400629" lon="13.518897" version="1" timestamp="2015-05-02T17:57:23Z" changeset="30727923" uid="493209" user="Fiki"/>
    <node id="3493535187" lat="45.4400836" lon="13.5187862" version="1" timestamp="2015-05-02T17:57:23Z" changeset="30727923" uid="493209" user="Fiki"/>
    <way id="90276367" version="2" timestamp="2013-05-06T15:34:29Z" changeset="15999185" uid="128186" user="malcolmh">
        <nd ref="1046771826"/>
        <nd ref="1046771795"/>
        <nd ref="1046771798"/>
        <nd ref="1046771799"/>
        <nd ref="1046771826"/>
        <tag k="building" v="yes"/>
        <tag k="seamark:type" v="building"/>
        <tag k="seamark:building:function" v="customs"/>
    </way>
    <way id="282805863" version="1" timestamp="2014-05-18T22:10:54Z" changeset="22415661" uid="449569" user="Nautic">
        <nd ref="2867532164"/>
        <nd ref="2867532158"/>
        <tag k="seamark:type" v="small_craft_facility"/>
        <tag k="seamark:small_craft_facility:category" v="slipway"/>
    </way>
    <way id="308532148" version="1" timestamp="2014-10-19T08:01:23Z" changeset="26187656" uid="554973" user="dgitto">
        <nd ref="3138020830"/>
        <nd ref="3138019712"/>
        <tag k="seamark:type" v="separation_lane"/>
    </way>
    <way id="308532149" version="1" timestamp="2014-10-19T08:01:23Z" changeset="26187656" uid="554973" user="dgitto">
        <nd ref="3138019709"/>
        <nd ref="3138019719"/>
        <tag k="seamark:type" v="separation_lane"/>
    </way>
    <way id="308532154" version="1" timestamp="2014-10-19T08:01:23Z" changeset="26187656" uid="554973" user="dgitto">
        <nd ref="3138019711"/>
        <nd ref="3138020829"/>
        <nd ref="3138019724"/>
        <nd ref="3138019710"/>
        <nd ref="3138019711"/>
        <tag k="seamark:type" v="separation_zone"/>
    </way>
    <way id="308532155" version="1" timestamp="2014-10-19T08:01:23Z" changeset="26187656" uid="554973" user="dgitto">
        <nd ref="3138019708"/>
        <nd ref="3138019715"/>
        <nd ref="3138019714"/>
        <nd ref="3138019713"/>
        <tag k="seamark:type" v="separation_boundary"/>
    </way>
    <way id="308533333" version="1" timestamp="2014-10-19T08:17:51Z" changeset="26187837" uid="554973" user="dgitto">
        <nd ref="3138029015"/>
        <nd ref="3138029027"/>
        <tag k="seamark:type" v="separation_boundary"/>
    </way>
    <way id="337259467" version="1" timestamp="2015-04-07T22:14:40Z" changeset="30051285" uid="554973" user="dgitto">
        <nd ref="3295656093"/>
        <nd ref="3443694326"/>
        <nd ref="3443694327"/>
        <nd ref="3443694328"/>
        <nd ref="3443694329"/>
        <nd ref="3443694330"/>
        <nd ref="3443694331"/>
        <nd ref="3443694332"/>
        <nd ref="3443694333"/>
        <nd ref="3443694334"/>
        <nd ref="3443694335"/>
        <nd ref="3443694336"/>
        <nd ref="3443694337"/>
        <nd ref="3443694338"/>
        <nd ref="3443694339"/>
        <nd ref="3443694340"/>
        <nd ref="3443694341"/>
        <nd ref="3443694342"/>
        <nd ref="3443694343"/>
        <nd ref="3443694344"/>
        <nd ref="472269713"/>
    </way>
    <way id="337259468" version="1" timestamp="2015-04-07T22:14:40Z" changeset="30051285" uid="554973" user="dgitto">
        <nd ref="472269699"/>
        <nd ref="3443694345"/>
        <nd ref="3443694346"/>
        <nd ref="3443694347"/>
        <nd ref="3443694348"/>
        <nd ref="3443694349"/>
        <nd ref="3443694350"/>
        <nd ref="3443694351"/>
        <nd ref="3443694352"/>
        <nd ref="3443694353"/>
        <nd ref="3443694355"/>
        <nd ref="3443694356"/>
        <nd ref="3443694357"/>
        <nd ref="3443694358"/>
        <nd ref="3443694359"/>
        <nd ref="3443694360"/>
        <nd ref="3443694361"/>
        <nd ref="3443694362"/>
        <nd ref="3443694363"/>
        <nd ref="3443694364"/>
        <nd ref="3443694365"/>
        <nd ref="3443694366"/>
        <nd ref="3443694367"/>
        <nd ref="3443694368"/>
        <nd ref="3443694369"/>
        <nd ref="3443694370"/>
        <nd ref="3443694371"/>
        <nd ref="2741814021"/>
    </way>
    <way id="337259476" version="1" timestamp="2015-04-07T22:14:41Z" changeset="30051285" uid="554973" user="dgitto">
        <nd ref="472269699"/>
        <nd ref="472269700"/>
        <nd ref="472269701"/>
        <nd ref="3430933139"/>
        <nd ref="472269702"/>
        <nd ref="3430933138"/>
        <nd ref="472269703"/>
        <nd ref="3430933137"/>
        <nd ref="472269704"/>
        <nd ref="3430933136"/>
        <nd ref="472269705"/>
        <nd ref="3430933134"/>
        <nd ref="3430933133"/>
        <nd ref="472269706"/>
        <nd ref="3430933131"/>
        <nd ref="472269707"/>
        <nd ref="472269708"/>
        <nd ref="472269709"/>
        <nd ref="472269710"/>
        <nd ref="472269711"/>
        <nd ref="472269713"/>
        <tag k="name" v="Territorial waters of Croatia"/>
        <tag k="boundary" v="administrative"/>
        <tag k="maritime" v="yes"/>
        <tag k="admin_level" v="2"/>
        <tag k="border_type" v="territorial"/>
    </way>
    <way id="342345230" version="1" timestamp="2015-05-02T17:57:24Z" changeset="30727923" uid="493209" user="Fiki">
        <nd ref="3493535187"/>
        <nd ref="3493535186"/>
        <nd ref="3493535182"/>
        <nd ref="3493535183"/>
        <nd ref="3493535187"/>
        <tag k="boat" v="yes"/>
        <tag k="name" v="INA Umag-obala"/>
        <tag k="shop" v="yes"/>
        <tag k="brand" v="INA"/>
        <tag k="phone" v="+385 91 4971 138"/>
        <tag k="amenity" v="fuel"/>
        <tag k="building" v="yes"/>
        <tag k="operator" v="INA"/>
        <tag k="addr:city" v="Umag"/>
        <tag k="addr:street" v="Šetalište Vladimira Gortana"/>
        <tag k="fuel:diesel" v="yes"/>
        <tag k="addr:country" v="HR"/>
        <tag k="payment:cash" v="yes"/>
        <tag k="payment:visa" v="yes"/>
        <tag k="seamark:type" v="small_craft_facility"/>
        <tag k="addr:postcode" v="52470"/>
        <tag k="opening_hours" v="Mo-Su 06:00-22:00"/>
        <tag k="fuel:octane_95" v="yes"/>
        <tag k="payment:maestro" v="yes"/>
        <tag k="addr:housenumber" v="5/a"/>
        <tag k="payment:mastercard" v="yes"/>
        <tag k="payment:diners_club" v="yes"/>
        <tag k="payment:discover_card" v="yes"/>
        <tag k="payment:visa_electron" v="yes"/>
        <tag k="payment:american_express" v="yes"/>
        <tag k="seamark:small_craft_facility:category" v="fuel_station"/>
    </way>
    <relation id="4769816" version="7" timestamp="2015-04-12T17:28:02Z" changeset="30168273" uid="554973" user="dgitto">
        <member type="way" ref="185998453" role="outer"/>
        <member type="way" ref="51819069" role="outer"/>
        <member type="way" ref="46428041" role="outer"/>
        <member type="way" ref="185999033" role="outer"/>
        <member type="way" ref="185999034" role="outer"/>
        <member type="way" ref="146956172" role="outer"/>
        <member type="way" ref="146956180" role="outer"/>
        <member type="way" ref="52492818" role="outer"/>
        <member type="way" ref="39332147" role="outer"/>
        <member type="way" ref="337259471" role="outer"/>
        <member type="way" ref="337259475" role="outer"/>
        <member type="way" ref="337259466" role="outer"/>
        <member type="way" ref="46428046" role="outer"/>
        <member type="way" ref="337259470" role="outer"/>
        <member type="way" ref="46428053" role="outer"/>
        <member type="way" ref="337259473" role="outer"/>
        <member type="way" ref="337259474" role="outer"/>
        <member type="way" ref="337259469" role="outer"/>
        <member type="way" ref="322779552" role="outer"/>
        <member type="way" ref="337259467" role="outer"/>
        <member type="way" ref="337259476" role="outer"/>
        <member type="way" ref="337259468" role="outer"/>
        <tag k="name" v="EEZ Italy"/>
        <tag k="type" v="boundary"/>
        <tag k="boundary" v="maritime"/>
        <tag k="border_type" v="eez"/>
        <tag k="seamark:type" v="exclusive_economic_zone"/>
    </relation>
</osm>
malcolmh commented 9 years ago

OK - try it now. It appears that Java uses your Locale when formatting decimal numbers. In your case, it was using ",". This then caused searender to misinterpret decimal numbers, resulting in integer values - hence the zero sized SVGs. I have fixed this by forcing the locale to ENGLISH.

CptLeeChuck commented 9 years ago

Thank you so much! Now the SVG and PNG tiles rendered with ./tilgen look as expected!