Skip to main content

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 (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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fionautil-0.4.11.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

fionautil-0.4.11-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

Details for the file fionautil-0.4.11.tar.gz.

File metadata

  • Download URL: fionautil-0.4.11.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fionautil-0.4.11.tar.gz
Algorithm Hash digest
SHA256 417568949fee61c09a47e1d96083e4203e0d28d1268bd8d6c4a16254e94e21a1
MD5 cc6dc59ea753dfba3fb319554c8e3ff6
BLAKE2b-256 239393788634f67ea1ff3dd49dbde7c97e3b26a761fbb0ca4affaf61e73a0eb1

See more details on using hashes here.

File details

Details for the file fionautil-0.4.11-py3-none-any.whl.

File metadata

File hashes

Hashes for fionautil-0.4.11-py3-none-any.whl
Algorithm Hash digest
SHA256 ab9e67eafaa3d2ab601ab4b9b6b89c96e593137f9f1e365723f8fff64a54ace9
MD5 662cbd561f2607b1fb94420721507753
BLAKE2b-256 55a844aed3b2a58ceb342b6cf7379ee2d6bdf2a695bf6203ecf8d84119700688

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page