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

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.2.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

fionautil-0.4.2-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fionautil-0.4.2.tar.gz
Algorithm Hash digest
SHA256 984f9822bcc0c0e240919fd6b48e7eb10b85ad2abf9ab756c53da521b5b677f8
MD5 e038b406db445c665071ad81cf75e15a
BLAKE2b-256 f9ff00fc6fc9ce74e1f720a133ff215088b94ae16c4a489cf4a0456666139f5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fionautil-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 26c69f7d0ae4600cc0da06b63e9484cbb2b4df7dc5e6e7955aa71f1f244e441e
MD5 bad976dd383c9c60c8a8536d932862e7
BLAKE2b-256 ad5894932216df35427e197431817fc67e84a2f1bb8bf2954b24cca9063f4dc5

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