Code Monkey home page Code Monkey logo

Comments (4)

antifa-ev avatar antifa-ev commented on May 18, 2024

Have you repeated with standard Postgres before reporting?

from usbuildingfootprints.

shermstats avatar shermstats commented on May 18, 2024

I ran into this issue when processing buildings via the shapely Python library.

A few examples indicate that many instances of self-intersection occur when a single footprint is actually two footprints connected at a single corner. My solution was to split those into two new footprints at the shared corner.

from usbuildingfootprints.

zoharby avatar zoharby commented on May 18, 2024

Also encountered a few cases of self-intersecting polygons in the dataset, for example (line 1445618 in Oklahoma.geojson):
{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-95.936934,36.192659],[-95.936506,36.193613],[-95.936854,36.193715],[-95.936913,36.193583],[-95.936848,36.193564],[-95.936888,36.193474],[-95.936896,36.193476],[-95.936938,36.193381],[-95.937011,36.193402],[-95.937073,36.193263],[-95.937017,36.193247],[-95.937017,36.193247],[-95.937836,36.193487],[-95.937802,36.193563],[-95.937808,36.193565],[-95.937647,36.193923],[-95.938223,36.194092],[-95.938228,36.19408],[-95.938348,36.194115],[-95.938748,36.193226],[-95.938156,36.193053],[-95.938153,36.19306],[-95.938057,36.193032],[-95.938037,36.193077],[-95.938054,36.193082],[-95.937884,36.193461],[-95.937384,36.193314],[-95.937592,36.192851],[-95.937026,36.192685],[-95.937026,36.192686],[-95.936934,36.192659]]]},"properties":{}}

Gives:
TopologyException: Input geom 0 is invalid: Self-intersection at or near point -95.937072838161598 36.193263362831239 at -95.937072838161598 36.193263362831239

from usbuildingfootprints.

chadwilcomb avatar chadwilcomb commented on May 18, 2024

These topology errors, while a very small percentage, break the 2dsphere index in MongoDB and thus they cannot be inserted. It would be great if there was a way to make these 100% valid topologies.

from usbuildingfootprints.

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.