r/gis • u/Tech_newz • 14h ago
Projects & Feedback I built GeoStride: a pure-Python, zero-GDAL spatial analysis & trajectory library
[AI Disclosure] AI was used for assisting with test suite generation, code refactoring, and drafting documentation.
[GIS Experience] Python geospatial developer and open-source contributor focusing on spatial feature engineering, discrete indexing, and trajectory kinematics.
Hey everyone,
I wanted to share GeoStride, an open-source lightweight Python library for spatial feature engineering, trajectory kinematics, and spatial statistics.
GitHub: https://github.com/Rohan-Dedhia/geostride PyPI: https://pypi.org/project/geostride/
Install: pip install geostride
Why I built it: The standard GIS ecosystem (GeoPandas, Shapely, PySAL) is the gold standard for heavy GIS work. But when deploying to serverless environments (AWS Lambda), lightweight Docker containers, or edge devices, compiling C/C++ GIS bindings like GDAL, GEOS, and PROJ often causes build headaches.
GeoStride is pure Python built strictly on NumPy, Pandas, and SciPy (< 2 MB footprint) with zero C-dependency requirements.
Key features in v0.2.0: • Trajectory Kinematics: Speed, acceleration, heading, sinuosity, and spherical Slerp resampling. • Trajectory Simplification: Geodesic Douglas-Peucker operating directly on great circles. • Spatial Statistics: Global Moran's I, LISA local clusters (High-High, Low-Low), Getis-Ord Gi*, and spatial weights matrix standardization. • Zero-Dependency Maps & I/O: WKT and GeoJSON parsers, plus standalone interactive Leaflet & Choropleth HTML map exports. • Scikit-Learn Integration: Native SpatialLagTransformer and SpatialKFold cross-validator.
We have 212 unit tests running across Python 3.10–3.13 on Linux, macOS, and Windows.
Would love to get your feedback and thoughts from the GIS community!