跳转到主要内容

使用stac-geoparquet为STAC项目列表生成geoparquet

项目描述

stactools-geoparquet-items

PyPI

使用stac-geoparquet为STAC项目列表生成geoparquet。

安装

pip install stactools-geoparquet-items

命令行使用

使用stac geoparquet-items --help查看所有子命令和选项。

从STAC项目创建GeoParquet

您需要提供一个文件夹来读取项目(深度读取)。然后您提供一个文件来写入geoparquet。可选地,您可以将geoparquet作为资产添加到STAC集合。

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

从GeoParquet转换为其他文件格式

从geoparquet转换为GeoPackage(没有stac_version、type和assets)

stac geoparquet-items convert source.geoparquet result.gpkg

转换为FlatGeoBuf并排除更多字段

stac geoparquet-items convert source.geoparquet result.fgb --format flatgeobuf --exclude stac_version,type,assets,links,collection

支持格式:flatgeobuf、geojson、geojsonseq、gpkg(默认)、shapefile

显示geoparquet文件信息

您可以轻松检索元数据和数据摘录

stac geoparquet-items info source.geoparquet

贡献

我们使用pre-commit来检查任何更改。要设置您的开发环境

pip install -e .
pip install -r requirements-dev.txt
pre-commit install

要检查所有文件

pre-commit run --all-files

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源代码分布

stactools-geoparquet-items-0.4.0.tar.gz (6.3 kB 查看哈希值)

上传时间 源代码

构建分布

stactools_geoparquet_items-0.4.0-py3-none-any.whl (6.7 kB 查看哈希值)

上传时间 Python 3