[Pywps-devel] Problem with using a shp file as a ComplexInput
Myunghwa Hwang
mhwang4 at gmail.com
Mon Feb 11 04:38:00 CET 2008
Hello, list!
I've been trying to implement a process that uses a shp file and
extracts its geometric characteristics.
Input files can be located over the network, so one of input
parameters is URL to the file.
First I used LiteralInput type for this URL, and it was successful.
Now I want to use ComplexInput for the URL.
I set up the input parameter like the following:
self.AddComplexInput(Identifier="inputMap.shp",
Title = "Input map data location",
Formats = ["application/x-shp"])
My execute part needs the location where this shp file would be copied
to my server.
So I used os.getcwd() + "/inputMap.shp" as the path to the temporary
file copied from the original URL.
But I cannot see any new file creation under my temp directory, and
the process raises the following error:
−
<ExecuteResponse version="0.4.0" xsi:schemaLocation="http://www.opengeospatial.net/wps
http://www.ogcnetwork.net/schemas/wps/0.4.0/wpsExecute.xsd">
<ows:Identifier>getWeightfile</ows:Identifier>
−
<Status>
−
<ProcessFailed>
−
<ows:ExceptionReport verion="1.0">
−
<ows:Exception exceptionCode="NoAplicableCode">
<ows:ExceptionText>long int too large to convert to int</
ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>
</ProcessFailed>
</Status>
</ExecuteResponse>
What should I do to solve my problem?
Any tips welcomed.
from Myunghwa Hwang
####################################
Myunghwa Hwang
School of Geographical Sciences
GeoDa Center for Geospatial Analysis and Computation
Arizona State University
mhwang4 at gmail.com or mhwang3 at asu.edu
More information about the Pywps-devel
mailing list