Uses stac-geoparquet to generate a geoparquet for a list of STAC items
Project description
stactools-geoparquet-items
- Name: geoparquet-items
- Package:
stactools.geoparquet_items
- stactools-geoparquet-items on PyPI
- Owner: @m-mohr
Uses stac-geoparquet to generate a geoparquet for a list of STAC items.
Installation
pip install stactools-geoparquet-items
Command-line Usage
Use stac geoparquet-items --help
to see all subcommands and options.
Create GeoParquet from STAC Items
You need to provide a folder to read the items (deeply) from. Then you provide a file to write the geoparquet to. Optionally, you can add the geoparquet as an asset to a STAC Collection.
stac geoparquet-items create https://example.com/collections/id/items result.geoparquet
stac geoparquet-items create /path/to/folder result.geoparquet --collection /path/to/collection.json
Convert from GeoParquet to other file formats
Convert from geoparquet to GeoPackage (without stac_version, type and assets):
stac geoparquet-items convert source.geoparquet result.gpkg
Convert to FlatGeoBuf and exclude even more fields:
stac geoparquet-items convert source.geoparquet result.fgb --format flatgeobuf --exclude stac_version,type,assets,links,collection
Supported formats: flatgeobuf, geojson, geojsonseq, gpkg (default), shapefile
Contributing
We use pre-commit to check any changes. To set up your development environment:
pip install -e .
pip install -r requirements-dev.txt
pre-commit install
To check all files:
pre-commit run --all-files
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
Built Distribution
Hashes for stactools-geoparquet-items-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbc111851ba36ed5ae9143cd6baa973503093fd49c7331396982baa7949f2143 |
|
MD5 | 64ce51cb3b39db6e2a062ba433b71e3f |
|
BLAKE2b-256 | 7a02c930fc432ae6243a9787f94126fb04edb2aa61bf05369504c8dd588b9477 |
Hashes for stactools_geoparquet_items-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5b5c531510cf263fbc78e2ff0eed1b7dc1f9b0d7d3f1be5aa1e32f6217a4656 |
|
MD5 | 727268fec1989abfbd392af87e3dcc8c |
|
BLAKE2b-256 | 5ad267940fb95047cd619c2bdd4b301c3fa413b60feb4eca4f57d2e61c5a72a7 |