vincentsarago / fio-filter

Work in Progress - Filter a dataset using a geojson feature.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fio-filter

Filter a dataset using a geojson feature.

$ fio filter --help
Usage: fio filter [OPTIONS] SRC_DST FEATURES...

  Filter data.

Options:
  --sequence / --no-sequence      Write a LF-delimited sequence of texts
                                  containing individual objects or write a
                                  single JSON text containing a feature
                                  collection object (the default).
  --ops [intersects|overlaps|touches|crosses|disjoint|within|contains|almost_equals|equals]
                                  Binary Relationship (see https://shapely.readthedocs.io/en/stable/manual.html#predicates-and-relationships)
  --help                          Show this message and exit.

Installation

pip install fio-filter

Exemple

cat tz_world.geojson | fio filter canada.geojson > tz_canada.geojson

About

Work in Progress - Filter a dataset using a geojson feature.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%