[#62] Fix spatial-resolution parsing

This commit is contained in:
amercader 2014-03-14 14:12:05 +00:00
parent 1fa72f4c16
commit 26763218bc
1 changed files with 10 additions and 10 deletions

View File

@ -691,19 +691,19 @@ class ISODocument(MappedXmlDocument):
ISOElement( ISOElement(
name="spatial-resolution", name="spatial-resolution",
search_paths=[ search_paths=[
"gmd:identificationInfo/gmd:MD_DataIdentification/gmd:spatialResolution/gmd:MD_Resolution/gmd:distance/gco:Distance", "gmd:identificationInfo/gmd:MD_DataIdentification/gmd:spatialResolution/gmd:MD_Resolution/gmd:distance/gco:Distance/text()",
"gmd:identificationInfo/srv:SV_ServiceIdentification/gmd:spatialResolution/gmd:MD_Resolution/gmd:distance/gco:Distance", "gmd:identificationInfo/srv:SV_ServiceIdentification/gmd:spatialResolution/gmd:MD_Resolution/gmd:distance/gco:Distance/text()",
],
multiplicity="0..1",
),
ISOElement(
name="spatial-resolution-units",
search_paths=[
"gmd:identificationInfo/gmd:MD_DataIdentification/gmd:spatialResolution/gmd:MD_Resolution/gmd:distance/gco:Distance/@uom",
"gmd:identificationInfo/srv:SV_ServiceIdentification/gmd:spatialResolution/gmd:MD_Resolution/gmd:distance/gco:Distance/@uom",
], ],
multiplicity="0..1", multiplicity="0..1",
), ),
#ISOElement(
# name="spatial-resolution-units",
# search_paths=[
# "gmd:identificationInfo/gmd:MD_DataIdentification/gmd:spatialResolution/gmd:MD_Resolution/gmd:distance/gco:Distance/@uom",
# "gmd:identificationInfo/srv:SV_ServiceIdentification/gmd:spatialResolution/gmd:MD_Resolution/gmd:distance/gco:Distance/@uom",
# ],
# multiplicity="0..1",
#),
ISOElement( ISOElement(
name="equivalent-scale", name="equivalent-scale",
search_paths=[ search_paths=[