-
Notifications
You must be signed in to change notification settings - Fork 68
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
Question: Raster Tile Merging and TIF File Output #489
Comments
Clearly, my current approach results in the loss of all file Metadata. Additionally, handling a large number of rasters is causing kernel issues due to memory constraints. I've attempted to use the latest rasterio UDFs, but I'm unsure how to proceed after merging the tiles. |
Using rasterio udf
Since the returned merged tiles only provide the index_id, raster, parentPath, and driver, I manually set the UUID myself
Apparently it is little buggy; it wrote to 'dbfs:' as if it were a 'dbfs:' folder, and surprisingly I can't access it by browsing the DBFS from the Databricks catalog. But anyway, I was able to move the file to the desired location with shutil.
But when downloading the merged file, it corresponded to only one of the rasters in the directory (the first one). This is strange because I merged them, and with the approach that I write decoding it from base64 to binaryformat, the results give me the merged rasters. |
@RickLeite thank you for your question. The parent behaviour you are describing is a current behavior which we plan to adjust. So your output file is a merged raster but it only selects a first parent from the collected set at runtime (wont be the same value between reruns). This is currently planned for 0.4.1 version. Kind regards |
Hi @milos-colic, Appreciate your response! Excited for what's ahead! |
How can I merge raster tiles and write them to a TIFF file?
Is there already a way to do that, or is it planned to be introduced?
My Current Approach:
The text was updated successfully, but these errors were encountered: