Defect #796

Stereotype geographic extent stores database ids intestead of "codes"

Added by Blatti Yves about 4 years ago. Updated about 3 years ago.

Status:ClosedStart date:08/13/2014
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:CATALOG
Target version:4.2.0
Affected version:4.2.0

Description

Related to #721:
Stereotype geographic extent stores database ids instead of "codes".
In V2, there was a "multilingual identifier", we used to store national (OFS) identifiers.

V4

        <gmd:extent>
          <gmd:EX_Extent>
            <sdi:extentType>
              <gco:CharacterString>commune</gco:CharacterString>
            </sdi:extentType>
            <gmd:description>
              <gco:CharacterString>Apples</gco:CharacterString>
            </gmd:description>
            <gmd:geographicElement>
              <gmd:EX_GeographicBoundingBox>
                <gmd:extentTypeCode>
                  <gco:Boolean>true</gco:Boolean>
                </gmd:extentTypeCode>
                <gmd:northBoundLatitude>
                  <gco:Decimal>46.579213</gco:Decimal>
                </gmd:northBoundLatitude>
                <gmd:southBoundLatitude>
                  <gco:Decimal>46.531578</gco:Decimal>
                </gmd:southBoundLatitude>
                <gmd:eastBoundLongitude>
                  <gco:Decimal>6.447233</gco:Decimal>
                </gmd:eastBoundLongitude>
                <gmd:westBoundLongitude>
                  <gco:Decimal>6.387222</gco:Decimal>
                </gmd:westBoundLongitude>
              </gmd:EX_GeographicBoundingBox>
            </gmd:geographicElement>
            <gmd:geographicElement>
              <gmd:EX_GeographicDescription>
                <gmd:extentTypeCode>
                  <gco:Boolean>true</gco:Boolean>
                </gmd:extentTypeCode>
                <gmd:geographicIdentifier>
                  <gmd:MD_Identifier>
                    <gmd:code>
                      <!-- this is the database id -->
                      <gco:CharacterString>239</gco:CharacterString>
                    </gmd:code>
                  </gmd:MD_Identifier>
                </gmd:geographicIdentifier>
              </gmd:EX_GeographicDescription>
            </gmd:geographicElement>
          </gmd:EX_Extent>
        </gmd:extent>

V2

        <gmd:extent>
          <gmd:EX_Extent>
            <sdi:extentType>
              <gco:CharacterString>commune</gco:CharacterString>
            </sdi:extentType>
            <gmd:description>
              <gco:CharacterString>Morges</gco:CharacterString>
            </gmd:description>
            <gmd:geographicElement>
              <gmd:EX_GeographicBoundingBox>
                <gmd:extentTypeCode>true</gmd:extentTypeCode>
                <gmd:northBoundLatitude>
                  <gco:Decimal>46.52375</gco:Decimal>
                </gmd:northBoundLatitude>
                <gmd:southBoundLatitude>
                  <gco:Decimal>46.501043</gco:Decimal>
                </gmd:southBoundLatitude>
                <gmd:eastBoundLongitude>
                  <gco:Decimal>6.513332</gco:Decimal>
                </gmd:eastBoundLongitude>
                <gmd:westBoundLongitude>
                  <gco:Decimal>6.47649</gco:Decimal>
                </gmd:westBoundLongitude>
              </gmd:EX_GeographicBoundingBox>
            </gmd:geographicElement>
            <gmd:geographicElement>
              <gmd:EX_GeographicDescription>
                <gmd:extentTypeCode>
                  <gco:Boolean>true</gco:Boolean>
                </gmd:extentTypeCode>
                <gmd:geographicIdentifier>
                  <gmd:MD_Identifier>
                    <gmd:code>
                      <!-- this is the database id -->
                      <gco:CharacterString>5642</gco:CharacterString>
                    </gmd:code>
                  </gmd:MD_Identifier>
                </gmd:geographicIdentifier>
              </gmd:EX_GeographicDescription>
            </gmd:geographicElement>
          </gmd:EX_Extent>
        </gmd:extent>

I don't have a MultiLingual easySDI install, but I suppose that MD_Identifier should use the PT_FreeText mechanism in case of multilingual MD.

I attached GM03 and iso screenshots of EX_Extent UML fragment, it seems that V2 behavior was right.

GM03_EX_Extent.png (88.8 KB) Blatti Yves, 08/13/2014 09:38 AM

GM03_MD_Identifier.png (30.7 KB) Blatti Yves, 08/13/2014 09:38 AM

ISO_19115EX_Extent.png (73.7 KB) Blatti Yves, 08/13/2014 09:38 AM

History

#1 Updated by Blatti Yves about 4 years ago

Woops, I cannot edit my issue , but the comment in the v2 XML fragment is wrong. Erratum:

                    <gmd:code>
                      <!-- this is the internationalized code (not the database id!) -->
                      <gco:CharacterString>5642</gco:CharacterString>
                    </gmd:code>

#2 Updated by Battaglia Marc about 4 years ago

To comply with the standard, we must change the stereotype as follows:

<gmd:extent>
  <gmd:EX_Extent>
    <sdi:extentType>
      <gco:CharacterString>commune</gco:CharacterString>
    </sdi:extentType>
    <gmd:description>
      <gco:CharacterString>Apples</gco:CharacterString>
      ==========================
      <gmd:PT_FreeText>
      <gmd:textGroup>
        <gmd:LocalisedCharacterString locale="#DE" />
      </gmd:textGroup>
      </gmd:PT_FreeText>
      ==========================
    </gmd:description>
    <gmd:geographicElement>
      <gmd:EX_GeographicBoundingBox>
        <gmd:extentTypeCode>
          <gco:Boolean>true</gco:Boolean>
        </gmd:extentTypeCode>
        <gmd:northBoundLatitude>
          <gco:Decimal>46.579213</gco:Decimal>
        </gmd:northBoundLatitude>
        <gmd:southBoundLatitude>
          <gco:Decimal>46.531578</gco:Decimal>
        </gmd:southBoundLatitude>
        <gmd:eastBoundLongitude>
          <gco:Decimal>6.447233</gco:Decimal>
        </gmd:eastBoundLongitude>
        <gmd:westBoundLongitude>
          <gco:Decimal>6.387222</gco:Decimal>
        </gmd:westBoundLongitude>
      </gmd:EX_GeographicBoundingBox>
    </gmd:geographicElement>
    ===========================
    <!-- This node is optional. If the node description is empty, it should not appear.-->
    ===========================
    <gmd:geographicElement>
      <gmd:EX_GeographicDescription>
        <gmd:extentTypeCode>
          <gco:Boolean>true</gco:Boolean>
        </gmd:extentTypeCode>
        <gmd:geographicIdentifier>
          <gmd:MD_Identifier>
            <gmd:code>
              ===========================
              <!-- this is the internationalized code (not the database id!) -->
              ===========================
              <gco:CharacterString>239</gco:CharacterString>
              ==========================
              <gmd:PT_FreeText>
              <gmd:textGroup>
                <gmd:LocalisedCharacterString locale="#DE" />
              </gmd:textGroup>
              </gmd:PT_FreeText>
              ==========================
            </gmd:code>
          </gmd:MD_Identifier>
        </gmd:geographicIdentifier>
      </gmd:EX_GeographicDescription>
    </gmd:geographicElement>
  </gmd:EX_Extent>
</gmd:extent>

#3 Updated by Blatti Yves about 4 years ago

But only for multi lingual metadata ? Like other stereotypes ?

#4 Updated by Battaglia Marc about 4 years ago

  • Status changed from New to Affected
  • Assignee set to Battaglia Marc
  • Target version set to 157

#5 Updated by Battaglia Marc about 4 years ago

  • Status changed from Affected to Resolved
  • Assignee changed from Battaglia Marc to Blatti Yves

#6 Updated by Battaglia Marc about 4 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100

#7 Updated by Magoni Bruno almost 4 years ago

  • Target version changed from 157 to 4.2.0

#8 Updated by Magoni Bruno almost 4 years ago

  • Affected version changed from to 4.2.0

#9 Updated by Van Hoecke Hélène about 3 years ago

  • Assignee deleted (Blatti Yves)

Also available in: Atom PDF