A Python package for geospatial analysis and interactive mapping in a Jupyter environment.
Build a small utility that reprojects GeoJSON features into a target coordinate reference system and reports meaningful spatial summaries.
source_crs (e.g., "EPSG:4326") into the target_epsg value and returns GeoJSON tagged with the target CRS string while preserving feature properties. @testValueError. @testarea_km2 property to each Polygon and MultiPolygon feature representing planar area in square kilometers rounded to 3 decimals. @test[min_x, min_y, max_x, max_y] computed from reprojected coordinates plus a total polygon area sum in square kilometers, all packaged alongside the reprojected GeoJSON. @test@generates
from typing import Dict, Any
def reproject_features(geojson: Dict[str, Any], source_crs: str, target_epsg: str) -> Dict[str, Any]:
"""Reproject all feature coordinates to the target CRS, preserving properties and capturing CRS metadata."""
def summarize_features(geojson: Dict[str, Any], source_crs: str, target_epsg: str) -> Dict[str, Any]:
"""Return a dictionary with `features` (reprojected GeoJSON), `bbox` (overall extent), and `total_area_km2`."""Geospatial analysis and reprojection toolkit.
tessl i tessl/pypi-leafmap@0.52.0docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10