Skip to main content

fionautil

Utilities for working with geodata with Fiona.

By default, the only prerequisite is 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 (returns a layer’s meta attribute)

  • meta_complete (returns the meta attribute with addional metadata, e.g. bounds)

  • 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

Metadata

Release files for fionautil 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fionautil 0.5.0
File Size Uploaded
fionautil-0.5.0.tar.gz 17.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for fionautil 0.5.0
File Interpreter ABI Platform
fionautil-0.5.0-py3-none-any.whl Python 3 none any Details
fionautil-0.5.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 70.8 kB

Release files / fionautil-0.5.0.tar.gz

Download URL fionautil-0.5.0.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2c6fcba84727d0e7bd06c49900b8410aa6ce7b95e53b81351c8452b683d1b8e2
BLAKE2b-256 checksum
How to use checksums
ff81e29b5afb2cfa4287ca4099683015cd2fec9f00f2006d212d0f397451c59d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / fionautil-0.5.0-py3-none-any.whl

Download URL fionautil-0.5.0-py3-none-any.whl
Size 26.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c005cbb4af96d785449a169a5d7cddbfc23daaee20d852698d78def1b58eae44
BLAKE2b-256 checksum
How to use checksums
7866d925b0d2cd0542f0807f3c5b9115c2e9b1fa4fe8c4db280db75fd497f437
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / fionautil-0.5.0-py2.py3-none-any.whl

Download URL fionautil-0.5.0-py2.py3-none-any.whl
Size 27.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
be7de8227593a44c5c25090fb2fdc462ba27e00b98ce1a6c5081ff43808ef120
BLAKE2b-256 checksum
How to use checksums
b9b1f1358e127e4fd495fa954209f368705640c87f3ca0cf26627ca7d226a5cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.7.0

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

This release

0.5.0 This release

3 release files

0.4.11

2 release files

0.4.10

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

1 release file

0.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page