[Geoserver-devel] Styling (GeoTIFF) coverages

What is the current status of the RasterSymbolizer? Which types of
coverage can use an SLD? Of the supplied demo's using GeoTIFF, none
seem to be rendered using the raster.sld.
The tutorial:
  http://docs.codehaus.org/display/GEOSDOC/User+Tutorial+Coverage
tells you to select the 'raster' style, but the image preview at the end
clearly is not rendered using the raster.sld, it simply uses the colours
from the sample.tiff.

Also note that the raster.sld as distributed in 1.5-RC1 does not
validate against the SLD schema.

Regards,
--
-- Gertjan van Oosten, gertjan@anonymised.com, West Consulting B.V., +31 15 2191 600

Hi Gertjan,

Gertjan van Oosten wrote:

What is the current status of the RasterSymbolizer? Which types of
coverage can use an SLD? Of the supplied demo's using GeoTIFF, none
seem to be rendered using the raster.sld.
The tutorial:
  http://docs.codehaus.org/display/GEOSDOC/User+Tutorial+Coverage
tells you to select the 'raster' style, but the image preview at the end
clearly is not rendered using the raster.sld, it simply uses the colours
from the sample.tiff.

I just tried this out and it seemed to work ok. Questio:. When setting
the style to raser, did you click "Submit", and then "Apply" -> "Save".
( Our UI workflow is far from perfect :slight_smile: ).

Also note that the raster.sld as distributed in 1.5-RC1 does not
validate against the SLD schema.

Confirmed. I have committed the changes to the style.

-Justin

Regards,

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Hi Justin,

As quoted from Justin Deoliveira <jdeolive@anonymised.com>:

I just tried this out and it seemed to work ok.

Well, I just tried e.g. this one from the supplied demo's on a fresh
Geoserver 1.5-RC1 install:

  http://localhost:8080/geoserver/preview/nurc_~gtiff172030523_192_106_197_2_0.html

and it was still a grayscale map, i.e. not using raster.sld; to wit:

  % gdalinfo -mm webapps/geoserver/data/coverages/geotiff_sample/~gtiff172030523_192_106_197_2_0.tiff
  Driver: GTiff/GeoTIFF
  Size is 512, 513
  Coordinate System is:
  GEOGCS["WGS 84",
      DATUM["WGS_1984",
    SPHEROID["WGS 84",6378137,298.2572235629972,
        AUTHORITY["EPSG","7030"]],
    AUTHORITY["EPSG","6326"]],
      PRIMEM["Greenwich",0],
      UNIT["degree",0.0174532925199433],
      AUTHORITY["EPSG","4326"]]
  Origin = (-98.982384,49.058823)
  Pixel Size = (0.09631848,-0.09631922)
  Metadata:
    AREA_OR_POINT=Area
  Corner Coordinates:
  Upper Left ( -98.9823837, 49.0588226)
  Lower Left ( -98.9823837, -0.3529377)
  Upper Right ( -49.6673203, 49.0588226)
  Lower Right ( -49.6673203, -0.3529377)
  Center ( -74.3248520, 24.3529425)
  Band 1 Block=512x16 Type=Byte, ColorInterp=Gray
      Computed Min/Max=0.000,255.000

which does not seem to match with raster.sld:

  [...]
  <ColorMapEntry color="#7deb32" quantity="0" label="values"/>
  <ColorMapEntry color="#78c818" quantity="30" label="values"/>
  <ColorMapEntry color="#38840c" quantity="105" label="values"/>
  <ColorMapEntry color="#2c4b04" quantity="300" label="values"/>
  [...]

Similarly for the sample from the coverage tutorial.

Questio:. When setting the style to raser, did you click "Submit", and
then "Apply" -> "Save".

Of course. I followed the tutorial to the letter. :wink:

> Also note that the raster.sld as distributed in 1.5-RC1 does not
> validate against the SLD schema.
Confirmed. I have committed the changes to the style.

Good.

Kind regards,
--
-- Gertjan van Oosten, gertjan@anonymised.com, West Consulting B.V., +31 15 2191 600

On 2/22/07, Gertjan van Oosten <gertjan@anonymised.com> wrote:

Hi Justin,

As quoted from Justin Deoliveira <jdeolive@anonymised.com>:
> I just tried this out and it seemed to work ok.

Well, I just tried e.g. this one from the supplied demo's on a fresh
Geoserver 1.5-RC1 install:

  http://localhost:8080/geoserver/preview/nurc_~gtiff172030523_192_106_197_2_0.html

and it was still a grayscale map, i.e. not using raster.sld; to wit:

Hi guys:

AFAIK, the RasterSymbolizer doesn't work for styling yet. But you
never know--Alessio may have something that works stashed away :slight_smile:

Alex

Ciao Gertjan,
truth is the support for RasterSymbolization is pretty bad as of now.
It was made as a quick hack to work with GTOPO and ArcGrid a while
ago.

It is in the plans to improve RasterSymboler support in GeoServer, but
unless someone comes up with some funding I don't think I will be able
to work on this before the end of March.

Regards,
Simone.

On 2/22/07, Gertjan van Oosten <gertjan@anonymised.com> wrote:

Hi Justin,

As quoted from Justin Deoliveira <jdeolive@anonymised.com>:
> I just tried this out and it seemed to work ok.

Well, I just tried e.g. this one from the supplied demo's on a fresh
Geoserver 1.5-RC1 install:

  http://localhost:8080/geoserver/preview/nurc_~gtiff172030523_192_106_197_2_0.html

and it was still a grayscale map, i.e. not using raster.sld; to wit:

  % gdalinfo -mm webapps/geoserver/data/coverages/geotiff_sample/~gtiff172030523_192_106_197_2_0.tiff
  Driver: GTiff/GeoTIFF
  Size is 512, 513
  Coordinate System is:
  GEOGCS["WGS 84",
      DATUM["WGS_1984",
          SPHEROID["WGS 84",6378137,298.2572235629972,
              AUTHORITY["EPSG","7030"]],
          AUTHORITY["EPSG","6326"]],
      PRIMEM["Greenwich",0],
      UNIT["degree",0.0174532925199433],
      AUTHORITY["EPSG","4326"]]
  Origin = (-98.982384,49.058823)
  Pixel Size = (0.09631848,-0.09631922)
  Metadata:
    AREA_OR_POINT=Area
  Corner Coordinates:
  Upper Left ( -98.9823837, 49.0588226)
  Lower Left ( -98.9823837, -0.3529377)
  Upper Right ( -49.6673203, 49.0588226)
  Lower Right ( -49.6673203, -0.3529377)
  Center ( -74.3248520, 24.3529425)
  Band 1 Block=512x16 Type=Byte, ColorInterp=Gray
      Computed Min/Max=0.000,255.000

which does not seem to match with raster.sld:

  [...]
  <ColorMapEntry color="#7deb32" quantity="0" label="values"/>
  <ColorMapEntry color="#78c818" quantity="30" label="values"/>
  <ColorMapEntry color="#38840c" quantity="105" label="values"/>
  <ColorMapEntry color="#2c4b04" quantity="300" label="values"/>
  [...]

Similarly for the sample from the coverage tutorial.

> Questio:. When setting the style to raser, did you click "Submit", and
> then "Apply" -> "Save".

Of course. I followed the tutorial to the letter. :wink:

> > Also note that the raster.sld as distributed in 1.5-RC1 does not
> > validate against the SLD schema.
> Confirmed. I have committed the changes to the style.

Good.

Kind regards,
--
-- Gertjan van Oosten, gertjan@anonymised.com, West Consulting B.V., +31 15 2191 600

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
-------------------------------------------------------
Eng. Simone Giannecchini
President /CEO GeoSolutions

http://www.geo-solutions.it

-------------------------------------------------------

Whoops, sorry Gertjan, I got confused as to what the original problem
was. Thanks Alex!!

-Justin

Alexander Petkov wrote:

On 2/22/07, Gertjan van Oosten <gertjan@anonymised.com> wrote:

Hi Justin,

As quoted from Justin Deoliveira <jdeolive@anonymised.com>:

I just tried this out and it seemed to work ok.

Well, I just tried e.g. this one from the supplied demo's on a fresh
Geoserver 1.5-RC1 install:

  http://localhost:8080/geoserver/preview/nurc_~gtiff172030523_192_106_197_2_0.html

and it was still a grayscale map, i.e. not using raster.sld; to wit:

Hi guys:

AFAIK, the RasterSymbolizer doesn't work for styling yet. But you
never know--Alessio may have something that works stashed away :slight_smile:

Alex

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:1004,45ddb56b301091804284693!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Alexander, Justin, Simone,

Truth is the support for RasterSymbolization is pretty bad as of now.
It was made as a quick hack to work with GTOPO and ArcGrid a while
ago.

Fair enough. It would be helpful if this is advertised somewhere so
people wouldn't spend their time chasing ghosts. In particular the
Coverage Tutorial:
  http://docs.codehaus.org/display/GEOSDOC/User+Tutorial+Coverage
could mention that fact in Step 1[*], near the point where you are
supposed to select a style.

[*] That's meant as a joke BTW, it only has "Step 1" now. :wink:

It is in the plans to improve RasterSymboler support in GeoServer, but
unless someone comes up with some funding I don't think I will be able
to work on this before the end of March.

Is there a JIRA issue to track this? I couldn't find one...

Kind regards,
--
-- Gertjan van Oosten, gertjan@anonymised.com, West Consulting B.V., +31 15 2191 600

Gertjan van Oosten wrote:

Alexander, Justin, Simone,

Truth is the support for RasterSymbolization is pretty bad as of now.
It was made as a quick hack to work with GTOPO and ArcGrid a while
ago.

Fair enough. It would be helpful if this is advertised somewhere so
people wouldn't spend their time chasing ghosts. In particular the
Coverage Tutorial:
  http://docs.codehaus.org/display/GEOSDOC/User+Tutorial+Coverage
could mention that fact in Step 1[*], near the point where you are
supposed to select a style.

[*] That's meant as a joke BTW, it only has "Step 1" now. :wink:

Good point, I have put a warning in the tutorial and link a jira item
for details.

It is in the plans to improve RasterSymboler support in GeoServer, but
unless someone comes up with some funding I don't think I will be able
to work on this before the end of March.

Is there a JIRA issue to track this? I couldn't find one...

There is now :slight_smile:

http://jira.codehaus.org/browse/GEOS-932

Kind regards,

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Gertjan van Oosten wrote:

Alexander, Justin, Simone,

Truth is the support for RasterSymbolization is pretty bad as of now.
It was made as a quick hack to work with GTOPO and ArcGrid a while
ago.
    
Fair enough. It would be helpful if this is advertised somewhere so
people wouldn't spend their time chasing ghosts. In particular the
Coverage Tutorial:
  http://docs.codehaus.org/display/GEOSDOC/User+Tutorial+Coverage
could mention that fact in Step 1[*], near the point where you are
supposed to select a style.

[*] That's meant as a joke BTW, it only has "Step 1" now. :wink:
  

oops!, I changed it... now there are 3 steps =)

  

It is in the plans to improve RasterSymboler support in GeoServer, but
unless someone comes up with some funding I don't think I will be able
to work on this before the end of March.
    
Is there a JIRA issue to track this? I couldn't find one...

Kind regards,
  
Brent Owens
(The Open Planning Project)