Attached are two very simple osm files which show an "island" in a water polygon added by hand. Both are connected with a multipolygon relation.
The difference between the to files is just the size of the island.

The multipolygon is rendered correctly in the map resulting from test1.osm but not in the one resulting from test2.osm. This may be the result of a bug in the polygon splitting algorithm.

This problem also occurs when I try to create a map of Corsica with the sea added by hand.

Best wishes
Christian
<?xml version='1.0' encoding='UTF-8'?>
<osm version='0.6' generator='JOSM'>
  <node id='-1' action='modify' timestamp='2009-07-29T20:29:27Z' visible='true' version='0' lat='1.328294567641478' lon='-2.068920196861403'>
  </node>
  <node id='-2' action='modify' timestamp='2009-07-29T20:29:27Z' visible='true' version='0' lat='1.2926712474982742' lon='1.6687906730978546'>
  </node>
  <node id='-3' action='modify' timestamp='2009-07-29T20:29:27Z' visible='true' version='0' lat='-1.8775212325182145' lon='1.7777353633180364'>
  </node>
  <node id='-4' action='modify' timestamp='2009-07-29T20:29:27Z' visible='true' version='0' lat='-1.6850843200487289' lon='-2.384020195235887'>
  </node>
  <node id='-5' action='modify' timestamp='2009-07-29T20:37:59Z' visible='true' version='0' lat='-0.09817788158542985' lon='-0.09731501778753923'>
  </node>
  <node id='-6' action='modify' timestamp='2009-07-29T20:37:59Z' visible='true' version='0' lat='-0.15908462832580553' lon='-0.36597376731440057'>
  </node>
  <node id='-7' action='modify' timestamp='2009-07-29T20:37:59Z' visible='true' version='0' lat='-0.009121482824366194' lon='-0.44447390730091385'>
  </node>
  <node id='-8' action='modify' timestamp='2009-07-29T20:37:59Z' visible='true' version='0' lat='0.09444607202636145' lon='-0.23319609540542952'>
  </node>
  <way id='-9' action='modify' timestamp='2009-07-29T20:29:27Z' visible='true' version='0'>
    <nd ref='-1' />
    <nd ref='-2' />
    <nd ref='-3' />
    <nd ref='-4' />
    <nd ref='-1' />
    <tag k='natural' v='water' />
  </way>
  <way id='-10' action='modify' timestamp='2009-07-29T20:29:27Z' visible='true' version='0'>
    <nd ref='-8' />
    <nd ref='-5' />
    <nd ref='-6' />
    <nd ref='-7' />
    <nd ref='-8' />
    <tag k='natural' v='coastline' />
  </way>
  <relation id='-11' action='modify' timestamp='2009-07-29T20:29:27Z' visible='true' version='0'>
    <member type='way' ref='-10' role='inner' />
    <member type='way' ref='-9' role='outer' />
    <tag k='type' v='multipolygon' />
  </relation>
</osm>
<?xml version='1.0' encoding='UTF-8'?>
<osm version='0.6' generator='JOSM'>
  <node id='-1' action='modify' timestamp='2009-07-29T20:29:27Z' visible='true' version='0' lat='0.31721049494176823' lon='-0.7563216170034055'>
  </node>
  <node id='-2' action='modify' timestamp='2009-07-29T20:29:27Z' visible='true' version='0' lat='0.31490228987762625' lon='0.14821422215850844'>
  </node>
  <node id='-3' action='modify' timestamp='2009-07-29T20:29:27Z' visible='true' version='0' lat='-0.4239988681629339' lon='0.05969268066070854'>
  </node>
  <node id='-4' action='modify' timestamp='2009-07-29T20:29:27Z' visible='true' version='0' lat='-0.43199518239302503' lon='-0.7252156866682496'>
  </node>
  <node id='-5' action='modify' timestamp='2009-07-29T20:37:59Z' visible='true' version='0' lat='-0.09817788158542985' lon='-0.09731501778753923'>
  </node>
  <node id='-6' action='modify' timestamp='2009-07-29T20:37:59Z' visible='true' version='0' lat='-0.15908462832580553' lon='-0.36597376731440057'>
  </node>
  <node id='-7' action='modify' timestamp='2009-07-29T20:37:59Z' visible='true' version='0' lat='-0.009121482824366194' lon='-0.44447390730091385'>
  </node>
  <node id='-8' action='modify' timestamp='2009-07-29T20:37:59Z' visible='true' version='0' lat='0.09444607202636145' lon='-0.23319609540542952'>
  </node>
  <way id='-9' action='modify' timestamp='2009-07-29T20:29:27Z' visible='true' version='0'>
    <nd ref='-8' />
    <nd ref='-5' />
    <nd ref='-6' />
    <nd ref='-7' />
    <nd ref='-8' />
    <tag k='natural' v='coastline' />
  </way>
  <way id='-10' action='modify' timestamp='2009-07-29T20:29:27Z' visible='true' version='0'>
    <nd ref='-1' />
    <nd ref='-2' />
    <nd ref='-3' />
    <nd ref='-4' />
    <nd ref='-1' />
    <tag k='natural' v='water' />
  </way>
  <relation id='-11' action='modify' timestamp='2009-07-29T20:29:27Z' visible='true' version='0'>
    <member type='way' ref='-9' role='inner' />
    <member type='way' ref='-10' role='outer' />
    <tag k='type' v='multipolygon' />
  </relation>
</osm>
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to