Hi Peter, all

I'm trying to use pyxb with the opengis schemas to work with the CSW 2.0.2
standard[1].
I have PyXB 1.2.4 installed with the opengis schemas, which I installed
following the steps described in the docs[2]. Now I'm trying to create a
Query element using something like:

from pyxb.bundles.opengis import csw_2_0_2
q1 = csw_2_0_2.Query(typenames="csw:Record")

This fails with a QNameResolutionError. I guess I have to tell pyxb about
the csw prefix somehow, but I've not been able to figure out how to do it.

Interestingly, if I try with:

q1 = csw_2_0_2.Query(typenames="Record")

it does work. however, I do need to be able to also supply the include the
"csw" prefix as it is mentioned in the standard.

How can I do it?


Best regards


[1] - http://www.opengeospatial.org/standards/cat
[2] -
https://github.com/pabigot/pyxb/blob/next/pyxb/bundles/opengis/README.txt

-- 
___________________________ ___ __
Ricardo Garcia Silva
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
pyxb-users mailing list
pyxb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyxb-users

Reply via email to