Hi list
I am trying to create a gmd:MD_Metadata instance. I am using pyxb v1.2.3 as
downloaded from pypi. I am using the opengis bindings.
My ultimate goal is to create an ISO19139 compliant MD_Metadata XML for
some satellite imagery datasets. This metadata will then be submitted to an
OGC compliant catalogue (CSW) server.
I am currently struggling to define the hierarchyLevel for my MD_Metadata
element. It must be defined as an MD_ScopeCode element with the 'dataset'
value. I am getting the following error:
>>> import pyxb.bundles.opengis.iso19139.v20070417.gmd as gm
>>> md = gmd.MD_Metadata()
>>> scope_code = gmd.MD_ScopeCode('dataset', >>> codeList=''
http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml#MD_ScopeCode',
codeListValue='dataset')
>>> md.hierarchyLevel
<pyxb.binding.content._PluralBinding at 0x591ad10>
>>> md.hierarchyLevel.append(scope_code)
SimpleTypeValueError: Type {
http://www.isotc211.org/2005/gmd}MD_ScopeCode_PropertyType cannot be
created from {http://www.isotc211.org/2005/gco}CodeListValue_Type:
<pyxb.bundles.opengis.raw._nsgroup_.CodeListValue_Type object at 0x590dd90>
How can insert the hierarchyLevel information into my MD_Metadata object?
Thanks in advance
--
___________________________ ___ __
Ricardo Garcia Silva
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
pyxb-users mailing list
pyxb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyxb-users