[GRASS-user] Exporting Raster map with a GRASS colortable

Greetings
I just want to confirm this: Is it possible to export a GRASS raster map to Geotiff format and maintain its color table (e.g. NDVI)?
Thanks
Helena

On Fri, Oct 28, 2011 at 1:10 PM, Helena Herrera
<helenaherrera1980@gmail.com> wrote:

Greetings
I just want to confirm this: Is it possible to export a GRASS raster map to
Geotiff format and maintain its color table (e.g. NDVI)?

Geotiff does not support floating point color tables [1]. You either
need to rescale the map to integer (multiply by 100 or so) or
use a different format.

Markus

[1] Usually you get then this GDAL error message:
      "ERROR 6: SetColorInterpretation() not supported for this dataset."

Am 30.10.2011 19:47, schrieb Markus Neteler:

On Fri, Oct 28, 2011 at 1:10 PM, Helena Herrera
<helenaherrera1980@gmail.com> wrote:

Greetings
I just want to confirm this: Is it possible to export a GRASS raster map to
Geotiff format and maintain its color table (e.g. NDVI)?

Geotiff does not support floating point color tables [1]. You either
need to rescale the map to integer (multiply by 100 or so) or
use a different format.

Markus

[1] Usually you get then this GDAL error message:
       "ERROR 6: SetColorInterpretation() not supported for this dataset.

Hi,

i just asked me the same question.
Which is the best way to export a NDVI from GRASS (to GeoServer) ?
Which format is best? Is it better to keep the colour table or can somebody provide a way to export and share the related .sld file?

Thanks
Christian

On Mon, Oct 31, 2011 at 11:33 AM, Christian Röttger
<chris.roettger@uni-muenster.de> wrote:

i just asked me the same question.
Which is the best way to export a NDVI from GRASS (to GeoServer) ?
Which format is best?

Maybe this table is useful to decide:

GIS Raster Benchmark: comparative benchmark
http://www.gaia-gis.it/raster_benchmark/

Is it better to keep the colour table

Yes, or export it...

or can somebody
provide a way to export and share the related .sld file?

... with
http://grass.osgeo.org/grass70/manuals/html70_user/r.colors.out.html

Markus

Am 31.10.2011 16:14, schrieb Markus Neteler:

On Mon, Oct 31, 2011 at 11:33 AM, Christian Röttger
<chris.roettger@uni-muenster.de> wrote:

i just asked me the same question.
Which is the best way to export a NDVI from GRASS (to GeoServer) ?
Which format is best?

Maybe this table is useful to decide:

GIS Raster Benchmark: comparative benchmark
http://www.gaia-gis.it/raster_benchmark/

Is it better to keep the colour table

Yes, or export it...

or can somebody
provide a way to export and share the related .sld file?

... with
http://grass.osgeo.org/grass70/manuals/html70_user/r.colors.out.html

Yes, but it only provides the color rules in text format. Correct me if i'm wrong.

Should GRASS not support the SLD standard, i mean thats why standards exist or? Or is this point already on the agenda?

Hi,

2011/11/4 Christian Röttger <chris.roettger@uni-muenster.de>:

Should GRASS not support the SLD standard, i mean thats why standards exist
or? Or is this point already on the agenda?

it would be nice, fee free to start working on it :slight_smile:

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Christian wrote:

> Should GRASS not support the SLD standard, i
> mean thats why standards exist or? Or is this
> point already on the agenda?

many people come up with many standards; if they
get adopted or not is a very different matter...
typically implementation (or not) comes down to some
interested volunteer in the community:

Martin wrote:

it would be nice, fee free to start working on it :slight_smile:

as a progrestination exercise I added a prototype
script to do it in addons:
  http://grass.osgeo.org/wiki/GRASS_AddOns#r.colors.out_sld

improvements (null support, labels) welcome.

enjoy,
Hamish