- Python 3.12
- pip
pip install -r requirements.txtto install dependencies
fastapi dev main.pyto run on localhost
- example curl - shapefile with projection:
curl -F "[email protected]" -X POST http://localhost:8000/convert_shapefile?crsTarget=EPSG:4326
- example curl - shapefile without projection:
curl -F "file=@shapefile_noproj.zip" -X POST 'http://localhost:8000/convert_shapefile?crsTarget=EPSG:4326&crsSource=EPSG:5514' --output result.zip
file- zipped shapefilecrsTarget- EPSG code of coordinate system to convert tocrsSource- EPSG code of initial coordinate system (if shapefile doesn't contain projection info)
- example curl - GeoJSON with projection:
curl -F "[email protected]" -X POST http://localhost:8000/convert_geojson?crsTarget=EPSG:4326
- example curl - GeoJSON without projection:
curl -F "file=@data_noproj.geojson" -X POST 'http://localhost:8000/convert_geojson?crsTarget=EPSG:4326&crsSource=EPSG:5514' --output result.geojson
file- input geojsoncrsTarget- EPSG code of coordinate system to convert tocrsSource- EPSG code of initial coordinate system (if geojson doesn't contain projection info)
- example curl - GLTF:
curl -F "[email protected]" -X POST 'http://localhost:8000/convert_gltf?crsTarget=EPSG:5514&crsSource=EPSG:4326' --output result.gltf'
file- input gltfcrsTarget- EPSG code of coordinate system to convert tocrsSource- EPSG code of initial coordinate system