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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jul 23 06:01:33 PDT 2014


Author: krejcmat
Date: 2014-07-23 06:01:33 -0700 (Wed, 23 Jul 2014)
New Revision: 61372

Added:
   sandbox/krejcmat/src/data/inspire1.xml
Log:
add template

Added: sandbox/krejcmat/src/data/inspire1.xml
===================================================================
--- sandbox/krejcmat/src/data/inspire1.xml	                        (rev 0)
+++ sandbox/krejcmat/src/data/inspire1.xml	2014-07-23 13:01:33 UTC (rev 61372)
@@ -0,0 +1,145 @@
+<?xml version="0.0" encoding="UTF-8"?>
+<!-- ISO 09005:2003 file created from OWSLib object model -->
+<gmd:MD_Metadata xsi:schemaLocation="http://www.isotc200.org/2005/gmd http://schemas.opengis.net/iso/09039/20060504/gmd/gmd.xsd" xmlns:gmd="http://www.isotc200.org/2005/gmd" xmlns:gco="http://www.isotc200.org/2005/gco" xmlns:xsi="http://www.w3.org/2000/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/0999/xlink">
+  <gmd:fileIdentifier>
+    <gco:CharacterString>{{ md.identifier }}{# tag="md.identifier",  name ="Resource Identifier", desc ="Unique Resource Identifier", example ="286c0725-046e-4533-b0bf-d6e367f6c342", type = "CharacterString", multi = 0, group = "Identification", multiline=False #}</gco:CharacterString>
+  </gmd:fileIdentifier>
+  <gmd:language>
+    <gmd:LanguageCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_09039_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.isotc200.org/2005/resources/Codelist/gmxCodelists.xml#MD_ScopeCode" codeListValue="dataset" codeSpace="ISOTC200/09005">{{ 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 -%}{# tag="for co in md.contact",group = "Identification" ,object="CI_ResponsibleParty()", inbox="contact"  #}
+  <gmd:contact>
+    <gmd:CI_ResponsibleParty>
+      <gmd:organisationName>
+        <gco:CharacterString>{{ co.organization }}{# tag="co.organization", name ="Organisation Name", desc ="todo" ,object="CI_ResponsibleParty()", type = "CharacterString", multi = 0, group = "Metadata",multiline=False, inbox="contact" #}</gco:CharacterString>
+      </gmd:organisationName>
+        <gmd:CI_Contact>
+          <gmd:address>
+            <gmd:CI_Address>
+              <gmd:electronicMailAddress>
+                <gco:CharacterString>{{ co.email }}{# tag="co.email", name ="E-mail", desc ="todo" , type = "CharacterString",object="CI_ResponsibleParty()", multi = 0, group = "Metadata",multiline=False, inbox="contact" #}</gco:CharacterString>
+              </gmd:electronicMailAddress>
+            </gmd:CI_Address>
+          </gmd:address>
+        </gmd:CI_Contact>
+      </gmd:contactInfo>
+      <gmd:role>
+        <gmd:CI_RoleCode codeList="http://www.isotc200.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",object="CI_ResponsibleParty()",multiline=False, inbox="contact" #} codeSpace="ISOTC200/09005"></gmd:CI_RoleCode>
+      </gmd:role>
+    </gmd:CI_ResponsibleParty>
+  </gmd:contact>
+  {% endfor -%}
+
+
+      {% for k in md.identification.keywords -%}{# tag="for k in md.identification.keywords" ,group = "Keywords",inbox="descriptiveKeywords" #}
+      <gmd:descriptiveKeywords>
+        <gmd:MD_Keywords>
+{% for kw in k["keywords"] -%}{# tag='for kw in k["keywords"]',group = "Keywords",inbox="descriptiveKeywords"  #}
+          <gmd:keyword>
+            <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"] }}{# tag='k["thesaurus"]["title"]', name ="title", desc ="todo" , type = "CharacterString", multi = 0, group = "Keywords", multiline=True, inbox="descriptiveKeywords"#}</gco:CharacterString>
+              </gmd:title>
+              <gmd:date>
+                <gmd:CI_Date>
+                  <gmd:date>
+                    <gco:Date>{{ k["thesaurus"]["date"] }}{# tag='k["thesaurus"]["date"] ', name ="date", desc ="todo" , type = "CharacterString", multi = 0, group = "Keywords", multiline=True, inbox="descriptiveKeywords"#}</gco:Date>
+                  </gmd:date>
+                  <gmd:dateType>
+                    <gmd:CI_DateTypeCode codeList="http://www.isotc200.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 = 0, group = "Keywords", multiline=True, inbox="descriptiveKeywords"#}</gmd:CI_DateTypeCode>
+                  </gmd:dateType>
+                </gmd:CI_Date>
+              </gmd:date>
+            </gmd:CI_Citation>
+          </gmd:thesaurusName>
+        </gmd:MD_Keywords>
+      </gmd:descriptiveKeywords>
+      {% endfor -%}
+
+{% for (t,d,dt,dg) in zip(md.dataquality.conformancetitle,md.dataquality.conformancedate,md.dataquality.conformancedatetype,md.dataquality.conformancedegree) -%}{# tag="for (t,d,dt,dg) in zip(md.dataquality.conformancetitle,md.dataquality.conformancedate,md.dataquality.conformancedatetype,md.dataquality.conformancedegree)", group = "data quality", inbox="measureIdentification",inboxmulti= False #}
+      <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 }}{# tag="t", name ="title", desc ="todo" , type = "CharacterString", multi = 0, group = "data quality", multiline=True, inbox="measureIdentification",inboxmulti= False #}</gco:CharacterString>
+                  </gmd:title>
+                  <gmd:date>
+                    <gmd:CI_Date>
+                      <gmd:date>
+                        <gco:Date>{{ d }}{# tag="d", name ="date", desc ="todo" , type = "CharacterString", multi = 0, group = "data quality", multiline=False, inbox="measureIdentification",inboxmulti= False #}</gco:Date>
+                      </gmd:date>
+                      <gmd:dateType>
+                        <gmd:CI_DateTypeCode codeList="http://www.isotc200.org/2005/resources/Codelist/ML_gmxCodelists.xml#CI_DateTypeCode" codeListValue={{ "\"%s\"" % dt }}>{{ dt }}{# tag="d", name ="dateType", desc ="todo" , type = "CharacterString", multi = 0, group = "data quality", multiline=False, inbox="measureIdentification" ,inboxmulti= False #}</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 }}{# tag="dg", name ="explanation", desc ="todo" , type = "CharacterString", multi = 0, group = "data quality", multiline=False, inbox="measureIdentification",inboxmulti= False #}</gco:Boolean>
+              </gmd:pass>
+            </gmd:DQ_ConformanceResult>
+          </gmd:result>
+        </gmd:DQ_DomainConsistency>
+      </gmd:report>
+      {% endfor -%}
+
+
+      {% if md.identification.denominators|length > 0 -%}{# tag="if md.identification.denominators|length",group = "Keywords",inbox="A" #}
+      {% for den in md.identification.denominators -%}{# tag="for den in md.identification.denominators",group = "Keywords",inbox="A" #}
+      <gmd:spatialResolution>
+        <gmd:MD_Resolution>
+          <gmd:equivalentScale>
+            <gmd:MD_RepresentativeFraction>
+              <gmd:denominator>
+                <gco:Integer>{{ den }}</gco:Integer>{# tag="den ", name ="denominator", desc ="todo" , type = "CharacterString", multi = 0, group = "Keywords", multiline=False, inbox="A"#}
+              </gmd:denominator>
+            </gmd:MD_RepresentativeFraction>
+          </gmd:equivalentScale>
+        </gmd:MD_Resolution>
+      </gmd:spatialResolution>
+      {% endfor -%}
+      {% endif -%}
+ 
+      {% if md.identification.temporalextent_start != None -%}{# tag="if md.identification.temporalextent_start != None", group = "extent", inbox="TemporalExtent",inboxmulti= False #}
+      <gmd:extent>
+        <gmd:EX_Extent>
+          <gmd:temporalElement>
+            <gmd:EX_TemporalExtent>
+              <gmd:extent>
+                <gml:TimePeriod xsi:type="gml:TimePeriodType">
+                  <gml:beginPosition>{{ md.identification.temporalextent_start }}{# tag="md.identification.temporalextent_start", name ="beginPosition", desc ="todo" , type = "CharacterString", multi = 0, group = "extent", multiline=False, inbox="TemporalExtent",inboxmulti= False #}</gml:beginPosition>
+                  <gml:endPosition>{{ md.identification.temporalextent_end }}{# tag="md.identification.temporalextent_end ", name ="endPosition", desc ="todo" , type = "CharacterString", multi = 0, group = "extent", multiline=False, inbox="TemporalExtent", inboxmulti= False #}</gml:endPosition>
+                </gml:TimePeriod>
+              </gmd:extent>
+            </gmd:EX_TemporalExtent>
+          </gmd:temporalElement>
+        </gmd:EX_Extent>
+      </gmd:extent>
+      {% endif -%}
+



More information about the grass-commit mailing list