Skip to content

Linking Relations to corresponding Ways in Multipolygon Relations #390

@brianruf

Description

@brianruf

It is not clear if there was ever a resolution to a similar issue outlined nearly 5 years ago as I am also having issues with Relation nodes/elements referring to Way nodes/elements when importing an OSM file although in my case it is not associated with negative ID's.

While MEMBER relations are created for some Relations (routes, restrictions, etc.) they do not seem to be created for multipolygon type relations (see example OSM data below) so I am wondering how to determine with accuracy for example if a point is in a multipolygon (i.e. city) using the corresponding graph model if we can not reconstruct the polygon?

Sample Multipolygon OSM object (parking lot):
Screenshot 2022-09-07 034441

Screenshot 2022-09-07 032427

image

As with the original post on this issue, the log reveals a number of (total of 9) "Cannot find member" messages but these seem to be explainable by the comment from @craigtaverner regarding being caused "by slicing a piece of the bigger OSM graph." which was the case here.

Sample Log Entry for missing members (total of 9 entries):
.\import\KS_JO_135th.osm[447104]: Cannot find member: {type=way, ref=34142211, role=outer}

Also like in the original post, the log also references a total number of missing members which is much larger than the members listed above.

Log entry for total missing members:
.\import\KS_JO_135th.osm[471176]: When processing the relations, there were 7294 missing members

Not sure if this log entry may indicate a problem or if the member relations are intentionally not included in this model.

In any event I would like to be able to accurately determine if points are within OSM multipolygons (not using approximations based on bounding box) and not sure how to do this with this data model.

I have tried this with a large OSM file consisting of a USA county and a much smaller one (i.e. 12K) as outlined here with the same results.

I am using DBMS Version 4.4.3 on NEO4j Desktop.

Originally posted by @brianruf in #304 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions