-
Notifications
You must be signed in to change notification settings - Fork 34
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
Setting color mapping/transparency when writing a kmz
file
#400
Comments
How does GDAL do it? You can pass an And I guess you need three bands for color, when DEM is usually one? |
Thank you for the quick reply! |
Maybe ArchGDAL already handles this? It already has Did you try just converting the raster to a colorscheme? (first thing you need to do) Like |
Thank you again for the tips! I'll try it and report what I can get, hoping it can help others. |
I'm having some issues with the output I have scaled the single Band to (0,255) first. Then, I replicated the same layer on 3 Bands to get a grey-scale output (to simplify the procedure).
but the result doesn't have any transparency. Any idea? |
kmz
file kmz
file
I have never done anything like this in my life ;) |
You cant crop a raster on anything but the x and y axis... if you want to rotate it, you will need to rotate with |
Crop usually means to a square? I think GDAL will does exactly what crop does here. So maybe what you want is Rasters doesnt use gdal for anything but loading files and And To be clear: these questions are too detailed and case spevific to ask a single package auther on github: if the functions her dont work for you, a gdal forum is the place for you to get answers |
Thank you for the answer. Appreciate it! |
I had an idea about the missing values... if you can post a file with download in the MWE I could actually look at your problem ;) (You will always get 1000x better help if there is actually a file and an MWE that downloads it so I can just run it and look myself, otherwise it's wild speculation) |
Sure, thank you for the help. I can share the DEM Raster object with the missing values. I saved it as GeoTiff. Here is a small example, just trying to save the DEM to kmz, with the missing values being mapped not correctly.
|
I have a DEM in
tif
format. I can read it and create a Raster object. I can write it as akmz
file.The result is a black-and-white image. I want to set the color mapping, as I can do with a plot function.
Is it possible?
The text was updated successfully, but these errors were encountered: