Skip to main content

All Questions

Tagged with
1 vote
1 answer
119 views

Fastest way to clip millions of small polygons and storing results as JSON [closed]

I have a dataset with couple million farm polygons (around 2.5 million and only expected to grow in the future), and I need to calculate the NDVI for these farm polygons, with some basic stats (...
Hasan Mustafa's user avatar
4 votes
1 answer
634 views

Vectorizing all pixels as separate polygons using rasterio

I use rasterio.features.shapes and use the geometry of pixels in raster data to create polygons for each pixel. Pixels with the same value merge these pixels if they are adjacent. What I want is for ...
geomaticpoly's user avatar
2 votes
1 answer
2k views

Extracting raster outline to a vector geometry

I have a raster data set with an irregular outline (every value outside is NaN) in Python (loaded from rasterio v.1.3a3 ): I'd like to extract its outline to a vector shape, such as a Shapely ...
swiss_knight's user avatar
  • 10.5k
1 vote
0 answers
430 views

Draw polygon (vectorize) raster based on same colored pixels -- getting bad polygons

So, I have a TIF georeferenced map and a rather messy shape that I need to digitize. It is green but has a lot of holes in it that are light green color. So, I want to capture all green pixels and ...
Matija Kordic's user avatar
1 vote
1 answer
238 views

Wrong features when exporting vectorized raster data to a file using GeoPandas after applying a filter and a dissolve operation

I have a raster file with black areas having a value of 0 and white areas having a value of 1, resulting from a visibility analysis: I vectorized this raster after loading it with rasterio: import ...
swiss_knight's user avatar
  • 10.5k
0 votes
1 answer
4k views

How to polygonise a binary raster with python?

I already asked this in StackOverflow, but maybe it's better here. I have a ndvi raster that I binarized (I put my threshold at 0.35) with a script python and I wanted to polygonize this raster, in ...
hort_98663's user avatar