fio_taxa classifies GeoJSON features.
Given a sequence of Features, fio_taxa finds and returns the set of unique kinds of Features in the sequence. Uniqueness is determined by geometry type and by the set of names and types of values in a Feature’s ‘properties’ member. Members foreign to the GeoJSON specification are not considered.
Usage
fio_taxa has one function: fio_taxa.classify().
>>> import json
>>> from fio_taxa import classify
>>> src = open('tests/data/trio.geojson')
>>> collection = json.loads(src.read())
>>> for taxon in classify(collection['features']):
... print(taxon)
...
((('aqueduct', 'str'),), 'LineString')
((('architect', 'str'), ('name', 'str')), 'Polygon')
((('name', 'str'),), 'Point')
Command line interface
fio_taxa adds a “taxa” command to Fiona’s “fio” program.
$ cat tests/data/trio.seq | fio taxa
{"geometry": "Polygon", "properties": {"architect": "str", "name": "str"}}
{"geometry": "Point", "properties": {"name": "str"}}
{"geometry": "LineString", "properties": {"aqueduct": "str"}}
Release files for fio_taxa 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fio_taxa-1.0.0.tar.gz | 2.7 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fio_taxa-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
| fio_taxa-1.0.0-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 12.2 kB
Release files / fio_taxa-1.0.0.tar.gz
| Download URL | fio_taxa-1.0.0.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd3b565075c3ce07d24707f360e6ed2e66fd92b71f5900ffab3a025b83911563
|
|
BLAKE2b-256 checksum How to use checksums |
674067fa6735b46652436c15d5410388dbaa3d498c796ec3b0a0eaa69758d030
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / fio_taxa-1.0.0-py3-none-any.whl
| Download URL | fio_taxa-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0b3ce18de35c603aa91d5f62c1bf763cc0f53b362bd41d3264ac58eae5c3232
|
|
BLAKE2b-256 checksum How to use checksums |
2a3fb7ae9445eb1f35fb85dd6df2522b8dd6cd70243d1256ecb63fe154a76aa8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / fio_taxa-1.0.0-py2-none-any.whl
| Download URL | fio_taxa-1.0.0-py2-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
126b9a3881fd82ae9455330eda81397942734dc8c93c68cae5a6db2f5a0a52bf
|
|
BLAKE2b-256 checksum How to use checksums |
102a9ddb817b0f5f2077f7195676aaa391588b002b44e4dded35441d78226d1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |