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

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


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

Uploaded Source

Built Distribution

fionautil-0.4.0-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fionautil-0.4.0.tar.gz
Algorithm Hash digest
SHA256 2b669a271def8c26dfa014c25456ae1585230693cb7383ca093385503abad14d
MD5 5632e8b200813d69b9c4cd1f469f628c
BLAKE2b-256 ac2a0df437ad82261479c6cdf1d7695a7c469de36a980df734f903e3fd2d2ca1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fionautil-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 327245cc58825ee620fc5b37f924741e933abc7d2af9e8390778a5c55dddb842
MD5 ef38cb07d59c345488a2b3655d7dd111
BLAKE2b-256 38575b60a557898839c84b96cc7e6a8dcb97be40c71ba5256daf254dec72babc

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