Git Product home page Git Product logo

Comments (6)

abrensch avatar abrensch commented on July 24, 2024 1

Would the "second level" catch this?

No. I thought about detecting such assigned variables that are effectively unused, but that's difficult because there's also this remote access from the node context to the way-context ( "add way:townpenalty .." ) and it's hard to cover each edge-case so better keep it simple..

from brouter.

afischerdev avatar afischerdev commented on July 24, 2024

@abrensch
OK, I saw it. And will start with that. But in the next few weeks my time is a bit limited.

from brouter.

abrensch avatar abrensch commented on July 24, 2024

OK, I saw it. And will start with that. But in the next few weeks my time is a bit limited.

Sorry, assignig to you was just by accident. I will look into it, but commit via merge request and welcome a review by you. It's easy to introduce subtle bugs. When looking into the code, I already realized there might by a glitch with numerically evaluated tags not leading to marking the tag as "used".

from brouter.

afischerdev avatar afischerdev commented on July 24, 2024

I add a small new logic for global expressions.
Please see my repo profile-compiler
It removes the unused tags from messages list.

from brouter.

abrensch avatar abrensch commented on July 24, 2024

I created a merge request for my patch: #573

from brouter.

quaelnix avatar quaelnix commented on July 24, 2024

Would the "second level" catch this?

assign townpenalty
    switch estimated_town_class=   switch highway=residential 1.5 1.0
    switch estimated_town_class=1  1.5
    switch estimated_town_class=2  1.8
    switch estimated_town_class=3  2.4
    switch estimated_town_class=4  2.6
    switch estimated_town_class=5  2.8
    switch estimated_town_class=6  3.0 1

assign costfactor
    multiply switch consider_towns townpenalty 1
    ...

from brouter.

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.