Giter Club home page Giter Club logo

Comments (10)

nvkelso avatar nvkelso commented on May 15, 2024

For road shields, do we start exporting: tags->'network' as network?

Looks like we do a little connectivity testing like this for US Interstates already:
https://github.com/mapzen/vector-datasource/blob/master/data/functions.sql#L96

Could add network_val='US:US' and see where that gets us?

from vector-datasource.

rmarianski avatar rmarianski commented on May 15, 2024

We already do include the network attribute on road features, like you just mentioned. How about changing the query to instead of querying on the network tag, instead include type='route' and route='road' features starting at z9. And when determining the kind, we can identify these relations as highway. We'll probably end up returning back duplicate geometries in these cases though, one for the underlying way and another for the relation, but maybe that's what we want to do?

This looks to be the relevant openstreetmap wiki page:

http://wiki.openstreetmap.org/wiki/Interstate_Highway_relations

from vector-datasource.

nvkelso avatar nvkelso commented on May 15, 2024

Let's try to avoid duplicating line work (lifework, thanks autocorrect). Should we limit this to adding the network_val='US:US' test (like we do now for US Interstates)?

from vector-datasource.

rmarianski avatar rmarianski commented on May 15, 2024

The duplicate geometries come from including both the ways and the relations. It already started happening when we included network=US:I features.

I would expect that querying on type/route would yield more results because according to the wiki page there are more network values besides US:I and US:US. I'm assuming we would want to include those as well.

from vector-datasource.

rmarianski avatar rmarianski commented on May 15, 2024

Should we add in the additional relation features for now, and consider how to remove any duplication in the future?

from vector-datasource.

meetar avatar meetar commented on May 15, 2024

Another test case of relation/feature property conflict: the Brooklyn-Battery connection is a relation (https://www.openstreetmap.org/relation/1860086), much of which is a tunnel (https://www.openstreetmap.org/way/5681925) – the roads layer currently includes both features, with the tunnel section properly marked as is_tunnel : yes but the whole relation marked as is_tunnel: no.

from vector-datasource.

nvkelso avatar nvkelso commented on May 15, 2024

For:

  1. Improve road connectivity based on highway designation, not just road surface / width classification.

We are doing this now in the Tangram scene file by testing the presence of the ref, and that's working fine. So we should focus work here on (1) alone.

from vector-datasource.

zerebubuth avatar zerebubuth commented on May 15, 2024

I think we talked about this, but I've now forgotten: do we want to overwrite any existing network tag on the way (there aren't many of them) with the result from the relation? Also, do we want to restrict looking up networks to non-minor roads (e.g: tertiary & above) and railways?

from vector-datasource.

nvkelso avatar nvkelso commented on May 15, 2024

do we want to overwrite any existing network tag on the way (there aren't many of them) with the result from the relation?

Yes, overwrite the way's network value with the relation's network value.

do we want to restrict looking up networks to non-minor roads (e.g: tertiary & above) and railways?

Yes (avoid doing this for minor roads).

from vector-datasource.

nvkelso avatar nvkelso commented on May 15, 2024

Fixed in #170.

from vector-datasource.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.