Spatial operations extend fiona and rasterio
Project description
Geo-Sardine
Collection of spatial operation which i occasionally use
Setup
install it with pip
pip install --pre geosardine
How to use it
import geosardine as dine
import rasterio
import fiona
with rasterio.open("/home/user/data.tif") as raster, fiona.open("/home/user/data.shp") as vector:
draped = dine.drape_geojson(vector, raster)
joined = dine.spatial_join(vector, raster)
Geosardine CLI
You can use it through terminal or command prompt by calling dine
$ dine --help
Usage: dine [OPTIONS] COMMAND [ARGS]...
GeoSardine CLI
Options:
--help Show this message and exit.
Commands:
drape Drape vector to raster to obtain height value
info Get supported format
join-spatial Join attribute by location
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
geosardine-0.4.0a0.tar.gz
(8.2 kB
view hashes)
Built Distribution
Close
Hashes for geosardine-0.4.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 131e410194ed035593e7495757fe62934744bbdc1030bd20449857905a7815b6 |
|
MD5 | 66f925c82a45f520db8e292745e26f8f |
|
BLAKE2b-256 | 4c65fffb07bdd18723bab1179a021f46925d9583c473bc241e22ff5f1bf127a7 |