WPS4R Geotiff I/O: cast problem

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

WPS4R Geotiff I/O: cast problem

Martin Weis
Hello!

I just try to work with geotiff images in R over the WPS interface. I
cannot pass the following error:

java.lang.ClassCastException: org.n52.wps.io.data.GenericFileDataWithGT
cannot be cast to org.n52.wps.io.data.GenericFileData

The following script was run:
https://github.com/Marwe/tethys_docker/blob/master/n52wps-r/r-scripts/NDVI.R

A bit more of the stack trace (it is the input):

> Caused by: java.lang.ClassCastException: org.n52.wps.io.data.GenericFileDataWithGT cannot be cast to org.n52.wps.io.data.GenericFileData
> at org.n52.wps.server.r.workspace.RIOHandler.parseInput(RIOHandler.java:238)
> at org.n52.wps.server.r.workspace.RWorkspaceManager.loadInputValues(RWorkspaceManager.java:190)

A similar error occurs for type set to geotiff_image:

>     <ows:ExceptionText>Could not determine intput format</ows:ExceptionText>
>   </ows:Exception>
>   <ows:Exception exceptionCode="JAVA_StackTrace">
>     <ows:ExceptionText>org.n52.wps.server.ExceptionReport: Could not determine intput format
> at org.n52.wps.server.request.InputHandler.handleComplexData(InputHandler.java:324)
> at org.n52.wps.server.request.InputHandler.&lt;init>(InputHandler.java:157)
> at org.n52.wps.server.request.InputHandler.&lt;init>(InputHandler.java:88)
> at org.n52.wps.server.request.InputHandler$Builder.build(InputHandler.java:119)

WPS Version:

> <ows:Title>52°North WPS 3.3.1</ows:Title>
> <ows:Abstract>
> Service based on the 52°North implementation of WPS 1.0.0

Any ideas or experiences to make geotiff I/O work in WPS4R?

Btw, if you use docker you can build the image to test with:
docker build -t ciwater/n52wps_r .

Thank you,
Martin


_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: WPS4R Geotiff I/O: cast problem

BenjaminPross
Hi Martin,

This is a know issue [1]. We could probably create a patched 52n-wps-r.jar if that would help you.

Cheers,

Benjamin

[1] https://github.com/52North/WPS/issues/173

Am 22.07.2015 um 20:21 schrieb Martin Weis:
Hello!

I just try to work with geotiff images in R over the WPS interface. I
cannot pass the following error:

java.lang.ClassCastException: org.n52.wps.io.data.GenericFileDataWithGT
cannot be cast to org.n52.wps.io.data.GenericFileData

The following script was run:
https://github.com/Marwe/tethys_docker/blob/master/n52wps-r/r-scripts/NDVI.R

A bit more of the stack trace (it is the input):

Caused by: java.lang.ClassCastException: org.n52.wps.io.data.GenericFileDataWithGT cannot be cast to org.n52.wps.io.data.GenericFileData
	at org.n52.wps.server.r.workspace.RIOHandler.parseInput(RIOHandler.java:238)
	at org.n52.wps.server.r.workspace.RWorkspaceManager.loadInputValues(RWorkspaceManager.java:190)
A similar error occurs for type set to geotiff_image:

    <ows:ExceptionText>Could not determine intput format</ows:ExceptionText>
  </ows:Exception>
  <ows:Exception exceptionCode="JAVA_StackTrace">
    <ows:ExceptionText>org.n52.wps.server.ExceptionReport: Could not determine intput format
	at org.n52.wps.server.request.InputHandler.handleComplexData(InputHandler.java:324)
	at org.n52.wps.server.request.InputHandler.&lt;init>(InputHandler.java:157)
	at org.n52.wps.server.request.InputHandler.&lt;init>(InputHandler.java:88)
	at org.n52.wps.server.request.InputHandler$Builder.build(InputHandler.java:119)
WPS Version:

<ows:Title>52°North WPS 3.3.1</ows:Title>
<ows:Abstract>
Service based on the 52°North implementation of WPS 1.0.0
Any ideas or experiences to make geotiff I/O work in WPS4R?

Btw, if you use docker you can build the image to test with:
docker build -t ciwater/n52wps_r .

Thank you,
Martin



_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines


-- 
Benjamin Proß
Software Engineer
52°North Geoprocessing Community

52°North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
Fon: +49-(0)-251–396371-42
Fax: +49-(0)-251–396371-11
[hidden email]
http://52north.org/

General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849

_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines