helpful utilities for working with geodata with Fiona
Project description
fionautil
Utilities for working with geodata with Fiona. Some features are shorthand for pyproj features, or add in support for projections.
By defauly, the only prerequisites are pyproj and Fiona itself.
By default, the package installs without shapely. A small number of functions, marked below, do require shapely. To use these function, install with pip install fionautil[functionname] or just separately install shapely.
Contents
feature
overlaps
field_contains_test (test if a feature’s properties has certain key:value pairs)
togeojson (return a geojson-ready object)
shapify (requires shapely)
length (requires shapely)
compound
geometry
endpoints (for polyline features)
startpoint (for polyline features)
endpoint (for polyline features)
bbox
azimuth (between the start and end of a polyline)
disjointed
explodepoints
explodesegments
exploderings
countpoints
countsegments
layer
Most of these tools that mimic builtin python itertools.
ffilter
ffilterfalse
fmap
fchain
freduce
fslice
fzip
length Total length of linear features in a file’s native projection or the given Proj object
meta (records a layers meta attribute)
bounds (returns a layer’s bounds)
find (return a feature that matches a particular key=value)
measure
distance (between two coordinates)
azimuth (between two coordinates)
signed_area
clockwise (shortcut for checking if signed_area is >= 0)
counterclockwise (shortcut for checking if signed_area is < 0)
azimuth_distance (returns both azimuth and distance between two points)
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
Built Distribution
File details
Details for the file fionautil-0.4.1.tar.gz
.
File metadata
- Download URL: fionautil-0.4.1.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04c1c412f906e27d3d9f7ef9c8ce52315e676758c50b23f5417ff00f2e3abbd8 |
|
MD5 | 0605ecc42b4976da613365a1185da967 |
|
BLAKE2b-256 | 674537ef363306d81be402970a9fec5ee671e1b4b7e5869d0ab7d9719468f6ac |
File details
Details for the file fionautil-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: fionautil-0.4.1-py3-none-any.whl
- Upload date:
- Size: 22.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83ec22685538c1b0396203c7a194b944adeefa2e11e436f1c7bd2a23246cabf4 |
|
MD5 | 8a7558ebf2a039de7264900e32147847 |
|
BLAKE2b-256 | 4fe155bad9f6e9b3e66dcc9a5acc1493b6142276717b324444bab896a064155b |