This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

helpful utilities for working with geodata with Fiona

Project Description

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

drivers

Tools for fetching the driver name, given a file suffix

  • from_file
  • From suffix

feature

  • 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)
  • 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 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)
  • intersectingbounds (check if two bounding boxes intersect)

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
Release History

Release History

This version
History Node

0.5.3

History Node

0.5.2

History Node

0.5.1

History Node

0.5.0

History Node

0.4.11

History Node

0.4.10

History Node

0.4.9

History Node

0.4.8

History Node

0.4.6

History Node

0.4.5

History Node

0.4.4

History Node

0.4.3

History Node

0.4.2

History Node

0.4.1

History Node

0.4.0

History Node

0.3.3

History Node

0.3.2

History Node

0.3.1

History Node

0.3

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
fionautil-0.5.3-py2.py3-none-any.whl (28.2 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Dec 19, 2016
fionautil-0.5.3.tar.gz (17.5 kB) Copy SHA256 Checksum SHA256 Source Dec 19, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting