Masking error for complex multipolygon cutlines with holes
See original GitHub issuerio-tiler version: rio-tiler==2.0.0rc4
Recreate:
from rio_tiler.io import COGReader
import matplotlib.pyplot as plt
feature = ... # huge multipolygon I'll attach separately
with COGReader('https://rio-tiler-dev.s3.amazonaws.com/data/eu_webAligned_256pxWEBP.tif') as cog:
data, mask = cog.feature(feature['geometry'])
plt.imshow(mask)
plt.show()
Tried the .buffer(0)
trick as well with no change to the result. Geometry returns True
for is_valid
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
Error when clipping raster by mask layer (polygon) in QGIS
Running Clip raster by mask layer , I get the following error: ... You have a very complex polygon layer, containing holes, slivers...
Read more >HOW TO FIX CLIPPING MASK ISSUE - Adobe Illustrator Tutorial
Have you ever ran into that annoying error or problem that doesn't let you mask an image or shape into a complex mask...
Read more >Technical error with qGIS clipping raster by vector mask layer?
I have been clipping a raster by a vector mask layer, and obtaining the following error: ... ERROR 1: Cutline polygon is invalid....
Read more >Issue with mask and Polygon containing hole · Issue #93 · rspatial ...
When masking a grid with a non-disaggregated multipart polygon feature, where one of the polygons has a hole, the hole is not masked...
Read more >Getting Started — gdstk 0.9.35 documentation
GDSII files contain a hierarchical representation of any polygonal geometry. They are mainly used in the microelectronics industry for the design of mask...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Of course, my pleasure 👍 Fernando
Confirming that latest version fix the original bug 🙏