Coder Social home page Coder Social logo

Comments (6)

Bentleysb avatar Bentleysb commented on July 17, 2024 1

This all sounds good to me. For the first item we could use the universal configurable tags.filter in the configuration (e.g. "tags.filter": "!roller_coaster").

from atlas-checks.

vladlemberg avatar vladlemberg commented on July 17, 2024

@Bentleysb, please assign this task to me.

from atlas-checks.

vladlemberg avatar vladlemberg commented on July 17, 2024

@atiannicelli, @Bentleysb, 1) done. for 2,3) im seeking for your suggestion. all validations for InvalidGeometryCheck occurs in GeometryValidation class, which also generating flag message. GeometryValidation works only with RawGeometry. It has to be refactored to work with Atlas objects (Area, Edge, etc..). Also GeometryValidation is used by other Checks as well.

from atlas-checks.

atiannicelli avatar atiannicelli commented on July 17, 2024

@vladlemberg Could you use GeometryValidator to indicate that issue and then just add to the error message that is returned? In other words:

instead of
"Geometry is Not Simple: Linear geometry intersecting itself at interior points (points other than the boundary)."
make it:
"Way 985261221 failed validity check: Geometry is Not Simple: Linear geometry intersecting itself at interior points (points other than the boundary). The way intersects with itself at [33.2643718, 44.4938849]"

f"{type} {osm_id} failed validity check: {reason} {intersecting points}"

You would need to do a little bit of work to get the intersecting points (or issue points) from each failing feature, but I think it would be best to do all of this in the check and not change the GeometryValidator

from atlas-checks.

atiannicelli avatar atiannicelli commented on July 17, 2024

I take it back. I just looked and I only see one other check using GeometryValidator. And that check doesn't use the error message - just the existence of an error message.
I personally would do as you suggested and refactor GeometryValidation to work with Atlas Objects and return an error message that is more detailed. But I'll let @Bentleysb comment.

from atlas-checks.

vladlemberg avatar vladlemberg commented on July 17, 2024

@Bentleysb, please close this issue.

from atlas-checks.

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.