Installationο
From PyPIο
pip install raster2poly
This installs: numpy, rasterio, geopandas, scikit-learn,
shapely.
From sourceο
git clone https://github.com/geoharkat/raster2poly.git
cd raster2poly
pip install -e ".[dev]"
System requirementsο
Python β₯ 3.9
GDAL libraries (pulled in by
rasterio)
On some Linux distributions install the GDAL headers first:
# Debian / Ubuntu
sudo apt install libgdal-dev
# Fedora
sudo dnf install gdal-devel
Verifyο
from raster2poly import RasterClassifier
print("OK")