Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with gex:EX_Extent in the ISO 19157 file #198

Open
mattCensus opened this issue Aug 9, 2018 · 3 comments
Open

Problem with gex:EX_Extent in the ISO 19157 file #198

mattCensus opened this issue Aug 9, 2018 · 3 comments

Comments

@mattCensus
Copy link

I get this message
Invalid content was found starting with element 'gex:EX_Extent'. One of '{"http://standards.iso.org/iso/19115/-3/mcc/1.0":Abstract_Extent}' is expected.

for this code in the standalone ISO 19157 file:

mdq:scope
mcc:MD_Scope
mcc:level
<mcc:MD_ScopeCode codeList="codeListLocation#MD_ScopeCode" codeListValue="dataset">dataset</mcc:MD_ScopeCode>
</mcc:level>
mcc:extent
<gex:EX_Extent id="boundingExtent">
gex:geographicElement
<gex:EX_GeographicBoundingBox id="boundingGeographicBoundingBox">
gex:westBoundLongitude
gco:Decimal-88.473227</gco:Decimal>
</gex:westBoundLongitude>
gex:eastBoundLongitude
gco:Decimal-84.888246</gco:Decimal>
</gex:eastBoundLongitude>
gex:southBoundLatitude
gco:Decimal30.144425</gco:Decimal>
</gex:southBoundLatitude>
gex:northBoundLatitude
gco:Decimal35.008028</gco:Decimal>
</gex:northBoundLatitude>
</gex:EX_GeographicBoundingBox>
</gex:geographicElement>
gex:temporalElement
<gex:EX_TemporalExtent id="boundingTemporalExtent">
gex:extent
<gml:TimePeriod gml:id="boundingTemporalExtentA">
gml:descriptionpublication date</gml:description>
gml:beginPosition2016-06</gml:beginPosition>
gml:endPosition2017-05</gml:endPosition>
</gml:TimePeriod>
</gex:extent>
</gex:EX_TemporalExtent>
</gex:temporalElement>
</gex:EX_Extent>
</mcc:extent>
</mcc:MD_Scope>
</mdq:scope>

@smrgeoinfo
Copy link
Contributor

Can you provide a link to your instance file? My suspicion is that the gex namespace needs to be imported. In the base mdq schema, it only points to an abstractExtent in the mcc namespace, you need to import a namespace that has a concrete element derived from abstract extent. so, you;'ll need these namespace declarations
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:gex="http://standards.iso.org/iso/19115/-3/gex/1.0"

and in your xsi:schemaLocation attribute on the root element you''ll need

http://standards.iso.org/iso/19115/-3/gex/1.0 http://standards.iso.org/iso/19115/-3/gex/1.0/gex.xsd

to bind the gex namespace to an implementation.

@mattCensus
Copy link
Author

mattCensus commented Aug 9, 2018 via email

@smrgeoinfo
Copy link
Contributor

Hmm, I don't see the file or a link...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants