Skip to content

Editing

Jason Humber edited this page Jul 23, 2026 · 1 revision

generalize

Performs a Douglas-Peucker simplification of line or polygon features using the specified tolerance. The simplification is performed in place with no undo.

from fudgeo import GeoPackage
from spyops.editing import generalize, Metres

gpkg = GeoPackage('/some/path/ntdb_zm.gpkg')
source = gpkg['transmission_l']

generalize(source, tolerance=Metres(10))

Clone this wiki locally