geology-lithology
geology-lithology
Geological Unit Lithology Theme
The colour has been creatively adapted from Moyer,Hasting
and Raines, 2005 (http://pubs.usgs.gov/of/2005/1314/of2005-1314.pdf)
which provides xls spreadsheets for various color schemes.
plus some creative entries to fill missing entries.
1
acidic igneous material
Igneous material with more than 63 percent SiO2.
(after LeMaitre et al. 2002)
gsml:specification/gsml:GeologicUnit/gsml:composition/
gsml:CompositionPart/gsml:lithology/@xlink:href
urn:cgi:classifier:CGI:SimpleLithology:200811:
acidic_igneous_material
#FFCCB3
acidic igneous rock
Igneous rock with more than 63 percent SiO2.
(after LeMaitre et al. 2002)
gsml:specification/gsml:GeologicUnit/gsml:composition/
gsml:CompositionPart/gsml:lithology/@xlink:href
urn:cgi:classifier:CGI:SimpleLithology:200811:
acidic_igneous_rock
#FECDB2
...
GetFeatureInfo
--------------
Read :ref:`wms_getfeatureinfo` for general information on the GetFeatureInfo request.
Read the tutorial on :ref:`tutorials_getfeatureinfo` for information on how to template the html output.
If you want to store a separate standard template for complex feature collections, save it under the filename
``complex_content.ftl`` in the template directory.
Read the tutorial on :ref:`tutorial_freemarkertemplate` for more information on how to use the freemarker templates.
Freemarker templates support recursive calls, which can be useful for templating complex content.
For example, the following freemarker template creates a table of features with a column for each property,
and will create another table inside each cell that contains a feature as property:
.. code-block:: html
<#--
Macro's used for content
-->
<#macro property node>
<#if !node.isGeometry>
<#if node.isComplex>
<@feature node=node.rawValue type=node.type /> |
<#else>
${node.value?string} |
#if>
#if>
#macro>
<#macro header typenode>
${typenode.name}
fid |
<#list typenode.attributes as attribute>
<#if !attribute.isGeometry>
<#if attribute.prefix == "">
${attribute.name} |
<#else>
${attribute.prefix}:${attribute.name} |
#if>
#if>
#list>
#macro>
<#macro feature node type>
<@header typenode=type />
${node.fid} |
<#list node.attributes as attribute>
<@property node=attribute />
#list>
#macro>
<#--
Body section of the GetFeatureInfo template, it's provided with one feature collection, and
will be called multiple times if there are various feature collections
-->
<@header typenode=type />
<#assign odd = false>
<#list features as feature>
<#if odd>
<#else>
#if>
<#assign odd = !odd>
${feature.fid} |
<#list feature.attributes as attribute>
<@property node=attribute />
#list>
#list>