[Pywps-dev] access data WFS and WCS

Jachym Cepicky jachym.cepicky at gmail.com
Mon Feb 15 22:21:24 PST 2016


Hi,

yeah, it was working, I used that several times, BUT

1 - use codified version of the url
2 - omit [] brackets (it should work, but just for the case)
3 - if you are brave enough, try to debug what the problem could be in the
source code level
4 - To me, this is kinnda "adnvanced" request, you should go with POST
request, gives you more save input parsing
5 - Yes, there seems to be bug in execute get parser, the escaped values
are unescaped, attributes of the input parameter are going to look like

 [u'xlink:href=
http://localhost:8080/geoserver/wcs?SERVICE=WCS&VERSION=2.0.1&REQUEST=GetCoverage&COVERAGEID=tiger__demrepro&FORMAT=image/tiff
']

and next statemenet

https://github.com/geopython/pywps/blob/pywps-3.2/pywps/Parser/Execute.py#L593

does not work

2 options:

1 - go with POST request
2 - I've created ticket https://github.com/geopython/pywps/issues/79 hope
to get to it

J

po 15. 2. 2016 v 21:45 odesílatel pablo zader <pzader at gmail.com> napsal:

> Hi list
>
> pywps supports input parameters in the Execute call, through WMC adn WFS?
>
> I am try severals forms, but does not work:
>
>
> *Uncodified the query WCS:*
>
>
> http://localhost/cgi-bin/grass.cgi?request=Execute&service=WPS&version=1.0.0&identifier=r.getslope&datainputs=dem=[Reference@xlink:href=
>
> http://localhost:8080/geoserver/wcs?SERVICE=WCS&VERSION=2.0.1&REQUEST=GetCoverage&COVERAGEID=tiger__demrepro&FORMAT=image/tiff]&responsedocument=slope=@asreference=True
>
> <ExceptionReport xmlns="http://www.opengis.net/ows/1.1" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance" version="1.0.0"
> xsi:schemaLocation="http://www.opengis.net/ows/1.1
> http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd">
> <Exception exceptionCode="InvalidParameterValue" locator="request"/>
> </ExceptionReport>
>
>
> *Codifed the query WCS:*
>
>
> http://localhost/cgi-bin/grass.cgi?request=Execute&service=WPS&version=1.0.0&identifier=r.getslope&datainputs=dem=[Reference@xlink:href=
>
> http%3A%2F%2Flocalhost%3A8080%2Fgeoserver%2Fwcs%3FSERVICE%3DWCS%26VERSION%3D2.0.1%26REQUEST%3DGetCoverage%26COVERAGEID%3Dtiger__demrepro%26FORMAT%3Dimage%2Ftiff]&responsedocument=slope=@asreference=True
>
> <ExceptionReport xmlns="http://www.opengis.net/ows/1.1" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance" version="1.0.0"
> xsi:schemaLocation="http://www.opengis.net/ows/1.1
> http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd">
> <Exception exceptionCode="InvalidParameterValue" locator="request"/>
> </ExceptionReport>
>
> The /var/log/apache2/error.log
>
> [Mon Feb 15 17:42:31 2016] [error] [client 127.0.0.1] PyWPS
> InvalidParameterValue: Locator: request; Value: None
>
> Thanks in advanced
>
> Pablo
>
> _______________________________________________
> pywps-dev mailing list
> pywps-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pywps-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pywps-dev/attachments/20160216/9ec60003/attachment.html>


More information about the pywps-dev mailing list