-
Notifications
You must be signed in to change notification settings - Fork 120
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
Landuse should exclude buildings source #201
Comments
I suspect this is the root cause of too many university icons showing up in clusters where OSM has #16/37.7243/-122.4790 |
It's also a little weird to see See: |
There are a few things we could try for this:
The first option seems pretty quick, so let's start with that. |
It sounds like we need to separate out three different things; landuse, building and POI status. Any OSM feature could have a mixture of all three. I've tried to collect together a set of reasonably plausible examples below, along with what we might want them to be exported as in the output.
Does that all sound about right? Are there any other cases we should be considering? Particularly any which would result in a polygon being put into more than one layer? |
It would, but we strip that out in post processing so there is effectively no |
See comment in (1) Above re skipping |
This makes sense to me. NOTE: We revised |
Yeah. Is the |
@zerebubuth For all of these, does |
Yeah, I managed to pick examples with
|
What happens when there is also a record for that hotel in the point table? Would we get two |
Ditto to 5) above. |
I think so too. If there's something in the points table and in the polygons table, that implies that it's duplicated in the original OSM data (as an individual node and also a way/relation). Ideally the data would get fixed, but there'll be some weird corner case where that's not possible, and so it's better to de-dup later on when we've got all the label points together in the same place, as we're post-processing them. |
Yep (and that's what default OSM rendering does). |
|
You managed to find the high line in NYC, which is like a data unicorn!
Since it has other attributes like |
Did you mean it also has |
Another strange case: Here there's an landuse area that has area=yes for the school grounds, with a name. Should this get a label position? What kind value? |
I don't understand the rationale behind this. If we have a POI then why do we care whether it has come from a polygon or a point table? Is there something that (As a side note, started #347 to track using |
I'm getting this locally: {
"type": "Point",
"properties": {
"source": "openstreetmap.org",
"kind": "address",
"addr_housenumber": "2525",
"addr_street": "Van Ness Avenue",
"id": 69707523
},
"coordinates": [
676,
797
]
} So something is going on. Not sure if it's a code difference between dev and my local machine, or a database difference. Will investigate further. |
This tile looks good in dev as of last night's deploy. So either there was a temporary regression which got fixed, or something weirder is going on. This might be an excellent candidate for a "unit test". |
@zerebubuth Here's an interesting case where no name, the building is tagged as an appartment, and it has an address= http://vector.dev.mapzen.com/osm/all/19/83848/202601.topojson?api_key=vector-tiles-HqUVidw
UPDATE: I've worked around it in the stylesheet. |
I've gotten around the |
I'm seeing two features there: {
"type": "Polygon",
"properties": {
"kind": "apartments",
"area": 544,
"addr_street": "Greenwich Street",
"height": 14,
"volume": 7616,
"source": "openstreetmap.org",
"addr_housenumber": "1595",
"id": 243508784
},
"arcs": [
[
2
]
]
},
...
{
"type": "Point",
"properties": {
"source": "openstreetmap.org",
"kind": "address",
"addr_housenumber": "1595",
"addr_street": "Greenwich Street",
"id": 243508784
},
"coordinates": [
807,
43
]
}, Which is what we agreed before. The |
I see the same thing now, and it's to spec, so nothing more to see here. |
In working on #186 we've discovered we're duplicating buildings with certain tags into the landuse layer as polygons. We shouldn't be doing that (the building should only appear in the building layer as a building feature, a flattened version of it shouldn't be copied to the landuse layers).
The text was updated successfully, but these errors were encountered: