Closed mtirwin closed 8 years ago
Yeah I think you're right about that line being the issue. So right now it's name || road
, meaning, if it finds a name it won't check that it's actually a road. I think you might want name && road
, to insure the OSM item has both a name and is a road.
If you're checking against OSM, the tag you want is probably feature.properties.highway
.
Pushed some changes that got the diffing in shape, but I'm still getting all OSM ways compared to the other dataset, i.e. filtering by OSM highways isn't working.
Added a flag to filter only OSM, not the second dataset. 🙏 @tcql. All set here.
@aaronlidman I've got diffing of OSM (I'm using the Samoa country dump from OSM QA tiles) and my other road dataset (MGCP, a New Zealand gov dataset) up and running based off mapbox/road-diff (modified from its original OSM + Tiger setup). When I map MGCP roads that aren't in OSM, I get a good looking output:
But when I map OSM roads that aren't in MGCP, I seem to be getting all OSM layers, including things like streams:
I suspect that https://github.com/mtirwin/mgcp-diff/blob/master/diff.js#L61 is the culprit here, but I've played around with changing property filters to no avail. Any guidance on how to filter + compare only OSM roads?