mirror of
https://github.com/rasterio/rasterio.git
synced 2025-12-08 17:36:12 +00:00
11 lines
183 B
Python
11 lines
183 B
Python
import pprint
|
|
|
|
import rasterio
|
|
import rasterio._features as ftrz
|
|
|
|
with rasterio.open('box.png') as src:
|
|
image = src.read_band(1)
|
|
|
|
pprint.pprint(
|
|
list(ftrz.polygonize(image)))
|