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

Filter out duplicate POIs (one from landuse AOI, one from building & etc) #320

Closed
nvkelso opened this issue Oct 21, 2015 · 7 comments
Closed
Assignees
Milestone

Comments

@nvkelso
Copy link
Member

nvkelso commented Oct 21, 2015

Cloning this to a new issue to track down further edge cases...

I'm still seeing duplicate POIs, I think from different layers where one has an area and the other doesn't, but they have the same OSM ids. The proposed implementation is only within a single layer, do we need it to span across layers, or pack less stuff into multiple layers? (Seems like less double packing is the way to go.)
#16/37.7653/-122.4413

screen shot 2015-10-19 at 17 08 18

@nvkelso
Copy link
Member Author

nvkelso commented Oct 21, 2015

From @zerebubuth comment on that original issue:

I think the tile with the museum must have just not updated yet - what I see is below:

randall_museum_z16

Regarding the duplicate schools; looks like they're coming from an amenity=school polygon which we put into the landuse layer and gets a label from there, and a building=school polygon which we put into the buildings layer and gets a label from there.

We have two options here:

  1. Noting that this is very similar to the situation around the SFU campus, where buildings are appearing like POIs because their kind ends up being the same as the landuse polygon containing them, you had previously suggested suppressing the kind when it's the same as the landuse_kind and turn it into kind=building instead. We could do this as a separate post-process filter. (Alternatively, we could suppress the landuse polygon, but I think we'd prefer to keep the "larger" object, which is usually the landuse not the building polygon.)
  2. Suppress duplicate POIs (across layers) by extending the post-processing step. This will also run into more corner cases, as we'd effectively need to define an ordering between layers so that we could choose the more important duplicate to keep.

In either case, I think it's worth tracking the follow-up as a separate issue so as not to hold up getting this, or anything merged after this, into prod.

@nvkelso nvkelso added the ready label Oct 26, 2015
@nvkelso nvkelso added this to the Compilation 2.1 milestone Oct 26, 2015
@nvkelso
Copy link
Member Author

nvkelso commented Oct 26, 2015

Another example, the Lombard Motor Inn in SF as building label and as POI.

#19/37.80054/-122.42523

screen shot 2015-10-26 at 16 39 24

@nvkelso
Copy link
Member Author

nvkelso commented Oct 27, 2015

  1. Suppress duplicate POIs (across layers) by extending the post-processing step. This will also run into more corner cases, as we'd effectively need to define an ordering between layers so that we could choose the more important duplicate to keep.

This approach smells better to me. There are going to be corner cases either way, and this option seems to allow us more determinism.

@zerebubuth
Copy link
Member

Another example, the Lombard Motor Inn in SF as building label and as POI.

It is mapped as two separate objects, so we'll have to use a post-process de-dup filter since it's duplicated in the original data.

http://www.openstreetmap.org/#map=19/37.80074/-122.42582

Arguably, these should be merged. But there's probably many, may other examples so it might be better just to leave it as-is so that we can use it as an example.

@zerebubuth
Copy link
Member

Tracking the Lombard Motor Inn as an example of the kind of thing we want to filter out in #266.

@nvkelso
Copy link
Member Author

nvkelso commented Oct 28, 2015

This may be a duplicate of #266. Reevaluate once that is in dev.

@nvkelso nvkelso self-assigned this Oct 28, 2015
@nvkelso
Copy link
Member Author

nvkelso commented Oct 30, 2015

Pretty sure this was a dupe.

@nvkelso nvkelso closed this as completed Oct 30, 2015
@nvkelso nvkelso removed the ready label Oct 30, 2015
@nvkelso nvkelso modified the milestones: v0.5.0, Compilation 2.1 Nov 3, 2015
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

2 participants