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
roundgeometry - round all coordinates in a geometry to a given precision
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)
intersect (check if two planar line segments intersect)
onsegment (check if a point lines on a line segment)
round
geometry - round all coordinates in a geometry to a specified precision
feature
scale
Utilities for scaling a feature or geometry by a given constant. Goes faster with Numpy installed. * geometry * scale_rings * scale - scales a list of coordinates * feature - scale the geometry of a feature
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.8.tar.gz
.
File metadata
- Download URL: fionautil-0.4.8.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22d6199be615e61405a8a0a3bda803f7e42efaa51e03ce378b3a58689253909e |
|
MD5 | 8d3625117c0cae45b80484d85bb9ee08 |
|
BLAKE2b-256 | fd99aff5df4fad153492500e128e20848cdce274808529812351860133e9fe64 |
File details
Details for the file fionautil-0.4.8-py3-none-any.whl
.
File metadata
- Download URL: fionautil-0.4.8-py3-none-any.whl
- Upload date:
- Size: 25.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ffb7cd12b3ada1f6c679b7a24f30fc6fb06da281a9bdb4a00f3a46f5ff24dc3 |
|
MD5 | ca9a85fda234545596ac3dc95aef4f7f |
|
BLAKE2b-256 | 0f57d502232ea81b531d9b5f440a70d7d7a67da69ab4913fb3bfce15fea2de65 |