Skip to content

Commit bf5574b

Browse files
committed
add datatype section
resolves #189
1 parent e81d7e8 commit bf5574b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

pygeometa/schemas/iso19139/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ def import_(self, metadata: str) -> dict:
151151
mcf['spatial']['resolution'].append({'distance': v,
152152
'uom': uom})
153153

154+
if m.identification.spatialrepresentationtype and len(m.identification.spatialrepresentationtype) > 0: # noqa
155+
mcf['spatial']['datatype'] = m.identification.spatialrepresentationtype[0] # noqa
156+
154157
if m.identification.accessconstraints:
155158
mcf['identification']['accessconstraints'] = m.identification.accessconstraints[0] # noqa
156159

tests/md-SMJP01RJTD-gmd.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,9 @@
315315
</gmd:otherConstraints>
316316
</gmd:MD_LegalConstraints>
317317
</gmd:resourceConstraints>
318+
<gmd:spatialRepresentationType>
319+
<gmd:MD_SpatialRepresentationTypeCode codeListValue="vector" codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_SpatialRepresentationTypeCode"/>
320+
</gmd:spatialRepresentationType>
318321
<gmd:spatialResolution>
319322
<gmd:MD_Resolution>
320323
<gmd:equivalentScale>

0 commit comments

Comments
 (0)