[Pywps-devel] Problem with using a shp file as a ComplexInput

Jachym Cepicky jachym.cepicky at gmail.com
Mon Feb 11 07:27:27 CET 2008


Hi,

Myunghwa Hwang píše v Ne 10. 02. 2008 v 20:38 -0700:
> 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

do you have access to apache logs? There should be more about where the
problem occurred. 

Anyway: Shapefile is a problem, because of it consists from (at least) 3
files: shp, dbf, shx. You would have to setup either 3 ComplexInputs or
one for zipped file.
 
Jachym

> 
> 
> ####################################
> 
> 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
> 
> _______________________________________________
> Pywps-devel mailing list
> Pywps-devel at wald.intevation.org
> http://lists.wald.intevation.org/mailman/listinfo/pywps-devel
-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?=
	=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.wald.intevation.org/pipermail/pywps-devel/attachments/20080211/12f6ae41/attachment.pgp


More information about the Pywps-devel mailing list