[go: up one dir, main page]

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

Linking Relations to corresponding Ways in Multipolygon Relations #390

Open
brianruf opened this issue Sep 7, 2022 · 0 comments
Open

Linking Relations to corresponding Ways in Multipolygon Relations #390

brianruf opened this issue Sep 7, 2022 · 0 comments

Comments

@brianruf
Copy link
brianruf commented Sep 7, 2022

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)

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