Handle WMS service...

<< Click to Display Table of Contents >>

dpCom > Menu reference > File > Reference data >

Handle WMS service...

WMS, Web Map Service is a standardized format for exchanging geographic data and is defined by OGC, Open Geospatial Consortium. The images are delivered in png, jpg, gif or svg format and can be read by most general GIS platforms. When connecting to WMS, access is given to the raster maps provided by the web service. It makes it possible to manage raster data as separate product classes in the application. Each WMS service contains a set of map layers that display different types of thematic information.

 

Digpro provides three WMS services by default, available in the sidebar, under the tab Map > WMS and raster.

OpenStreetMap - Standard

OpenStreetMap - dpBright

OpenStreetMap - dpGray

Select the one that best suits your needs. Standard is the most detailed of the three, dpGray is darker and can, for example, be used to highlight a drawn network in bolder colors.

If you zoom far out or pan far away, it can create strange visual effects if your application does not use WGS84 or a similar coordinate system.

 

Digpro's applications can also act as WMS services in other external clients, such as dpWebMap or ArcGIS. The configuration is done on the Tomcat server, where you specify which map product to use and what the call should look like. Contact the customer manager at Digpro for more information.

The window for managing WMS services is empty as long as there are no predefined map services added.

 

Handle WMS services in the sidebar

The map services are counted as separate product classes and can therefore be edited in the Map tab in the sidebar. The map layers selected in the Layers panel are displayed in the graphical view along with your own data.

You can select a loaded WMS directly in the map tab, right-click on it and select Delete. In the same way, you can right-click on a loaded WMS and select Show info to instead get information about the existing WMS.

The WMS prefix does not appear in the sidebar by default. However, you can configure the WMS prefix in the sidebar. This is set in the application file.

Add WMS services

1.Select File > Reference Data > Handle WMS Service...

2.Press Add WMS.

3.Enter the URL of the WMS service.

4.If WMS service requires login:

a) Check the box for Service requires login.

b) Enter the User name and Password you received from your WMS service provider.

5. Press OK.

Delete WMS services

1.Select File > Reference Data > Handle WMS Service...

2.Select the tab for the WMS service you want to delete.

3.Press Remove WMS.

 

View WMS services

1.Select File > Reference Data > Handle WMS Service....

2.Select the tab for the WMS service you want to work with.

3.Check the box for Show all layers to show all map layers.

4.Uncheck the Transparent check box to hide transparent map layers.

5.Press Show legend to display the legend for the map layers you have selected.

 

Add a WMS for a map product

If a WMS service is frequently used by many users, it can be configured in tomcat-site. For most installations, this is done in a file named raster_site.conf, where for example orthophotos and WMS services can be specified.

The configuration can look like this:

[bios.plugin.raster.WMSPlugin*Bullerkarta]

title=Bullerkartan 2012

url=http://kartor.miljo.stockholm.se/geoserver/wms

zorder=-100

layers=mfraster:bullerkartan-2012-allakallor

start_visible=false

#user=

#password=

products=[:ALL_PRODUCTS]

 

The WMS is then displayed under WMS and raster in the map tree.

 

Create your own WMS service

If you have a license for the service platform, you can publish your own WMS services.

The configuration is done in a file where you specify, among other things, the bounding box, coordinate system, number of zoom levels, title, and which product to use. The appearance of the WMS service is controlled by the map product, where you define the visual style to be used.

 

More information

Each WMS service contains a set of map layers that display different types of thematic information. The WMS Services window displays explanations of the map layers when you hover the mouse pointer over the name of the map layers.

In the Layers panel, in addition to displaying all layers, you can also choose to select only one or a selection of the map layers you want to display.

You can also view the legend of a WMS directly in the sidebar map tree.

1.Open the sidebar.

2.Select the Map tab.

3.Select WMS and raster.

4.Right-click on a WMS in the list and select Show legend.