I am using HGT data to serve raster elevation tiles. My aim is to serve
smooth over-sampled raster thanks to BarnesSurface transform.
Why BarnesSurfaces?
I've tried to set "Publishing > Interpolation Methods > Default
Interpolation Method" at layer level to bilinear or bicubic but this
parameter seams to be always ignored. So I tried to set "Raster Rendering
Options > Default Interpolation" at WMS level to bilinear or bicubic but
this generate interpolation grid artifacts as you can see:
<http://osgeo-org.1560.x6.nabble.com/file/n5067021/bicubic_artifacts.png>
And this is without considering the fact that it is not an acceptable
solution for me to set interpolation method on all WMS layers to
bilinear/bicubic. (By the way if someone knows a workaround to achieve that,
please share it!)
So last chance for me to reach my goal is to use Barnes surface in order to
interpolate fixed resolution elevation data to a beautiful smooth surface.
Or if you can see another alternative, I will appreciate every suggestion.
The problem is that I can't make working my BarnesSurface transform SLD with
my layer of elevation data.
What I've done:
- Create an ImageMosaic store with some HGT files.
- Create an SLD style.
- Publish a layer from this store with this style.
I use last GeoServer 2.3.3 stable release.
The style I use (found in another post):
Just in case, I realize that posting raw text on forum interface does not
appear in the mails sent to the mailing list so for those who don't use the
link at the bottom (View this message in context: http://osgeo-org.1560.x6.nabble.com/BarnesSurface-with-elevation-data-tp5067021.html)
I copy my SLD style and the error brief I get in plain text:
After some investigations I discover one of my mistake. Adding ImageMosaic
store with HGT files converted to GeoTIFF is handled as a raster layer and
so cannot be interpreted as a vector data for gs:BarnesSurface.
So I intend to transform my raster data with gs:RasterAsPointCollection and
chain it with gs:BarnesSurface.
Unfortunately I get one more error:
"Failed to evaluate the process function, error is: Parameter data is
missing but has min multiplicity > 0"
I can't understand error message since there is actually a data parameter in
my SLD. The only delta from my previous SLD is:
...
<ogc:Function name="gs:BarnesSurface">
<ogc:Function name="parameter">
<ogc:Literal>data</ogc:Literal>
<ogc:Function name="gs:RasterAsPointCollection">
<ogc:Function name="parameter">
<ogc:Literal>data</ogc:Literal>
</ogc:Function>
</ogc:Function>
</ogc:Function>
<ogc:Function name="parameter">
<ogc:Literal>valueAttr</ogc:Literal>
<ogc:Literal>GRAY_INDEX</ogc:Literal>
</ogc:Function>
...
I am not very familiar with the chaining process, someone can tell me what
am I doing wrong?