papotch¶
Trying to build a user-friendly API to process spatial data around polars(_st) DataFrames.
Installation¶
From Pypi :
pip install papotch
Quickstart¶
papotch has 2 objects for now : Reader and Data.
from papotch import Reader
# Create the Reader object with the uri.
r = Reader("path/to/data.shp")
# Extract data.
d = r.extract()
# Buffer, calculate the resulting area, then the bounding coordinates.
_ = d.buffer(distance=2).area(column_name="calc_area").bounds()
# Write to a postgres database
d.write("PG:service=my_service", layer="my_layer")