-
Notifications
You must be signed in to change notification settings - Fork 2
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
WebRave Raster Color Ramps #87
Comments
@philipbaileynar in the latest kick in the teeth, QGIS exported ramps DON'T WORK with gdaldem... For each one I had to hand-edit it to get it into the right format and that meant switching from absolute scale to % relative scale and adding a nodata value. Then I had to test each one with The whole thing is a lot more trouble than I had hoped but it does work |
I did some more investigation and I don't think I can go any further before I get a discussion and signoff from either both @joewheaton and @philipbaileynar Here are two color ramps that have been exported by QGIS: DEM
Fair market value
The good:
The bad:
Here's the translation for what GDALDem can use. As you can see it's pretty different and I worry the translation could be quite error prone and might need a human eye. DEM
Fair market value
TL;DR: The ProblemThe problem is: What do we store in RiverscapesXML and who does the translation between the QGIS export what WebRAVE and GDALDem need? |
Discussed with @joewheaton. We will use color tables as-is from QGIS and I will write a couple of interpreters to build the legend and the gdal file from them Also I filed a feature enhancement with QGIS: qgis/QGIS#43786 |
I'm re-opening this since we still don't have a good categorical workflow. |
Closing this in favour of #130 |
NB: This is just a place to collect my thoughts. I'll ask @philipbaileynar nicely to make a video once I know how this is going to work.
We need color ramps (they're not actually csv files) so that webrave tilerizer can hook in and bake the ramps into projects
These ramps need to be compatible with gdaldem because that's what we're using to make the RGBA rasters
From the GDALDem Docs
Some examples of valid rows are here:
We should be able to get compatible files exported from QGIS AND ArcMap but I'm not 100% sure that's going to work yet.
https://desktop.arcgis.com/en/arcmap/10.3/manage-data/raster-and-images/creating-a-color-map-clr-file.htm
QGIS
In QGIS you can export a color ramp to a file. I still need to check if it works with GDALDem
ArcMap
I tried to use the isntructions here for creating color ramps but I kept getting an error
The text was updated successfully, but these errors were encountered: