question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Test data contain invalid geometries

See original GitHub issue

countries.geo.json contains self-intersecting Multipolygons, which is illegal. GeoJSON obviously doesn’t care about that, but JTS doesn’t accept them, and neither would e.g. PostGIS.

I would suspect that the tool which was used to simplify the geometry didn’t care about topology.

screen shot 2017-04-27 at 16 06 52

This is a bit mean because it prevents me from experimenting with standard geometric algorithms. ,-)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:20 (20 by maintainers)

github_iconTop GitHub Comments

2reactions
otbutzcommented, Dec 14, 2020

Fixed by #2188

1reaction
michazcommented, Feb 28, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Check Geometry—ArcGIS Pro | Documentation
The ArcGIS Data Reviewer Check Geometry check finds features that contain invalid geometry. This includes features that contain null or empty geometries, ...
Read more >
Invalid Geometry Check Explained… - Esri
This condition occurs when a feature's envelope (bounding rectangle) does not have any geometric information. This is similar to empty geometry.
Read more >
Handling Invalid Geometries (QGIS3) - QGIS Tutorials and Tips
This tutorial will show you a typical workflow for handling invalid geometries in your data. Note. Different software systems implement different notions of ......
Read more >
Data QA: Identifying Invalid Geometry Types - FME Community
Follow these steps to learn how to identify contour features that have an invalid geometry type. ... Select Readers > Add Reader from...
Read more >
Skipping invalid geometries without fixing them in QGIS
Try buffering your polygons with 0 distance, sometimes it fixes geometry errors. If you want to ignore the invalid geometries, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found