[GRASS-SVN] r61217 - sandbox/krejcmat/src/data

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jul 9 05:26:50 PDT 2014


Author: martinl
Date: 2014-07-09 05:26:50 -0700 (Wed, 09 Jul 2014)
New Revision: 61217

Modified:
   sandbox/krejcmat/src/data/grassInspireTemplate01.xml
Log:
fix grassInspireTemplate01.xml


Modified: sandbox/krejcmat/src/data/grassInspireTemplate01.xml
===================================================================
--- sandbox/krejcmat/src/data/grassInspireTemplate01.xml	2014-07-09 12:08:31 UTC (rev 61216)
+++ sandbox/krejcmat/src/data/grassInspireTemplate01.xml	2014-07-09 12:26:50 UTC (rev 61217)
@@ -2,119 +2,56 @@
 <!-- ISO 19115:2003 file created from OWSLib object model -->
 <gmd:MD_Metadata xsi:schemaLocation="http://www.isotc211.org/2005/gmd http://schemas.opengis.net/iso/19139/20060504/gmd/gmd.xsd" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink">
   <gmd:fileIdentifier>
-    <gco:CharacterString>{{ md.identifier }}{# tag='md.identifier',  name ='Resource Identifier', desc ='Unique Resource Identifier', example ='286c0725-146e-4533-b1bf-d6e367f6c342', type = 'CharacterString', multi = 1, group = 'Metadata',inbox='inboxtest', inboxmulti=True, multiline=True #}</gco:CharacterString>
+    <gco:CharacterString>{{ md.identifier }}{# tag='md.identifier',  name ='Resource Identifier', desc ='Unique Resource Identifier', example ='286c0725-146e-4533-b1bf-d6e367f6c342', type = 'CharacterString', multi = 0, group = 'Identification', multiline=True #}</gco:CharacterString>
   </gmd:fileIdentifier>
   <gmd:language>
-    <gmd:LanguageCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml#LanguageCode" codeListValue="eng">{{ md.languagecode }}{# tag='md.languagecode', name ='Resource language', desc ='Language(s) used within the datasets', example ='eng', type = 'CharacterString', multi = '0-*', group = 'Metadata',inbox='inboxtest',inboxmulti=True,multiline=False #}</gmd:LanguageCode>
+    <gmd:LanguageCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml#LanguageCode" codeListValue="eng">{{ md.languagecode }}{# tag='md.languagecode', name ='Metadata language', desc ='Language(s) used within the datasets', example ='eng', type = 'CharacterString', multi = 0, group = 'Metadata',multiline=False #}</gmd:LanguageCode>
   </gmd:language>
   <gmd:hierarchyLevel>
-    <gmd:MD_ScopeCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_ScopeCode" codeListValue="dataset" codeSpace="ISOTC211/19115">{{ md.identification.identtype }}{# tag='md.identification.identtype', name ='Resource Type', desc ='Scope to which metadata applies', example ='dataset', type = 'CharacterString', multi = '1', group = 'Identification',multiline=True #}</gmd:MD_ScopeCode>
+    <gmd:MD_ScopeCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_ScopeCode" codeListValue="dataset" codeSpace="ISOTC211/19115">{{ md.identification.identtype }}{# tag='md.identification.identtype', name ='Resource Type', desc ='Scope to which metadata applies', example ='dataset', type = 'CharacterString', multi = 0, group = 'Identification',multiline=True #}</gmd:MD_ScopeCode>
   </gmd:hierarchyLevel>
-  {% for co in md.contact -%}
+  {% for co in md.contact -%}{# tag='md.contact',group = 'Identification' ,inbox='contact'  #}
   <gmd:contact>
     <gmd:CI_ResponsibleParty>
       <gmd:organisationName>
-        <gco:CharacterString>{{ co.organization }}</gco:CharacterString>
+        <gco:CharacterString>{{ co.organization }}{# tag='co.organization', name ='Organisation Name', desc ='todo' , type = 'CharacterString', multi = 0, group = 'Metadata',multiline=True, inbox='contact' #}</gco:CharacterString>
       </gmd:organisationName>
         <gmd:CI_Contact>
           <gmd:address>
             <gmd:CI_Address>
               <gmd:electronicMailAddress>
-                <gco:CharacterString>{{ co.email }}</gco:CharacterString>
+                <gco:CharacterString>{{ co.email }}{# tag='co.email', name ='E-mail', desc ='todo' , type = 'CharacterString', multi = 1, group = 'Metadata',multiline=True, inbox='contact' #}</gco:CharacterString>
               </gmd:electronicMailAddress>
             </gmd:CI_Address>
           </gmd:address>
         </gmd:CI_Contact>
       </gmd:contactInfo>
       <gmd:role>
-        <gmd:CI_RoleCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#CI_RoleCode" codeListValue={{ "\"%s\"" % co.role }} codeSpace="ISOTC211/19115">{{ co.role }}</gmd:CI_RoleCode>
+        <gmd:CI_RoleCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#CI_RoleCode" codeListValue={{ "\"%s\"" % co.role }}{# tag='co.role', name ='role', desc ='todo' , type = 'CharacterString', multi = 0, group = 'Identification',multiline=True, inbox='contact' #} codeSpace="ISOTC211/19115">{{ co.role }}</gmd:CI_RoleCode>
       </gmd:role>
     </gmd:CI_ResponsibleParty>
   </gmd:contact>
   {% endfor -%}
-  <gmd:dateStamp>
-    <gco:Date>{{ md.datestamp }}</gco:Date>
-  </gmd:dateStamp>
-  <gmd:metadataStandardName>
-    <gco:CharacterString>ISO 19115</gco:CharacterString>
-  </gmd:metadataStandardName>
-  <gmd:metadataStandardVersion>
-    <gco:CharacterString>2003/Cor.1:2006</gco:CharacterString>
-  </gmd:metadataStandardVersion>
-  <gmd:identificationInfo>
-    <gmd:MD_DataIdentification>
-      <gmd:citation>
-        <gmd:CI_Citation>
-          <gmd:title>
-            <gco:CharacterString>{{ md.identification.title }}</gco:CharacterString>
-          </gmd:title>
-          {% for d in md.identification.date -%}
-          <gmd:date>
-            <gmd:CI_Date>
-              <gmd:date>
-                <gco:DateTime>{{ d.date }}</gco:DateTime>
-              </gmd:date>
-              <gmd:dateType>
-                <gmd:CI_DateTypeCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#CI_DateTypeCode" codeListValue={{ "\"%s\"" % d.type }} codeSpace="ISOTC211/19115">{{ d.type }}</gmd:CI_DateTypeCode>
-              </gmd:dateType>
-            </gmd:CI_Date>
-          </gmd:date>
-          {% endfor -%}
-          <gmd:identifier>
-            <gmd:RS_Identifier>
-              <gmd:code>
-                <gco:CharacterString>{{ md.identifier }}</gco:CharacterString>
-              </gmd:code>
-            </gmd:RS_Identifier>
-          </gmd:identifier>
-        </gmd:CI_Citation>
-      </gmd:citation>
-      <gmd:abstract>
-        <gco:CharacterString>{{ md.identification.abstract }}</gco:CharacterString>
-      </gmd:abstract>
-      {% for co in md.identification.contact -%}
-      <gmd:pointOfContact>
-        <gmd:CI_ResponsibleParty>
-          <gmd:organisationName>
-            <gco:CharacterString>{{ co.organization }}</gco:CharacterString>
-          </gmd:organisationName>
-          <gmd:contactInfo>
-            <gmd:CI_Contact>
-              <gmd:address>
-                <gmd:CI_Address>
-                  <gmd:electronicMailAddress>
-                    <gco:CharacterString>{{ co.email }}</gco:CharacterString>
-                  </gmd:electronicMailAddress>
-                </gmd:CI_Address>
-              </gmd:address>
-            </gmd:CI_Contact>
-          </gmd:contactInfo>
-          <gmd:role>
-            <gmd:CI_RoleCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#CI_RoleCode" codeListValue={{ "\"%s\"" % co.role }} codeSpace="ISOTC211/19115">{{ co.role }}</gmd:CI_RoleCode>
-          </gmd:role>
-        </gmd:CI_ResponsibleParty>
-      </gmd:pointOfContact>
-      {% endfor -%}
-      {% for k in md.identification.keywords -%}
+      {% for k in md.identification.keywords -%}{# tag='md.identification.keywords' ,group = 'Keywords',inbox='descriptiveKeywords' #}
       <gmd:descriptiveKeywords>
         <gmd:MD_Keywords>
-          {% for kw in k['keywords'] -%}
+{% for kw in k['keywords'] -%}{# tag='k["keywords"]',group = 'Keywords',inbox='descriptiveKeywords'  #}
           <gmd:keyword>
-            <gco:CharacterString>{{ kw }}</gco:CharacterString>
+            <gco:CharacterString>{{ kw }}{# tag='kw', name ='keyword', desc ='todo' , type = 'CharacterString', multi = 1, group = 'Keywords', multiline=True, inbox='descriptiveKeywords' #}</gco:CharacterString>
           </gmd:keyword>
           {% endfor -%}
           <gmd:thesaurusName>
             <gmd:CI_Citation>
               <gmd:title>
-                <gco:CharacterString>{{ k['thesaurus']['title'] }}</gco:CharacterString>
+                <gco:CharacterString>{{ k['thesaurus']['title'] }}{# tag="k['thesaurus']['title']", name ='title', desc ='todo' , type = 'CharacterString', multi = 1, group = 'Keywords', multiline=True, inbox='descriptiveKeywords'#}</gco:CharacterString>
               </gmd:title>
               <gmd:date>
                 <gmd:CI_Date>
                   <gmd:date>
-                    <gco:Date>{{ k['thesaurus']['date'] }}</gco:Date>
+                    <gco:Date>{{ k['thesaurus']['date'] }}{# tag="k['thesaurus']['date'] ", name ='date', desc ='todo' , type = 'CharacterString', multi = 1, group = 'Keywords', multiline=True, inbox='descriptiveKeywords'#}</gco:Date>
                   </gmd:date>
                   <gmd:dateType>
-                    <gmd:CI_DateTypeCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#CI_DateTypeCode" codeListValue={{ "\"%s\"" % k['thesaurus']['datetype'] }}>{{ k['thesaurus']['datetype'] }}</gmd:CI_DateTypeCode>
+                    <gmd:CI_DateTypeCode codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#CI_DateTypeCode" codeListValue={{ "\"%s\"" % k['thesaurus']['datetype'] }}>{{ k['thesaurus']['datetype'] }}{# tag="k['thesaurus']['datetype'] ", name ='datetype', desc ='todo' , type = 'CharacterString', multi = 1, group = 'Keywords', multiline=True, inbox='descriptiveKeywords'#}</gmd:CI_DateTypeCode>
                   </gmd:dateType>
                 </gmd:CI_Date>
               </gmd:date>
@@ -123,35 +60,14 @@
         </gmd:MD_Keywords>
       </gmd:descriptiveKeywords>
       {% endfor -%}
-      {% for rc in md.identification.uselimitation -%}
-      <gmd:resourceConstraints>
-        <gmd:MD_Constraints>
-          <gmd:useLimitation>
-            <gco:CharacterString>{{ rc }}</gco:CharacterString>
-          </gmd:useLimitation>
-        </gmd:MD_Constraints>
-      </gmd:resourceConstraints>
-      {% endfor -%}
-      {% for oc in md.identification.otherconstraints -%}
-      <gmd:resourceConstraints>
-        <gmd:MD_LegalConstraints>
-          <gmd:accessConstraints>
-            <gmd:MD_RestrictionCode codeList="http://www.isotc211.org/2005/resources/Codelist/ML_gmxCodelists.xml#MD_RestrictionCode" codeListValue="otherRestrictions">otherRestrictions</gmd:MD_RestrictionCode>
-          </gmd:accessConstraints>
-          <gmd:otherConstraints>
-            <gco:CharacterString>{{ oc }}</gco:CharacterString>
-          </gmd:otherConstraints>
-        </gmd:MD_LegalConstraints>
-      </gmd:resourceConstraints>
-      {% endfor -%}
-      {% if md.identification.denominators|length > 0 -%}
-      {% for den in md.identification.denominators -%}
+      {% if md.identification.denominators|length > 0 -%}{# tag='md.identification.denominators',group = 'Keywords',inbox='descriptiveKeywords' #}
+      {% for den in md.identification.denominators -%}{# tag="md.identification.denominators",group = 'Keywords',inbox='descriptiveKeywords' #}
       <gmd:spatialResolution>
         <gmd:MD_Resolution>
           <gmd:equivalentScale>
             <gmd:MD_RepresentativeFraction>
               <gmd:denominator>
-                <gco:Integer>{{ den }}</gco:Integer>
+                <gco:Integer>{{ den }}</gco:Integer>{# tag="den ", name ='denominator', desc ='todo' , type = 'CharacterString', multi = 1, group = 'Keywords', multiline=True, inbox='descriptiveKeywords'#}
               </gmd:denominator>
             </gmd:MD_RepresentativeFraction>
           </gmd:equivalentScale>
@@ -159,147 +75,3 @@
       </gmd:spatialResolution>
       {% endfor -%}
       {% endif -%}
-      {% if md.identification.distance|length > 0 and md.identification.uom|length > 0 -%}
-      {% for (d,u) in zip(md.identification.distance, md.identification.uom) -%}
-      <gmd:spatialResolution>
-        <gmd:MD_Resolution>
-          <gmd:distance>
-            <gco:Distance uom={{ "\"%s\"" % u }}>{{ d }}</gco:Distance>
-          </gmd:distance>
-        </gmd:MD_Resolution>
-      </gmd:spatialResolution>
-      {% endfor -%}
-      {% endif -%}
-      {% for lan in md.identification.resourcelanguage -%}
-      <gmd:language>
-        <gmd:LanguageCode codeList="http://www.isotc211.org/2005/resources/Codelist/ML_gmxCodelists.xml#LanguageCode" codeListValue={{ "\"%s\"" % lan }}>{{ lan }}</gmd:LanguageCode>
-      </gmd:language>
-      {% endfor -%}
-      {% for tc in md.identification.topiccategory -%}
-      <gmd:topicCategory>
-        <gmd:MD_TopicCategoryCode>{{ tc }}</gmd:MD_TopicCategoryCode>
-      </gmd:topicCategory>
-      {% endfor -%}
-      <gmd:extent>
-        <gmd:EX_Extent>
-          <gmd:geographicElement>
-            <gmd:EX_GeographicBoundingBox>
-              <gmd:westBoundLongitude>
-                <gco:Decimal>{{ md.identification.extent.boundingBox.minx }}</gco:Decimal>
-              </gmd:westBoundLongitude>
-              <gmd:eastBoundLongitude>
-                <gco:Decimal>{{ md.identification.extent.boundingBox.maxx }}</gco:Decimal>
-              </gmd:eastBoundLongitude>
-              <gmd:southBoundLatitude>
-                <gco:Decimal>{{ md.identification.extent.boundingBox.miny }}</gco:Decimal>
-              </gmd:southBoundLatitude>
-              <gmd:northBoundLatitude>
-                <gco:Decimal>{{ md.identification.extent.boundingBox.maxy }}</gco:Decimal>
-              </gmd:northBoundLatitude>
-            </gmd:EX_GeographicBoundingBox>
-          </gmd:geographicElement>
-        </gmd:EX_Extent>
-      </gmd:extent>
-      {% if md.identification.temporalextent_start != None -%}
-      <gmd:extent>
-        <gmd:EX_Extent>
-          <gmd:temporalElement>
-            <gmd:EX_TemporalExtent>
-              <gmd:extent>
-                <gml:TimePeriod xsi:type="gml:TimePeriodType">
-                  <gml:beginPosition>{{ md.identification.temporalextent_start }}</gml:beginPosition>
-                  <gml:endPosition>{{ md.identification.temporalextent_end }}</gml:endPosition>
-                </gml:TimePeriod>
-              </gmd:extent>
-            </gmd:EX_TemporalExtent>
-          </gmd:temporalElement>
-        </gmd:EX_Extent>
-      </gmd:extent>
-      {% endif -%}
-    </gmd:MD_DataIdentification>
-  </gmd:identificationInfo>
-  <gmd:distributionInfo>
-    <gmd:MD_Distribution>
-      <gmd:distributionFormat>
-        <gmd:MD_Format>
-          <gmd:name gco:nilReason="inapplicable"/>
-          <gmd:version gco:nilReason="inapplicable"/>
-        </gmd:MD_Format>
-      </gmd:distributionFormat>
-      <gmd:transferOptions>
-        <gmd:MD_DigitalTransferOptions>
-          {% for ln in md.distribution.online -%}
-          <gmd:onLine>
-            <gmd:CI_OnlineResource>
-              <gmd:linkage>
-                <gmd:URL>{{ ln.url }}</gmd:URL>
-              </gmd:linkage>
-            </gmd:CI_OnlineResource>
-          </gmd:onLine>
-          {% endfor -%}
-        </gmd:MD_DigitalTransferOptions>
-      </gmd:transferOptions>
-    </gmd:MD_Distribution>
-  </gmd:distributionInfo>
-  <gmd:dataQualityInfo>
-    <gmd:DQ_DataQuality>
-      <gmd:scope>
-        <gmd:DQ_Scope>
-          <gmd:level>
-            <gmd:MD_ScopeCode codeListValue={{ "\"%s\"" % md.identification.identtype }} codeList="http://www.isotc211.org/2005/resources/Codelist/ML_gmxCodelists.xml#MD_ScopeCode">{{ md.identification.identtype }}</gmd:MD_ScopeCode>
-          </gmd:level>
-        </gmd:DQ_Scope>
-      </gmd:scope>
-      {% for (t,d,dt,dg) in zip(md.dataquality.conformancetitle,md.dataquality.conformancedate,md.dataquality.conformancedatetype,md.dataquality.conformancedegree) -%}
-      <gmd:report>
-        <gmd:DQ_DomainConsistency xsi:type="gmd:DQ_DomainConsistency_Type">
-          <gmd:measureIdentification>
-            <gmd:RS_Identifier>
-              <gmd:code>
-                <gco:CharacterString>Conformity</gco:CharacterString>
-              </gmd:code>
-              <gmd:codeSpace>
-                <gco:CharacterString>INSPIRE</gco:CharacterString>
-              </gmd:codeSpace>
-            </gmd:RS_Identifier>
-          </gmd:measureIdentification>
-          <gmd:result>
-            <gmd:DQ_ConformanceResult xsi:type="gmd:DQ_ConformanceResult_Type">
-              <gmd:specification>
-                <gmd:CI_Citation>
-                  <gmd:title>
-                    <gco:CharacterString>{{ t }}</gco:CharacterString>
-                  </gmd:title>
-                  <gmd:date>
-                    <gmd:CI_Date>
-                      <gmd:date>
-                        <gco:Date>{{ d }}</gco:Date>
-                      </gmd:date>
-                      <gmd:dateType>
-                        <gmd:CI_DateTypeCode codeList="http://www.isotc211.org/2005/resources/Codelist/ML_gmxCodelists.xml#CI_DateTypeCode" codeListValue={{ "\"%s\"" % dt }}>{{ dt }}</gmd:CI_DateTypeCode>
-                      </gmd:dateType>
-                    </gmd:CI_Date>
-                  </gmd:date>
-                </gmd:CI_Citation>
-              </gmd:specification>
-              <gmd:explanation>
-                <gco:CharacterString>See the referenced specification</gco:CharacterString>
-              </gmd:explanation>
-              <gmd:pass>
-                <gco:Boolean>{{ dg }}</gco:Boolean>
-              </gmd:pass>
-            </gmd:DQ_ConformanceResult>
-          </gmd:result>
-        </gmd:DQ_DomainConsistency>
-      </gmd:report>
-      {% endfor -%}
-      <gmd:lineage>
-        <gmd:LI_Lineage>
-          <gmd:statement>
-            <gco:CharacterString>{{ md.dataquality.lineage }}</gco:CharacterString>
-          </gmd:statement>
-        </gmd:LI_Lineage>
-      </gmd:lineage>
-    </gmd:DQ_DataQuality>
-  </gmd:dataQualityInfo>
-</gmd:MD_Metadata>



More information about the grass-commit mailing list