Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong multipolygons rendering #4

Open
sikmir opened this issue Dec 17, 2020 · 0 comments
Open

Wrong multipolygons rendering #4

sikmir opened this issue Dec 17, 2020 · 0 comments

Comments

@sikmir
Copy link

sikmir commented Dec 17, 2020

Actual behaviour

test_1.osm

<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6">
 <bounds minlat="60.09" minlon="29.66" maxlat="60.16" maxlon="29.75"/>
 <node id="1" version="1" lat="60.141334" lon="29.743080"/>
 <node id="2" version="1" lat="60.155005" lon="29.704971"/>
 <node id="3" version="1" lat="60.142188" lon="29.667892"/>
 <node id="4" version="1" lat="60.107644" lon="29.666519"/>
 <node id="5" version="1" lat="60.098232" lon="29.707718"/>
 <node id="6" version="1" lat="60.111579" lon="29.745483"/>
 <node id="7" version="1" lat="60.111579" lon="29.694328"/>
 <node id="8" version="1" lat="60.125263" lon="29.694328"/>
 <node id="9" version="1" lat="60.133812" lon="29.744453"/>
 <way id="10" version="1">
  <nd ref="1"/>
  <nd ref="2"/>
  <nd ref="3"/>
  <nd ref="4"/>
  <nd ref="5"/>
  <nd ref="6"/>
 </way>
 <way id="11" version="1">
  <nd ref="6"/>
  <nd ref="7"/>
 </way>
 <way id="12" version="1">
  <nd ref="7"/>
  <nd ref="8"/>
 </way>
 <way id="13" version="1">
  <nd ref="8"/>
  <nd ref="9"/>
 </way>
 <way id="14" version="1">
  <nd ref="9"/>
  <nd ref="1"/>
 </way>
 <relation id="9" version="1">
  <member type="way" ref="10" role="outer"/>
  <member type="way" ref="11" role="outer"/>
  <member type="way" ref="12" role="outer"/>
  <member type="way" ref="13" role="outer"/>
  <member type="way" ref="14" role="outer"/>
  <tag k="type" v="multipolygon"/>
  <tag k="natural" v="water"/>
 </relation>
</osm>

Result (wrong):
scr1

test_2.osm

<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6">
 <bounds minlat="60.09" minlon="29.66" maxlat="60.16" maxlon="29.75"/>
 <node id="1" version="1" lat="60.141334" lon="29.743080"/>
 <node id="2" version="1" lat="60.155005" lon="29.704971"/>
 <node id="3" version="1" lat="60.142188" lon="29.667892"/>
 <node id="4" version="1" lat="60.107644" lon="29.666519"/>
 <node id="5" version="1" lat="60.098232" lon="29.707718"/>
 <node id="6" version="1" lat="60.111579" lon="29.745483"/>
 <node id="7" version="1" lat="60.111579" lon="29.694328"/>
 <node id="8" version="1" lat="60.125263" lon="29.694328"/>
 <node id="9" version="1" lat="60.133812" lon="29.744453"/>
 <way id="10" version="1">
  <nd ref="1"/>
  <nd ref="2"/>
  <nd ref="3"/>
  <nd ref="4"/>
  <nd ref="5"/>
  <nd ref="6"/>
 </way>
 <way id="11" version="1">
  <nd ref="6"/>
  <nd ref="7"/>
  <nd ref="8"/>
 </way>
 <way id="12" version="1">
  <nd ref="8"/>
  <nd ref="9"/>
 </way>
 <way id="13" version="1">
  <nd ref="9"/>
  <nd ref="1"/>
 </way>
 <relation id="9" version="1">
  <member type="way" ref="10" role="outer"/>
  <member type="way" ref="11" role="outer"/>
  <member type="way" ref="12" role="outer"/>
  <member type="way" ref="13" role="outer"/>
  <tag k="type" v="multipolygon"/>
  <tag k="natural" v="water"/>
 </relation>
</osm>

Result (wrong):
scr2

test_3.osm

<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6">
 <bounds minlat="60.09" minlon="29.66" maxlat="60.16" maxlon="29.75"/>
 <node id="1" version="1" lat="60.141334" lon="29.743080"/>
 <node id="2" version="1" lat="60.155005" lon="29.704971"/>
 <node id="3" version="1" lat="60.142188" lon="29.667892"/>
 <node id="4" version="1" lat="60.107644" lon="29.666519"/>
 <node id="5" version="1" lat="60.098232" lon="29.707718"/>
 <node id="6" version="1" lat="60.111579" lon="29.745483"/>
 <node id="7" version="1" lat="60.111579" lon="29.694328"/>
 <node id="8" version="1" lat="60.125263" lon="29.694328"/>
 <node id="9" version="1" lat="60.133812" lon="29.744453"/>
 <way id="10" version="1">
  <nd ref="1"/>
  <nd ref="2"/>
  <nd ref="3"/>
  <nd ref="4"/>
  <nd ref="5"/>
  <nd ref="6"/>
 </way>
 <way id="11" version="1">
  <nd ref="6"/>
  <nd ref="7"/>
  <nd ref="8"/>
 </way>
 <way id="12" version="1">
  <nd ref="8"/>
  <nd ref="9"/>
  <nd ref="1"/>
 </way>
 <relation id="9" version="1">
  <member type="way" ref="10" role="outer"/>
  <member type="way" ref="11" role="outer"/>
  <member type="way" ref="12" role="outer"/>
  <tag k="type" v="multipolygon"/>
  <tag k="natural" v="water"/>
 </relation>
</osm>

Result (wrong):
scr3

test_4.osm

<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6">
 <bounds minlat="60.09" minlon="29.66" maxlat="60.16" maxlon="29.75"/>
 <node id="1" version="1" lat="60.141334" lon="29.743080"/>
 <node id="2" version="1" lat="60.155005" lon="29.704971"/>
 <node id="3" version="1" lat="60.142188" lon="29.667892"/>
 <node id="4" version="1" lat="60.107644" lon="29.666519"/>
 <node id="5" version="1" lat="60.098232" lon="29.707718"/>
 <node id="6" version="1" lat="60.111579" lon="29.745483"/>
 <node id="7" version="1" lat="60.111579" lon="29.694328"/>
 <node id="8" version="1" lat="60.125263" lon="29.694328"/>
 <node id="9" version="1" lat="60.133812" lon="29.744453"/>
 <way id="10" version="1">
  <nd ref="1"/>
  <nd ref="2"/>
  <nd ref="3"/>
  <nd ref="4"/>
  <nd ref="5"/>
  <nd ref="6"/>
 </way>
 <way id="11" version="1">
  <nd ref="6"/>
  <nd ref="7"/>
  <nd ref="8"/>
  <nd ref="9"/>
  <nd ref="1"/>
 </way>
 <relation id="9" version="1">
  <member type="way" ref="10" role="outer"/>
  <member type="way" ref="11" role="outer"/>
  <tag k="type" v="multipolygon"/>
  <tag k="natural" v="water"/>
 </relation>
</osm>

Result (OK):
scr4

Expected behaviour

All test_{1,2,3,4}.osm should be rendered the same way.
Just for reference, JOSM rendering:
scr0

Test files

test_osm.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant