You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have several algorithms that run as commandline utilities. I have to publish them as WPS processes. Some of these processes need geotiff files as input.
I hava tried to use the GenericFileDataWithGTBinding and GenericFileDataWithGT to get the geotiff file at the server side
I hava tested the following codes using wps-client-lib, but the file received at the server side is invalid, it is larger than the original file and cannot read by gdal. Besides, the received file is end with ..tmp, not .tmp or .tif
ExecuteRequestBuilderbuilder = newExecuteRequestBuilder(describeProcessDocument);
Filefile = newFile("J:/demos/zts.tif");
//FileInputStream is = new FileInputStream(file);byte[] bytes = FileUtils.readFileToByteArray(file);
Strings = Base64.encodeBytes(bytes);
//also tested using FileInputStream directly, got the same errorbuilder.addComplexData("dem", s, null, "base64", "image/tiff");
I'm not sure it's the client side error or server side error. The exception at the server side shown that it was caused by the invalid file.
Thanks very much!
I have tested the similar code (use GenericFileDataWithGTBinding and GenericFileDataWithGT to get the geotiff) using https://github.com/52North/WPS version 3.6.3, and I got the valid file!
The text was updated successfully, but these errors were encountered:
I have several algorithms that run as commandline utilities. I have to publish them as WPS processes. Some of these processes need geotiff files as input.
I hava tried to use the
GenericFileDataWithGTBinding
andGenericFileDataWithGT
to get the geotiff file at the server sideI hava tested the following codes using
wps-client-lib
, but the file received at the server side is invalid, it is larger than the original file and cannot read by gdal. Besides, the received file is end with..tmp
, not.tmp
or.tif
I'm not sure it's the client side error or server side error. The exception at the server side shown that it was caused by the invalid file.
Thanks very much!
I have tested the similar code (use
GenericFileDataWithGTBinding
andGenericFileDataWithGT
to get the geotiff) using https://github.com/52North/WPS version 3.6.3, and I got the valid file!The text was updated successfully, but these errors were encountered: