Search results analysis - geosolutions-it/MapStore GitHub Wiki
A tipical record of the GetRecords Response is like this:
<csw:Record xmlns:geonet="http://www.fao.org/geonetwork"
xmlns:ows="http://www.opengis.net/ows"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dct="http://purl.org/dc/terms/">
<dc:identifier>f8c27d50-88fd-11da-a88f-000d939bc5d8</dc:identifier>
<dc:title>Soil (Carbon Sequestration) - FDH Extent</dc:title>
<dc:subject>soil</dc:subject>
<dc:subject>carbon</dc:subject>
<dc:subject>FDH</dc:subject>
<dc:subject>Fouta Djallon Highlands</dc:subject>
<dc:subject>geoscientificInformation</dc:subject>
<dct:abstract>
The raster dataset of suitability of soil conditions for soil carbon sequestration derived
from the raster version of the FAO/UNESCO soil map of the world (wdsmwgr).This dataset of
the FDH area is derived from the global raster after reducing the spatial extent of the
original dataset to a more significant area for the Fouta Djallon Highlands project.
</dct:abstract>
<dc:rights>copyright</dc:rights>
<dc:rights>copyright</dc:rights>
<dc:language>eng</dc:language>
<dc:source/>
<ows:BoundingBox crs="urn:ogc:def:crs:::WGS 1984">
<ows:LowerCorner>-5.3819892816246 7.62806</ows:LowerCorner>
<ows:UpperCorner>-16.88153 15.46108</ows:UpperCorner>
</ows:BoundingBox>
<dc:URI protocol="OGC:WMS-1.1.1-http-get-map"
name="geonetwork:soil_carbon_sequestration"
description="Suitability of Soil conditions for Soil Carbon Sequestration (23460 bytes)"
>
http://demo1.geo-solutions.it/geoserver/wms
</dc:URI>
<dc:URI protocol="WWW:DOWNLOAD-1.0-http--download"
name=" C_sequestration.zip "
description="Suitability of Soil conditions for Soil Carbon Sequestration"
>
http://demo1.geo-solutions.it/geonetwork/srv/en/resources.get?id=74&fname=C_sequestration.zip&access=private
</dc:URI>
<dc:URI name="thumbnail">resources.get?id=74&fname=small.bmp&access=public</dc:URI>
</csw:Record>
You can view three different dc:URI fields. Protocol or name attributes are useful to understand that
- thumbnail: is the one with the attribute name="thumbnail". URL of this resource can be relative.
- Layers: the dc:URI with attribute protocol="OGC:WMS-1.1.1-http-get-map" is the layer. Name is layer name. Value of this entry is the WMS service address
- Downloads: protocol="WWW:DOWNLOAD-1.0-http--download" distinguishes the download URI from the others
OpenLayers parses dc fields simply creating, for each dc: entry, an object like this:
tagname:[
{ attribute1 : value1,..., attributeN :valueN, value : nodeContent }
{ attribute1 : value1,..., attributeN :valueN, value : nodeContent },
...
{ attribute1 : value1,..., attributeN :valueN, value : nodeContent }
]
in the case of exemple, for URI FIELDS
URI:[
{
protocol: "OGC:WMS-1.1.1-http-get-map",
name: "geonetwork:soil_carbon_sequestration",
description: "Suitability of Soil conditions for Soil Carbon Sequestration (23460 bytes)",
value: "http://demo1.geo-solutions.it/geoserver/wms"
},
{
protocol: "WWW:DOWNLOAD-1.0-http--download" ,
name: " C_sequestration.zip ",
description: "Suitability of Soil conditions for Soil Carbon Sequestration",
value: "http://demo1.geo-solutions.it/geonetwork/srv/en/resources.get?id=74& amp;fname=C_sequestration.zip&access=private"
},
{
name: "thumbnail",
value: "resources.get?id=74&fname=small.bmp&access=public"
}
]