hydromt.data_catalog.sources.GeoDataFrameSource.to_stac_catalog#
- GeoDataFrameSource.to_stac_catalog(handle_nodata: NoDataStrategy = NoDataStrategy.IGNORE) Catalog | None [source]#
Convert a geodataframe into a STAC Catalog representation.
Since geodataframes don’t support temporal dimension the datetime property will always be set to 0001-01-01. The collection will contain an asset for each of the associated files.
- Parameters:
(str (- handle_nodata) – Options are: “raise” to raise an error on failure, “ignore” to skip the dataset on failure.
optional) (
The error handling strategy.
) – Options are: “raise” to raise an error on failure, “ignore” to skip the dataset on failure.
- Returns:
- Optional[StacCatalog] – None if the dataset was skipped.
- Return type:
The STAC Catalog representation
ofthe dataset
,or