Comments (4)
Have you repeated with standard Postgres before reporting?
from usbuildingfootprints.
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.
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.
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)
- 2018 buildings disappearing from 2021 edition
- Question: What % of all US buildings are estimated to be covered? HOT 1
- More details about polygonization algorithm? HOT 2
- Footprints for Ukraine HOT 1
- Extract polygons for a specific city from State GeoJson HOT 1
- which version of EfficientNet?
- Alternative to GeoJSON? HOT 5
- FootPrint of Nepal
- Satellite Image of Kathmandu in 2015 (Pre and Post Earthquake)
- Alaska missing a lot of areas/buildings?
- Unable To Download Data HOT 3
- Update has fewer buildings for US
- Footprints less accurate than they were before. HOT 2
- Wrong shape files showing up for Aberdeen Proving Grounds, Harford County, Maryland, US
- Tall buildings not showing up correctly in Chicago HOT 1
- This repo is missing a LICENSE file
- This repo is missing important files HOT 1
- Delta in QGIS
- I need to get my Microsoft points back. Help me please. HOT 1
- Building Heights HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from usbuildingfootprints.