[gdal-dev] OSM issue with a relation containing all fields from its children

Sebastiaan Couwenberg sebastic at xs4all.nl
Mon Aug 10 03:07:01 PDT 2020


On 8/10/20 10:36 AM, g.jaegy wrote:
> The relation is #8601362, see  https://www.openstreetmap.org/relation/8601362.
> 
> This relation has two members, #24338289 which is indeed a lake, and #532474841 which is not a lake.

The relation in OSM is invalid.

type=boundary without additional tags is already a sign.

Because the outer ways in the relation have descriptive tags themselves,
the relation could be considered old-style, but that's only for
type=multipolygon.

The member relation 5462089 is also invalid, it doesn't have a type and
it has touching outer rings.

You should probably ignore relations like this in your code, but the
data in OSM should also be fixed.

I would delete relation 8601362, move the tags from relation 5462089 to
way 577387272 and merge this with way 24338289 to become one larger
closed way. Then relation 5462089 can also be removed because the close
way already represents the lake, no need for a relation with a single
outer way (since the lake doesn't appear to have islands nor islets).

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1


More information about the gdal-dev mailing list