Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open geodata germany and other data import functions #18

Merged
merged 10 commits into from
Feb 20, 2024

Conversation

anikaweinmann
Copy link
Member

Open geodata germany and other data import functions:

  • data import:
    • downloaad_and_import_tindex: Download and import tile index from url
    • get_list_of_tindex_locations: Select the locations of the tindex which overlap with the AOI or the current region
    • import_local_raster_data: Import local raster data. Where a VRT or TIFs are given in the directory of "local_data_dir"
    • get_xyz_file_infos: Get the infos of a XYZ file to resolution, bounding box and pixelcenter
    • import_single_local_xyz_file: Import single XYZ file
    • import_local_xyz_files: Import local XYZ raster data. Where the XYZ files which are inside the directory of "local_data_dir", will be imported for the AOI.
  • open-geodata-germany - download data:
    • check_download_dir: Checks if download directory is set. If yes check if folder exists or creating it. If not set a temporary directory
    • url_response: URL response function which is used by download_data_using_threadpool
    • download_data_using_threadpool: Download data from urls via ThreadPool
    • extract_compressed_files: Extract compressed files to download directory.
  • open-geodata-germany - federal state info:
    • FS_ABBREVIATION
    • get_federal_states: Get federale state and federal state file module parameters and return list with federal state abbrevations
  • raster:
    • adjust_raster_resolution: Resample or inpolate raster to given resolution. It is important that the region already has the right resolution
    • create_vrt: Create a VRT raster map out of input list, or renaming if only one raster is inside the list. If the input raster maps are inside other mapsets they will be copied to the current mapset before the VRT will be created.
    • rename_raster: Rename raster map

Copy link
Contributor

@juleshaas juleshaas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, great work!

src/grass_gis_helpers/data_import.py Outdated Show resolved Hide resolved
src/grass_gis_helpers/data_import.py Outdated Show resolved Hide resolved
src/grass_gis_helpers/data_import.py Outdated Show resolved Hide resolved
src/grass_gis_helpers/data_import.py Outdated Show resolved Hide resolved
@anikaweinmann anikaweinmann merged commit cdc849a into main Feb 20, 2024
4 checks passed
@anikaweinmann anikaweinmann deleted the open_geodata_germany branch May 21, 2024 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants