Skip to content

Commit 6b52617

Browse files
committed
add datatype section
resolves #189
1 parent 15d5b27 commit 6b52617

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
@@ -172,6 +172,9 @@ def import_(self, metadata: str) -> dict:
172172
mcf['spatial']['resolution'].append({'distance': v,
173173
'uom': uom})
174174

175+
if m.identification.spatialrepresentationtype and len(m.identification.spatialrepresentationtype) > 0: # noqa
176+
mcf['spatial']['datatype'] = m.identification.spatialrepresentationtype[0] # noqa
177+
175178
if m.identification.accessconstraints:
176179
mcf['identification']['accessconstraints'] = m.identification.accessconstraints[0] # noqa
177180

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)