[Pywps-devel] Problem with using a shp file as a ComplexInput
Myunghwa Hwang
mhwang4 at gmail.com
Mon Feb 11 19:39:44 CET 2008
My problem was a mistake.
I set up the input as a shp file, but when testing I entered a gml
file location as its parameter value ;;.
After I changed input file for testing, it worked well.
Though, I really appreciate for your response, Jachym.
from Myunghwa
####################################
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
On Feb 10, 2008, at 11:27 PM, Jachym Cepicky wrote:
> 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
> --
More information about the Pywps-devel
mailing list