Contributingο
Contributions β bug fixes, new algorithms, docs, tests β are welcome.
Development setupο
git clone https://github.com/geoharkat/raster2poly.git
cd raster2poly
pip install -e ".[dev]"
pytest -v
Coding standardsο
All file paths are function arguments β no hardcoded paths.
Vector β raster CRS reprojection, never the reverse.
Nodata β NaN on load, excluded from all computation.
Type hints on all public function signatures.
Adding a new algorithmο
Add the sklearn model to
classifier.pyinsideunsupervised()(for clustering) or create a new method.Register it in
available_algorithms().Add a test in
tests/test_classifier.py.Document it in
docs/source/methods.rst.
Running testsο
pytest -v
Pull request workflowο
Fork β branch β commit β push β PR against
main.Ensure all tests pass.
Update docs if adding user-facing features.
Reporting issuesο
GitHub Issues β
include your Python version, raster2poly version, full traceback,
and a minimal reproducing example.