On Tue, Sep 14, 2010 at 3:03 PM, Ricardo Rodríguez <ricardorodo...@gmail.com
> wrote:

> hello all, I have problems with owslib python library as megenera the
> following errors:
>
> *Error 1:*
>
> pydev debugger: starting
> /usr/local/lib/python2.6/dist-packages/OWSLib-0.3.2beta-py2.6.egg/owslib/feature/wfs100.py:60:
> DeprecationWarning: object.__new__() takes no parameters
>   obj=object.__new__(self, url, version, xml)
>

THis does not seem anything geoserver specific, just a problem with your
code.

>
>
> *Error 2:*
>
>  File
> "/usr/local/lib/python2.6/dist-packages/pywps/processes/owslibwfs.py", line
> 6, in <module>
>     segmentos =wfs.getfeature(typename="univalle:vias", method='{
> http://www.opengis.net/wfs}Get <http://www.opengis.net/wfs%7DGet>
> ',format='{http://www.opengis.net/wfs}GML2<http://www.opengis.net/wfs%7DGML2>
> ')
> TypeError: getfeature() got an unexpected keyword argument 'format'
>
> I have never used owslib so i can't be sure but in wfs when specifyign an
output format the key is named "outputFormat" and not "format" like it is in
wfs.

>
>
> *Error 3:*
>
>
>
>     execfile(file, globals, locals) #execute the script
>   File
> "/usr/local/lib/python2.6/dist-packages/pywps/processes/owslibwfs.py", line
> 8, in <module>
>     segmentos = wfs.getfeature(typename=["univalle:vias"] )
>   File
> "/usr/local/lib/python2.6/dist-packages/OWSLib-0.3.2beta-py2.6.egg/owslib/feature/wfs100.py",
> line 207, in getfeature
>     raise ServiceException, str(se.text).strip()
> owslib.feature.wfs100.ServiceException: No such operation WFS 1.0.0
> GetFeaturetypename=univalle:vias
>

Seems the request param is not being separated from the typename param. So
GeoServer thinks the operation "Getfeaturetypename" is being requested,
which of course does not exist.

>
>
> is like you can not read data from GeoServer, I recommend working with
> someone as it does owslib downloads your files or getFeature
>
> work with the version 2.02 of GeoServer
>
> thanks for your answers
>
> Ricardo Rodríguez
> Univalle
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>


-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to