[Geoserver-devel] [jira] (GEOS-6562) Python geoscript wps returns Could not convert -100 to target type [D

Vassilis Dalakas created an issue

GeoServer / BugGEOS-6562

[Python geoscript wps returns Could not convert -100 to target type D

Issue Type:

BugBug

Affects Versions:

2.5.1

Assignee:

Andrea Aime

Attachments:

bc1.py

Components:

WPS

Created:

03/Jul/14 3:00 PM

Environment:

Ubuntu server

Labels:

geoscript python input double

Priority:

MajorMajor

Reporter:

Vassilis Dalakas

I was trying a more advanced wps python script with Geoscript.
I have successfully installed the 2.5.1 Geoserver with the geoscript and wps extensions and implemented some simple examples as the one described here:

http://suite.opengeo.org/opengeo-docs/processing/scripting/processcreate.html

Then I have also successfully implemented my own wps that combines gs:BarnesSurface and gs:Contour

For your help gs:Contour is defined here:

http://www.massapi.com/source/geoserver-2.1.1-src/geoserver-2.1.1/extension/wps/wps-core/src/main/java/org/geoserver/wps/gs/ContourProcess.java.html

As you can see it requires as input either levels that is type double either interval that is type Double
The following code is working fine having “interval” in place of “levels” and “Double” instead of “ArrayList<Double>()” but as it is gives the following error
org.geotools.process.ProcessException: Could not convert -100 to target type [D

So I have written to the geoserver-user list and Justin told me to open an issue here. Thank you in advance for your valuable time and efforts to solve this issue.

Kind regards,

V.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo