rio bounds

Write bounding boxes to stdout as GeoJSON for use with, e.g., geojsonio

$ rio bounds *.tif | geojsonio

If a destination crs is passed via dst_crs, it takes precedence over the projection parameter.

rio bounds [OPTIONS] INPUT...

Options

--precision <precision>

Decimal precision of coordinates.

--indent <indent>

Indentation level for JSON output

--compact, --not-compact

Use compact separators (‘,’, ‘:’).

--geographic

Output in geographic coordinates (the default).

--projected

Output in dataset’s own, projected coordinates.

--mercator

Output in Web Mercator coordinates.

--dst-crs <EPSG:NNNN>

Output in specified coordinates.

--sequence, --collection

Write a LF-delimited sequence of texts containing individual objects (the default) or write a single JSON text containing a feature collection object.

--rs, --no-rs

Use RS (0x1E) as a prefix for individual texts in a sequence as per http://tools.ietf.org/html/draft-ietf-json-text-sequence-13 (default is False).

--feature

Output as GeoJSON feature(s).

--bbox

Output as GeoJSON bounding box array(s).

Arguments

INPUT

Required argument(s)