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

Basic raster dataset import #795

Merged
merged 4 commits into from
Feb 27, 2023
Merged

Basic raster dataset import #795

merged 4 commits into from
Feb 27, 2023

Conversation

olsen232
Copy link
Collaborator

Re-use tile import code from point-cloud -
plus some new metadata extraction code using gdalinfo - to get the import of a GeoTIFF working, and add a unit test.

Any kind of conversion during import (ie, convert-to-cog) is not supported. Extraction of color-tables / category-tables (which should be part of the schema) is not yet supported.
Detection of COG vs non-COG is not yet supported.
Exact storage of envelopes, file-format etc is still up in the air. The file-system WC has not yet been modified to check out this type of dataset.

#565

Checklist:

  • Have you reviewed your own change?
  • Have you included test(s)?
  • Have you updated the changelog?

Re-use tile import code from point-cloud -
plus some new metadata extraction code using gdalinfo -
to get the import of a GeoTIFF working, and add a unit test.

Any kind of conversion during import (ie, convert-to-cog) is not supported.
Extraction of color-tables / category-tables (which should be part of the schema)
is not yet supported.
Detection of COG vs non-COG is not yet supported.
Exact storage of envelopes, file-format etc is still up in the air.
The file-system WC has not yet been modified to check out this type of dataset.
# Raster imports:
ImportSourceType(
"GeoTIFF",
"PATH.tif or PATH.tiff",
Copy link
Member

Choose a reason for hiding this comment

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

this is a human-readable filename suggestion? normally everyone uses .tif, i'd just drop the .tiff one

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not done - it's not hurting anyone and we do accept .tif or .tiff files

kart/raster/import_.py Outdated Show resolved Hide resolved
kart/raster/import_.py Outdated Show resolved Hide resolved
kart/raster/metadata_util.py Outdated Show resolved Hide resolved
kart/raster/metadata_util.py Show resolved Hide resolved
kart/raster/metadata_util.py Outdated Show resolved Hide resolved
kart/raster/tilename_util.py Outdated Show resolved Hide resolved
kart/raster/tilename_util.py Outdated Show resolved Hide resolved
kart/raster/v1.py Outdated Show resolved Hide resolved
tests/data/raster/README.md Outdated Show resolved Hide resolved
@olsen232 olsen232 merged commit b1112f1 into master Feb 27, 2023
@olsen232 olsen232 deleted the raster-import branch February 27, 2023 02:06
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