Greetings all,
Working in a development environment today, discovered a bug relating to
raster layer rendering. It seems the default raster layer sld defined in
GeoServer's catalog causes raster layers which use this style to break such
that GeoServer cannot render them. This is undesireable behaviour for us
because by default, we use this default template unless the user specifies
something else, and besides the default style template I expect to work
correctly.
https://github.com/geoserver/geoserver/blob/master/src/main/src/main/resources/org/geoserver/catalog/template_raster.sld#L9
The reason it breaks seems to be the `<FeatureTypeName>` tag given
"Raster", since this doesn't mean anything out of context. The tag can
still be used in a style appropriately, it's just this default set to
"Raster" will cause the raster layers using it to be unable to render in
GeoServer.
I made a bug report, [GEOS-8079]
<https://osgeo-org.atlassian.net/browse/GEOS-8079> concerning this problem
and did a quick PR to remove the line:
https://github.com/geoserver/geoserver/pull/2215
My understanding is that it should be fine to just remove this line, since
it is a default template and there is no need for this tag to have a
functioning sld. It makes the default template simpler and more generic.
You can always define your own sld with a `<FeatureTypeName>` if desired
anyway.
Cheers,
Travis
--
Travis Brundage
Software Engineer | Boundless
[email protected]
250.888.2820
@boundlessgeo
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel