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
Show information about a geoparquet file
You can easily retrieve metadata and a data excerpt:
stac geoparquet-items info source.geoparquet
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
File details
Details for the file stactools-geoparquet-items-0.4.0.tar.gz
.
File metadata
- Download URL: stactools-geoparquet-items-0.4.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 324583f45f52d6190a4a63aaf8d90e30818413fb0cd273ce25dce494e3961070 |
|
MD5 | 9683259af2d80627b609a35ce3b7ace1 |
|
BLAKE2b-256 | b6a8ee321f0f2ec6eba13af3c099a82cfde2bf5319d62dac18372de55f9f1958 |
File details
Details for the file stactools_geoparquet_items-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: stactools_geoparquet_items-0.4.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16dca35a0e8445a1525d695bf1c35eb024296e06f5ca4cbfc834f2c633333928 |
|
MD5 | 1a81bc483f8ec5dbc8133e140c8f0030 |
|
BLAKE2b-256 | 446b81701014f9431a46c94d6cdf21fdc7f73465fc3c2a8d0ef352925d2787ed |