sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jean-marc Bourdaret (Jira)" <j...@apache.org>
Subject [jira] [Created] (SIS-508) MD_Scope in place of DQ_Scope when generating old 2007 iso 19139
Date Tue, 12 Jan 2021 15:12:00 GMT
jean-marc Bourdaret created SIS-508:
---------------------------------------

             Summary: MD_Scope in place of DQ_Scope when generating old 2007 iso 19139 
                 Key: SIS-508
                 URL: https://issues.apache.org/jira/browse/SIS-508
             Project: Spatial Information Systems
          Issue Type: Bug
          Components: Metadata
    Affects Versions: 2.0
            Reporter: jean-marc Bourdaret


When building _DefaultDataQuality_  objects with a _Scope ,_ 

Generated XML may not contain the appropriate *+_DQ_Scope_+* tag.

I understand that *DQ_Scope* was deprecated in *iso19115:2014*, in favor of MD_Scope. but
it might still be valid when generating iso19115:*2007* XML.

 
h3. exemple:
{code:java}
 DefaultDataQuality dataQuality = new DefaultDataQuality(ScopeCode.DATASET);{code}
and then :

 
{code:java}
XML.marshal(sisMetadata,new StreamResult( xmlOut ), Map.of(XML.METADATA_VERSION, "2007"))
{code}
will produce :

 

 
{code:java}
...<gmd:dataQualityInfo>
      <gmd:DQ_DataQuality>
         <gmd:scope>
            <gmd:MD_Scope>
               <gmd:level>
                  <gmd:MD_ScopeCode ...
{code}
and I was expecting :

 
{code:java}
...<gmd:dataQualityInfo>
      <gmd:DQ_DataQuality>
         <gmd:scope>
            <gmd:DQ_Scope>
               <gmd:level>
                  <gmd:MD_ScopeCod
{code}
because it should be a iso19115:2007 compliant document.

 

using SIS v2.0 on the Geomatys repo.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message