Catalog Services
The Catalog Service for the Web (CSW) is an OGC Standard used to publish and search geospatial data and related metadata on the internet. It describes geospatial services such as Web Map Service (WMS) and Web Map Tile Service (WMTS).
In TIEMS the Catalog offers the possibility to access WMS, WFS, CSW, WMTS and TMS Remote Services and to add the related layers to the map. By default, as soon as a user opens the Catalog, a CSW a WMS and a WMTS Demo Services are available, allowing to import layers from the GeoSolutions GeoServer. The user can access the Catalog with a click on the option present in Burger Menu . As soon as you open it, the first display is like the following:
Adding Layers from Remote Services
In order to add a layer, the user can first of all open the catalog and choose from the following dropdown menu the Remote Service from where the layer is going to be added:
Once the Remote Service is set, it is possible to search the desired layer by typing a text on the search bar:
By clicking on the button, the layer is finally added to the TOC and rendered to the map viewer:
Note
For those layers which have long descriptions or long metadata information, the content is truncated in order to fit the Layer Card size. In order to access the complete information, the user can expand the card using the button:
Managing Remote Services
TIEMS allows also to add new Remote Services to the map project () or Edit/Remove the existing ones ().
The adding/editing process is very similar and the only difference is that editing an existing Service the input fields will be already filled with its settings, while adding a new one all the fields will be empty. Moreover only editing an existing Service, it will be possible to remove it from the Services list.
Editing an existing Service, for example, the first display is the following:
From here the user is allowed to set the Service options, that can be divided into:
-
General settings
-
Advanced Settings
Once the options are properly set, it is possible to the Service. If the user wants to discard the edits, instead, there's the button. An existing Service can finally be removed from the Services list through the button (this option is not available creating a new Remote Service).
General settings
The general settings are three mandatory fields that each Remote Service needs to have:
In particular:
-
Url: the URL of the remote source service
-
Type: the type of the remote source service (between WMS, WFS, CSW, TMS and WMTS)
-
Title: the title to assign to the catalog. This text will be used in the service selection dropdown menu for this service.
Advanced settings
The Advances settings section opens by clicking on the icon:
The content of Advanced settings depends on the catalog type, but some options are common to all the services types:
-
Search on service selection that allow to enable/disable the automatic loading of the catalog records when the user opens that Service
-
Show preview that can show/hide layers thumbnails in Catalog
Catalog Types
CSW Catalog
The Catalog Service for the Web (CSW) is an OGC Standard used to publish and search geospatial data and related metadata on the internet. It describes geospatial services such as Web Map Service (WMS), Web Map Tile Service (WMTS) and so on... TIEMS actually supports only the Dublin Core metadata schemas. ISO Metadata Profile is not supported yet.
In general settings of CSW service the user can specify the title to assign to this service and the URL of the service.
Advanced Settings
-
Format: the default image format for the layers added to the map (
png
,png8
,jpeg
,vnd.jpeg-png
,vnd.jpeg-png8
orgif
). The format configured through this option will be automatically used for all layers loaded from the involved catalog source (if not configured a defaultimage/png
is used). For layers already loaded on the map, it is possible to change the format through the Layer Settings tool as usual. -
Layer tile size: it represents tile size (width and height) to be used for tiles of all layers added to the map from the catalog source (
256x256
or512x512
). For layers already loaded on the map, it is possible to change the tile size through the Layer Settings tool as usual. -
Show metadata template: This can be enabled when the user wants to insert in the layer description a text with metadata information
Warning
The Metadata Template function is available for CSW Services only.
Metadata templates
In order to better understand this function, let's make an example supposing to edit the GeoSolutions GeoServer CSW
service:
-
Change the Format of the image that will be rendered on the map (
png
,png8
,jpeg
,vnd.jpeg-png
,vnd.jpeg-png8
orgif
) for layers belonging to the selected source -
Show metadata template can be enabled when the user wants to insert in the layer description a text with metadata information
Enabling the Show metadata template option appears a text editor through witch it is possible to insert the custom metadata information for that service. In order to dynamically parse each layer's metadata value the user can insert the desired properties name with the format ${property_name}
:
In this case it is possible to add a text like the following, in order to present desired metadata properties:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
Inserting this text and saving, the result should be that each layer will show its properties in catalog with the format we set:
Note
If some metadata are missing, the server response will be source Not Available
Static Filter and Dynamic Filter
From the Advanced Settings of the CSW catalog the user has the possibility to configure a Static Filter and a Dynamic Filter to customize the search request.
In order to better understand this function, let's make an example supposing to edit the GeoSolutions GeoServer CSW
service:
- From the Static Filter text area it is possible to insert the custom filter for that service.
In order to present desired Static Filter configuration, it is possible to add a text like the following:
1 2 3 4 5 6 7 8 9 10 |
|
Inserting this text and saving. The filter is applied, even in empty search.
- From the Dynamic Filter text area it is possible to insert the custom filter to applied in AND with Static Filter. The template is used with ${searchText} placeholder to append search string
In this case it is possible to add a text like the following:
1 2 3 4 |
|
Inserting this text and saving, the filter is applied when text is typed into the service search tool.
WMS/WMTS Catalog
WMS and WMTS Services are OGC Standards protocol for publishing maps (and tile maps) on the Internet. The user can add these kind of services as catalogs to browse and add to the map the layers published using these protocols.
In General Settings the user can set the title he wants to assign to this service and the URL of the service to configure the service and its URL.
In addition to the standard options, only for WMS catalog sources, through the Advanced Settings the user can configure also the following options:
-
Localized styles (only for the WMS service) if enabled allows to include the MapStore's locale in each GetMap, GetLegendGraphic and GetFeatureInfo requests to the server so that the WMS server, if properly configured, can use that locale to:
-
Use localized lables for Tiles in case of vector layers (the layer's style must be properly configured for this using the ENV variable support)
-
Produce a localized layer legend in case of vector layers (the layer's style must be properly configured to use the Localized tag for rule titles)
-
Produce a localized output for GetFeatureInfo requests (the freemarker template need to be properly configured to retrieve the locale from the request)
-
Enabling that option, all layers added to the map from this catalog source will be localized as described above (it is possible to tune again that setting for each single layer by opening the Layer Settings in TOC).
- Format: the default image format for layers added to the map (
`png
,png8
,jpeg
,vnd.jpeg-png
,vnd.jpeg-png8
orgif
). The format configured through this option will be automatically used for all layers loaded from the involved catalog source (if not configured a defaultimage/png
is used). For layers already loaded on the map, it is possible to change the format through the Layer Settings tool as usual.
Note
In case of WMS services, the list of available formats is retrieved from the WMS server
- Layer tile size: it represents tile size (width and height) to be used for tiles of all layers added to the map from the catalog source (
256x256
or512x512
). For layers already loaded on the map, it is possible to change the tile size through the Layer Settings tool as usual.
TMS Catalog
The Tile Map Service (TMS) specifications include some not official/not standard protocol for serving maps as tiles (i.e. splitting map up into a pyramid of images at multiple zoom levels). MapStore allows to add to the map the following services providers:
- Custom TMS service, specifying the URL template for the tiles.
- TMS 1.0.0 , setting the URL
- Select from a list of known TMS services, with all the variants.
Note
Since some of these services are not standard, using them in different CRSs may cause problems. Therefore, keep in mind that changing CRS can cause problems when these levels are on the map.
Custom TMS
Selecting the custom provider the user can insert the tile URL template manually. The URL template is an URL with some placeholder that will be replaced with variables. The placeholder are identified by strings between brackets. e.g.: {variable_name}
.
Allowed placeholder are:
{x}
,{y}
,{z}
: coordinates of the tiles{s}
: subdomains, this provides support for domain sharding. By default this is["a", "b", "c"]
. User can customize the default by adding options.subdomains.
example:
1 2 3 4 5 |
|
When the user saves this custom catalog service and clicks on search, he will see only one result, that can be added on the map: variants are not currently sopported in MapStore for this provider type.
Sample custom
1 |
|
Sample custom with advanced options
1 |
|
1 2 3 4 5 6 7 8 9 10 |
|
TMS 1.0.0
Selecting the "TMS 1.0.0" provider the user can insert the URL of the Tile Map Service (see TMS Specification). For instance, in GeoServer, it is the URL of the "TMS" link in the home page.
When saved this, the user will be allowed to browse and add to the map the TMS layers provided by the service. MapStore will filter the layers published showing only the tile maps in the current EPSG.
sample TMS 1.0.0 services
1 2 3 |
|
TMS Known Services
The other known services are listed as providers below "custom" and "TMS 1.0.0". They are a static list configured inside the application. Selecting one of the provider listed and saving the new catalog service allows to browse al the variants known for that service. For more information about the list of available providers, see the developer documentation about Tile Providers