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.3.0a1.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for geosardine-0.3.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4641fb7800d8e0e6d0c9b11493c33d0d61f6f2bae30ad8e16e78756527041efb |
|
MD5 | 834e0021268d9e424fcced996c319f1c |
|
BLAKE2b-256 | e87cf4122779c94288fd082bafdf1d79ee67d6e62587556d1869bb0be7a794b6 |