[For some reason, SourceForge has again posted my response as a blank /
empty message. So, I am just submitting this again for the record, in case
someone else is researching this in the future. Sorry for any double
e-mails to those subscribed to the list].
Thanks for confirming my suspicions. I know there would be some
development work, but I hope you agree the interpolation should really be
done on the data, not the resulting RGB image. As Jody pointed out, this
is really what you want for elevation data, etc. Should I / may I open a
JIRA as a Feature Request just to log this for the future?
In the interim, I have been able to accomplish this, at least tentatively,
for my own purposes and want to see if you see any holes in my approach:
Here is output from GeoServer ... and you can compare to my previous screen
shots in this thread:
http://i.imgur.com/twqDa0r.png
http://imgur.com/twqDa0r
You'll notice this is the Arc_Sample precip layer with the DATA
interpolated, instead of the IMAGE.
Thus far, I have implemented this as a Custom Rendering Transformation WPS
that does the following:
1. Takes a GridCoverage2D along with output bounding box, width, and
height as parameters.
2. Crops the input GridCoverage2D to the output bounding box.
3. Scales (within limits) the cropped GridCoverage2D based on its size
compared to the size of the output width/height.
4. Applies Bilinear interpolation while scaling in #3.
5. Returns a scaled and bilinear interpolated GridCoverage2D to which a
ColorMap is then applied in the SLD.
Any major holes in my approach? Things to consider or check?
Obviously I want to add some more input validation, etc.
One immediate thing I see is the need to perhaps crop a little larger than
my output BBOX so I don't see issues with discrepancies along tile
boundaries.
Something else I thought of is that the WPS-style approach also lets people
choose a per-layer WMS interpolation method, as has been requested in other
threads.
Thanks,
Mike Grogan
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users