raster2poly

Getting Started

  • Introduction
    • Why this package?
    • Supported methods
    • Utility helpers
    • Design principles
  • Installation
    • From PyPI
    • From source
    • System requirements
    • Verify
  • Quick start
    • Unsupervised
    • Supervised (ROI shapefile)
    • Rule-based (DN ranges)

User Guide

  • Classification methods
    • Unsupervised β€” clf.unsupervised()
    • Supervised β€” clf.supervised()
    • Rule-based β€” clf.from_dn_ranges()
    • Utility helpers
      • available_algorithms()
      • band_stats()
      • encode_roi()
    • Polygon options (all methods)
    • Output formats
  • Cookbook
    • πŸ—ΊοΈ raster2poly β€” Classification & Vectorisation Cookbook
      • 0 β€” Setup
      • 1 β€” Load raster & inspect
      • 2 β€” Unsupervised classification (clustering)
      • 3 β€” Supervised classification (Random Forest from ROI)
      • 4 β€” Rule-based classification (DN ranges)
      • 5 β€” Quick visual comparison
      • πŸ“‹ Output files

Reference

  • API Reference
    • RasterClassifier
      • RasterClassifier.__init__()
      • RasterClassifier.unsupervised()
      • RasterClassifier.supervised()
      • RasterClassifier.from_dn_ranges()
      • RasterClassifier.available_algorithms()
      • RasterClassifier.band_stats()
      • RasterClassifier.encode_roi()
      • RasterClassifier.save()

Development

  • Contributing
    • Development setup
    • Coding standards
    • Adding a new algorithm
    • Running tests
    • Pull request workflow
    • Reporting issues
  • Changelog
    • 0.1.0 (2025)
raster2poly
  • raster2poly 0.1.0
  • View page source

raster2poly 0.1.0

https://img.shields.io/pypi/v/raster2poly.svg https://img.shields.io/pypi/pyversions/raster2poly.svg https://readthedocs.org/projects/raster2poly/badge/

Classify rasters and vectorise the result to clean, dissolved polygons β€” in three lines of code.

from raster2poly import RasterClassifier

clf = RasterClassifier("satellite.tif")
gdf = clf.unsupervised(n_clusters=6)
clf.save(gdf, "classes.gpkg")

Getting Started

  • Introduction
    • Why this package?
    • Supported methods
    • Utility helpers
    • Design principles
  • Installation
    • From PyPI
    • From source
    • System requirements
    • Verify
  • Quick start
    • Unsupervised
    • Supervised (ROI shapefile)
    • Rule-based (DN ranges)

User Guide

  • Classification methods
    • Unsupervised β€” clf.unsupervised()
    • Supervised β€” clf.supervised()
    • Rule-based β€” clf.from_dn_ranges()
    • Utility helpers
    • Polygon options (all methods)
    • Output formats
  • Cookbook
    • πŸ—ΊοΈ raster2poly β€” Classification & Vectorisation Cookbook

Reference

  • API Reference
    • RasterClassifier

Development

  • Contributing
  • Changelog

Indices

  • Index

  • Module Index

Next

© Copyright 2026, Ismail Harkat.

Built with Sphinx using a theme provided by Read the Docs.