Git Product home page Git Product logo

Comments (7)

jfirebaugh avatar jfirebaugh commented on July 17, 2024

Interesting. How did you determine that it's a null feature?

from geojson-vt-cpp.

springmeyer avatar springmeyer commented on July 17, 2024

Sorry, edited to be more clear above. It looks like a geometry type is being requested that is not inside the variant, not necessarily a null. I don't have a testcase or conclusive proof, just reading the backtrace shows that .get<> is failing which means the requested type does not exist.

from geojson-vt-cpp.

jfirebaugh avatar jfirebaugh commented on July 17, 2024

I think the underlying issue is that geojson-vt-cpp wants the invariant that a Point feature always has a ProjectedPoints geometry, and a non-Point feature always has a ProjectedRings geometry. If that's the case, then a fix like #43 is hiding the underlying issue, which is that some other part of the code is violating that invariant.

from geojson-vt-cpp.

springmeyer avatar springmeyer commented on July 17, 2024

@jfirebaugh thanks for the help. I'll close #43 then and we'll wait for more of a sense of the underlying problem.

from geojson-vt-cpp.

mourner avatar mourner commented on July 17, 2024

I remember @mikemorris having a similar problem very long time ago, but we couldn't get a reproducible test case that time either.

from geojson-vt-cpp.

mikemorris avatar mikemorris commented on July 17, 2024

@mourner Yea, I was trying to diagnose mapbox/mapbox-gl-native#2926 and found the problematic line, but couldn't determine the proper fix.

from geojson-vt-cpp.

mourner avatar mourner commented on July 17, 2024

Addressed by #45 (with visitor pattern for bbox calculation).

from geojson-vt-cpp.

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.