Hi all,
I’d like to discuss placement of the Raster Attribute Table support in the GeoServer codebase.
A Raster Attribute Table (RAT) is a set of metadata found in .aux.xml files that can sidecar a raster file, which contains one or more possible classifications of the raster data. So, it’s roughly the equivalent of one or more raster symbolizer ColorMap.
But first, what’s a RAT? The XML representation looks as follows:
https://github.com/noaa-ocs-hydrography/qgis-raster-attribute-table-plugin/blob/master/tests/data/2x2_1_BAND_FLOAT.tif.aux.xml
QGIS has a plugin, the raster attribute plugin, that can be used to deal with the RAT, the file above becomes:
There we have 3 possible classifications, called class, class2, class3. The result of using “class” and then pressing the classify button is:
The QGIS style has been overridden with one from the RAT, picking classes, colors and labels.
So the idea for GeoServer is to have something similar, a panel in the GUI that would recognize the presence of a RAT in the source raster, and would create on demand (press of a button)
create a SLD, and associate it with the current layer.
So question… what do you think in terms of placement? Core panel, that shows up in case the source data has the RAT, or community module, which would do the same?
Cheers
Andrea
PS: please let’s not start with a “we could have a concept of native style”, yes, it’s a good idea, it would just require a whole other level of effort. If someone manages to get enough resources to add the necessary core changes and UI for it, migrating the RAT support will be pretty easy.
···
==
GeoServer Professional Services from the experts!
Visit http://bit.ly/gs-services-us for more information.
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions Group
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
https://www.geosolutionsgroup.com/
http://twitter.com/geosolutions_it
Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.
This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail