Code Monkey home page Code Monkey logo

Comments (7)

sjib avatar sjib commented on June 27, 2024

So this is the suggestion for the new defintion of _slope_per_mill:
CASE WHEN rp_from.level > 0 AND rp_to.level > 0 THEN round((rp_from.level - rp_to.level)/ST_Length(progression_geometry)*1000,1) ELSE NULL END AS _slope_per_mill

  • Does this work if progression _geometry is 2D
  • Does this work if progression_geometry is 3D
  • Is _slope_per_mill used elsewhere and how could this change influence it?

Any objections to this solution?

I added this topic to the agenda of the next technical meeting in December.
@spch-GL if you want to join please contact @ponceta for an invitation.

from qgep.

spch-GL avatar spch-GL commented on June 27, 2024

Thank you for this proposal, but I think that at least Denis Rouzaud can answer your questions about _slope_per_mill. And as I'm not really envolved in QGEP, I prefer not to participate

from qgep.

ponceta avatar ponceta commented on June 27, 2024

Your contribution is welcome.

Using actual 3D length should never result in higher slopes since 3D length can only be longer than the 2D length.

Could then be the length_effective calculation wrong?

WHEN rp_from.level > 0 AND rp_to.level > 0 THEN round((rp_from.level - rp_to.level)/re.length_effective*1000,1)

@spch-GL Denis does not take part to the technical group, but @olivierdalang can maybe bring the subject on your behalf?

from qgep.

spch-GL avatar spch-GL commented on June 27, 2024

Yes, 3D length can only be longer than 2D length. Thus, the slope resulting of its use is lower.

Yes, I'm sure @olivierdalang can do that

from qgep.

olivierdalang avatar olivierdalang commented on June 27, 2024

note: also look at #773 at the same time which also involves _slope_per_mill calculation

from qgep.

ponceta avatar ponceta commented on June 27, 2024

https://github.com/QGEP/datamodel/search?q=_slope_per_mill

  • _slope_per_mill is actually used only in vw_qgep_reach
  • work if progression _geometry is 2D
  • work if progression_geometry is 3D

from qgep.

olivierdalang avatar olivierdalang commented on June 27, 2024

Fixed by QGEP/datamodel#195

from qgep.

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.