[Geoserver-users] SLD Transformation WPS

Dear GeoServer Users,

I sent this out awhile back but have not received any response. I thought I’d send this again in case it got lost. Any help you can provide is deeply appreciated.

I am trying to use the transformation element in the SLD to execute a WPS process (for testing purposes, it simply returns the passed in GridCoverage2D raster). The results are not the same (please see attachments). One looks more smoothed and the other one does not. They are both WW3 global, 360x181 Maximum Wave Height coverages.

  1. Without calling WPS process: This looks more smoothed.

http://localhost/geoserver/WW3_GLOBAL/wms?service=WMS&version=1.1.0&request=GetMap&layers=WW3_GLOBAL:global_360x181.max_wav_ht.surface&styles=1_no_wps_style&bbox=-180.0,-90.0,180.0,90.0&width=660&height=330&srs=EPSG:4326&format=application/openlayers

  1. With calling WPS process: This does not.

http://localhost/geoserver/WW3_GLOBAL/wms?service=WMS&version=1.1.0&request=GetMap&layers=WW3_GLOBAL:global_360x181.max_wav_ht.surface&styles=2_yes_wps_style&bbox=-180.0,-90.0,180.0,90.0&width=660&height=330&srs=EPSG:4326&format=application/openlayers

Could you please tell me why the pictures look that way (and perhaps how to fix it)?

Thank you.

Tam O

Hi,

This is really, really just a guess…

Maybe it’s related to the GeoTiffPPIO class inside org.geoserver.wps.ppio. You can check this class in WPS src.

Look at “encode” method, which receives an Object (GridCoverage2D) and an OutputStream and writes the GeoTiff to this OutputStream.

I don’t know the details of the parameters used to write the image, but maybe it’s somewhere to start.

Regards,

···

Rodrigo C. Antonialli

Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato: (19) 8136-2347
rcantonialli@anonymised.com
Skype: rc_antonialli

On Fri, Feb 8, 2013 at 3:31 PM, Tam O <tamo@anonymised.com> wrote:

Dear GeoServer Users,

I sent this out awhile back but have not received any response. I thought I’d send this again in case it got lost. Any help you can provide is deeply appreciated.

I am trying to use the transformation element in the SLD to execute a WPS process (for testing purposes, it simply returns the passed in GridCoverage2D raster). The results are not the same (please see attachments). One looks more smoothed and the other one does not. They are both WW3 global, 360x181 Maximum Wave Height coverages.

  1. Without calling WPS process: This looks more smoothed.

http://localhost/geoserver/WW3_GLOBAL/wms?service=WMS&version=1.1.0&request=GetMap&layers=WW3_GLOBAL:global_360x181.max_wav_ht.surface&styles=1_no_wps_style&bbox=-180.0,-90.0,180.0,90.0&width=660&height=330&srs=EPSG:4326&format=application/openlayers

  1. With calling WPS process: This does not.

http://localhost/geoserver/WW3_GLOBAL/wms?service=WMS&version=1.1.0&request=GetMap&layers=WW3_GLOBAL:global_360x181.max_wav_ht.surface&styles=2_yes_wps_style&bbox=-180.0,-90.0,180.0,90.0&width=660&height=330&srs=EPSG:4326&format=application/openlayers

Could you please tell me why the pictures look that way (and perhaps how to fix it)?

Thank you.

Tam O


Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

On Fri, Feb 8, 2013 at 6:31 PM, Tam O <tamo@anonymised.com> wrote:

Dear GeoServer Users,

I sent this out awhile back but have not received any response. I thought I’d send this again in case it got lost. Any help you can provide is deeply appreciated.

I am trying to use the transformation element in the SLD to execute a WPS process (for testing purposes, it simply returns the passed in GridCoverage2D raster). The results are not the same (please see attachments). One looks more smoothed and the other one does not. They are both WW3 global, 360x181 Maximum Wave Height coverages.

I am not surprised, the code path that renders a single coverage is completely different than the one
which renders a request with a coverage and another vector layer, which in turn has further differences
from the one used in the rendering transformations.

  1. Without calling WPS process: This looks more smoothed.

http://localhost/geoserver/WW3_GLOBAL/wms?service=WMS&version=1.1.0&request=GetMap&layers=WW3_GLOBAL:global_360x181.max_wav_ht.surface&styles=1_no_wps_style&bbox=-180.0,-90.0,180.0,90.0&width=660&height=330&srs=EPSG:4326&format=application/openlayers

  1. With calling WPS process: This does not.

http://localhost/geoserver/WW3_GLOBAL/wms?service=WMS&version=1.1.0&request=GetMap&layers=WW3_GLOBAL:global_360x181.max_wav_ht.surface&styles=2_yes_wps_style&bbox=-180.0,-90.0,180.0,90.0&width=660&height=330&srs=EPSG:4326&format=application/openlayers

Could you please tell me why the pictures look that way (and perhaps how to fix it)?

There is no way to see the pictures, you’re linking to localhost.
How to fix it… compare the two code paths, and make them more similar (so a code change
is required)

Cheers
Andrea

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it