On Tue, Apr 8, 2014 at 2:53 PM, lewnidas sketo <[email protected]> wrote:

> Hi. I 'm trying to build a Kmeans Image clustering algorithm into WPS
> service. My project consist of two java classes: the first one contains the
> actual algorithm and the other contains the DescribeParameter etc. The
> first class uses JAI and the output image is TiledImage. I have build the
> project into geoserver and the second class work fine , so i can populate
> the parameters.When I try to run it , I get a black image as an output(but
> it doesn't crashes). The log I get is the following:
>
> 2014-04-08 15:27:51,436 INFO [geoserver.wps] -
> Request: execute
>     service = WPS
>     version = 1.0.0
>     baseUrl = http://localhost:8080/geoserver/
>     identifier:
>         value = gs:Kmeans
>     dataInputs:
>         input[0]:
>             identifier = net.opengis.ows11.impl.CodeTypeImpl@1ca99bc(value: 
> coverage, codeSpace: null)
>             reference =
> net.opengis.wps10.impl.InputReferenceTypeImpl@33089c (body:
> net.opengis.wcs11.impl.GetCoverageTypeImpl@7a5697 (service: WCS, version:
> 1.1.1, baseUrl: null, extendedProperties: {}), encoding: null, href:
> http://geoserver/wcs, method: POST, mimeType: image/tiff, schema:
> null)input[0]:
>             identifier = net.opengis.ows11.impl.CodeTypeImpl@1cae322(value: 
> number of clusters, codeSpace: null)
>             data = net.opengis.wps10.impl.DataTypeImpl@106078binput[0]:
>             identifier = net.opengis.ows11.impl.CodeTypeImpl@d95700(value: 
> maximum iterations, codeSpace: null)
>             data = net.opengis.wps10.impl.DataTypeImpl@ded3e6input[0]:
>             identifier = net.opengis.ows11.impl.CodeTypeImpl@129be35(value: 
> epsilon, codeSpace: null)
>             data = net.opengis.wps10.impl.DataTypeImpl@186a0bd
>     responseForm:
>
>  Note that the algorithm is running well on eclipse and i get the
> segmented image as expected.
>
> What may I have done wrong?
>

Don't know, I'd probably try to intercercept the PPIO that is encoding your
image, and see if it's that one, or
if your tiled image has some odd combination of sample model and color
model that the
JAI ImageIO encoders cannot handle well

Cheers
Andrea

-- 
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
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

-------------------------------------------------------
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to