eodal.metadata.database.ingestion module

Functions to ingest new, remote sensing platform-independent data into the metadata DB.

Copyright (C) 2022 Lukas Valentin Graf

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

eodal.metadata.database.ingestion.add_region(region_identifier: str, region_file: Path) None[source]

Adds a new region to the database. Regions are geograhic extents (aka bounding boxes) used to organize archive queries (e.g., from CREODIAS) as these queries need some kind of geographic extent to be efficient.

Parameters:
  • region_identifier – unique region identifier (e.g., ‘CH’ for Switzerland)

  • region_file – shapefile or similar vector format defining extent of the region. Will be reprojected to geographic coordinates (WGS84) if it has a different projection.