Coder Social home page Coder Social logo

Comments (4)

hugoledoux avatar hugoledoux commented on August 20, 2024

We should, but then what do we do with them? Discard them? Warn user?

from 3dfier.

tcommandeur avatar tcommandeur commented on August 20, 2024

A error it thrown in the current version.

if (!geometry->IsValid()) {
std::cerr << "Geometry invalid: " << f->GetFieldAsString(idfield) << std::endl;
}

from 3dfier.

grivy avatar grivy commented on August 20, 2024

I'm not sure at which point during the conversion the invalid geometries occur, but I think you can safely assume that the BGT geometries are valid. There is one possible exception though which is where 1 vertex of an interior ring crosses the exterior ring by less than 0.5mm. This occurs very rarely (I have seen only two which have been fixed now).
You should however make sure when converting arcs to line segments that the density is high enough to not create self-intersections. BGT geometries are robust in that a 0.5mm threshold is used, so set the densify parameters accordingly.

from 3dfier.

tcommandeur avatar tcommandeur commented on August 20, 2024

The invalid geometries occurred due to broken shapefiles, code throws an error to notify.

About converting arcs to line segments, this is not as easy as stated. to be able to discretise lines topologically correct a robust arc-reversible algorithm needs to be used like GDAL which is not that easy to influence.

from 3dfier.

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.