Hello all,

I already sent a question regarding bulding a custom WPS that sends PNG images, but without any answers. I try with some new details, maybe someone will have info about it.

The things I made with success :
 > using GDAL with sucessive Java Runtimes (3 commands)
 > generating a PNG image on my server from user's inputs (BBOX etc)
> the JAR file is stored on my local GeoServer, and tested with queries. Works great.... to generate PNG on my server !

I try to send this PNG that would be read as an image, the return value of the WPS. This was quite tricky to find out which kind of return to code in Java, so I read the source code for WMS and I found the WebMap Java class. Here is my code to translate a local PNG to a WebMap. I didn't find a lot of docs, and I have issues in debuging the code, so I am doing it complety blind :

/BufferedImage bImg = ImageIO.read(new File(my_imgPath));//
//RenderedImage rImage = (RenderedImage)bImg;//
////return new RenderedImageMap(null, rImage, "image/png");/


No error while building, but after copying this to the GeoServer and sending request, the log of GeoServer tells :

/org.geoserver.wps.WPSException: Unknown process gs:Interpolate//
// at org.geoserver.wps.executor.ExecuteRequest.getInputsInternal(ExecuteRequest.java:109)// // at org.geoserver.wps.executor.ExecuteRequest.getProcessInputs(ExecuteRequest.java:99)// // at org.geoserver.wps.executor.WPSExecutionManager.submit(WPSExecutionManager.java:172)//
//        at org.geoserver.wps.Execute.run(Execute.java:66)/


It seems when I change the output from a String (that works for debugging) to a WebMap, this causes my custom WPS to be unrecognized... Any idea ?
Thanks !

Gabriel Vatin
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to