[FrontPage] [TitleIndex] [WordIndex

deegree 3 utahDemo

The utah-workspace is part of the deegree 3.1 release. It is a configuration of deegree 3 mapService (WMS) and deegree 3 featureService (WFS) and is meant to be a starting point for creating your own deegree 3 web mapping setup -- just adapt data, layer and styling configuration as you like. And if you create something cool, we would love to hear about it.

1. Features of the utahDemo

Full lists of features for deegree 3 mapService and deegree 3 featureService are provided on the respective wiki pages.

Notable features of the utahDemo:

*The deegree featureService is fully transactional. However, the pre-configured feature types in the utahDemo are stored in shape files, and currently there is no transaction support for shape files in deegree. But if you configure PostGIS-based feature storage, transaction support will be available.

Original DEM as TIFF

DEM with ShadedRelief

DEM with elevation restriction

original tiff file in grayscale

DEM with ShadedRelief and colour interpolation

DEM with elevation restriction (1500 to 2200m)

This tiff image shows the original data of the digital elevation model (DEM) in grayscale.

This image shows the same raster data, rendered on-the-fly by the mapService by using shaded relief, plus colour interpolation as styling.
See styling details below.

This image shows the same scene, with an extra parameter added to the GetMap request: Only data with an elevation between 1500 and 2200 meters is displayed.

2. See a demo installation

3. Get it up and running

Follow the steps described here.

NOTE: Please use the Firefox browser for performing the configuration steps.
There are known problems with other browsers (e.g. Safari and Chrome) that cause configuration changes not being saved properly. Sorry for this inconvenience, we're trying to fix this as soon as possible!

Log into the services console (the password is "deegree").

Go to workspaces.

Import the "utah-workspace".

Start the "deegree-workspace-utah-3.x.x".

3.1. Testing the installation

  1. Now, click the see layers link to find an OpenLayers client with an OpenStreetMap base map and various Utah layers provided by the deegree mapService.

  2. Click the + sign on the right side and activate some of the layers (e.g. Municipalities).
  3. Some layers only provide data for the Utah County, south of Salt Lake City.
  4. Check out selected WMS layers provided by this mapService and make yourself familiar with the styling rules of the WMS.

  1. Click on the link "send requests" to find a simple client interface with some example WFS requests.
  2. You may also connect to the services with a WMS/WFS client by using the OGC service address displayed on the demo installation start page.

4. Adapting the configuration

You can use the services console to adjust several configuration aspects, like service metadata (as reported in GetCapabilities responses), feature stores, layers and styles.

4.1. Change metadata

Read the short tutorial on how to change metadata. The description is based on this utahDemo.

4.2. Add a feature store

Please choose the description most suitable for your needs. All descriptions are based on this utahDemo. If you intend to do all tutorials for feature stores in a row, please note that each feature store needs to be created with a unique name.

Add a shape feature store:
Read the short tutorial on how to add a shape feature store. This is pretty straight forward and recommended for unexperienced users, as it does not involve installing and setting up a database backend.

Add a SimpleSQL feature store:
Read the short tutorial on how to add a SimpleSQL feature store. The SimpleSQL feature store can be used with any spatial SQL database that supports WKT/WKB geometry representations and BBOX queries, like PostGIS, Oracle Spatial or MySQL. There are however some limitations/requirements described in the introduction of this tutorial.

Add a PostGIS feature store:
TBD: Step-by-step guide

4.3. Add a new layer

Read the short tutorial on how to add a layer. The description is based on this utahDemo.

4.4. Add layer styling

Read the short tutorial on how to add layer styling. The description is based on this utahDemo.

4.5. Change layer styling

Read the short tutorial on how to change layer styling. The description is based on this utahDemo.

4.6. Remove an existing feature store

TBD: Step-by-step guide

4.7. Remove an existing layer

TBD: Step-by-step guide

4.8. Further reading

You may also want to refer to the documentation about the so-called deegree workspace (the configuration directory). If you followed the above steps, your workspace will be located in the folder deegree-utah-demo/webapps/ROOT/WEB-INF/workspace (tar.gz and zip downloads) or the folder $TOMCAT_HOME/webapps/deegree-utah-demo-3.0.0/WEB-INF/workspace (WAR deployment).

5. Selected WMS layers

Municipalities

County Names

Railroads

DEM30

Elevation Contours

Springs

Satellite Provo

Cities

Weather Stations

GetMap request

TIME=2009-01-01

TIME=2009-01-03

response image

weather stations on 2009-01-01 served by deegree 3 mapService

weather stations on 2009-01-03 served by deegree 3 mapService

Dynamic Layers

6. Examples for SLD 1.1.0 in WMS GetMap request (Advanced)

At the wiki-page HowToUseWMSGetMapRequestsWithSLD it is described how Styled Layer Descriptor (SLD) is used in a WMS GetMap request. Here are some examples for HTTP GET with SLDs based on the utah demo which include <NamedLayer>, <NamedStyle>, <UserStyle> and <Filter>.

6.1. SLD with NamedLayer & NamedStyle

You can embed the below-mentioned SLD in your GetMap request with the following KVP:

&SLD=http://download.deegree.org/deegree3/sld/utah_counties_sld_1_1_0_nl_ns.xml

This SLD contains a reference to the WMS-layer with the well-known name "CountyBoundaries" and a reference to the layer-style with the well-known name "2". By this you can choose one of several layer-styles. In this case the WMS-layer has got two styles: "1" and "2". Style "1" draws the county boundaries red whereas style "2" draws them yellow.

<?xml version="1.0" encoding="UTF-8"?>
<sld:StyledLayerDescriptor 
  xmlns:sld="http://www.opengis.net/sld" 
  xmlns:se="http://www.opengis.net/se"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns="http://www.opengis.net/sld" version="1.1.0"
  xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd">
  <sld:NamedLayer>
    <!-- This styling file shows the use of SLD with reference to a WMS-layer and a layer-style
     of the utah-demo -->
    <se:Name>CountyBoundaries</se:Name>

    <sld:NamedStyle>
      <se:Name>2</se:Name>
    </sld:NamedStyle>
    
  </sld:NamedLayer>
</sld:StyledLayerDescriptor>

6.2. SLD with NamedLayer, NamedStyle & Filter

You can embed the below-mentioned SLD in your GetMap request with the following KVP:

&SLD=http://download.deegree.org/deegree3/sld/utah_counties_sld_1_1_0_nl_ns_lfc.xml

This SLD contains, additionally to the SLD above, a filter on the object with the well-known name "Morgan" of the property "app:NAME" of the feature type "app:SGID100_CountyBoundaries_edited". By this way you can easily highlight a specific object.

<?xml version="1.0" encoding="UTF-8"?>
<sld:StyledLayerDescriptor 
  xmlns:sld="http://www.opengis.net/sld" 
  xmlns:se="http://www.opengis.net/se"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xmlns:app="http://www.deegree.org/app"
  xmlns:ogc="http://www.opengis.net/ogc" 
  xmlns="http://www.opengis.net/sld" version="1.1.0"
  xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd">
  <sld:NamedLayer>
    <!-- This styling file shows the use of SLD with reference to a WMS-layer and a layer-style
     of the utah-demo and in addition to that a filter on a specific object-->
    <se:Name>CountyBoundaries</se:Name>

    <sld:LayerFeatureConstraints>
      <sld:FeatureTypeConstraint>
        <se:FeatureTypeName>app:SGID100_CountyBoundaries_edited</se:FeatureTypeName>

        <ogc:Filter>
          <ogc:PropertyIsEqualTo>
            <ogc:PropertyName>app:NAME</ogc:PropertyName>
            <ogc:Literal>Morgan</ogc:Literal>
          </ogc:PropertyIsEqualTo>
        </ogc:Filter>
        
      </sld:FeatureTypeConstraint>
    </sld:LayerFeatureConstraints>
    
    <sld:NamedStyle>
      <se:Name>2</se:Name>
    </sld:NamedStyle>
    
  </sld:NamedLayer>
</sld:StyledLayerDescriptor>

6.3. SLD with NamedLayer, UserStyle & Filter

You can embed the below-mentioned SLD in your GetMap request with the following KVP:

&SLD=http://download.deegree.org/deegree3/sld/utah_counties_sld_1_1_0_nl_us_lfc.xml

To embed the same SLD but without the <Filter> use these KVP:

&SLD=http://download.deegree.org/deegree3/sld/utah_counties_sld_1_1_0_nl_us.xml

This SLD contains a reference to the WMS-layer with the well-known name "CountyBoundaries" and a user-generated <UserStyle>. By this you can draw the features of the layer in your own way. In this case the <UserStyle> displays all county boundaries in green. There is the same filter in this SLD like in the SLD above. By this way you can easily highlight a specific object and draw it in your own <UserStyle>.

<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<sld:StyledLayerDescriptor 
  xmlns:sld="http://www.opengis.net/sld" 
  xmlns:se="http://www.opengis.net/se" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xmlns:app="http://www.deegree.org/app" 
  xmlns:ogc="http://www.opengis.net/ogc" 
  xmlns="http://www.opengis.net/sld" version="1.1.0"
  xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd">
  <sld:NamedLayer>
    <!-- This styling file shows the use of SLD with reference to a WMS-layer of the utah-demo,
     a user-generated UserStyle and, in addition to that, a Filter on a specific object -->
    <se:Name>CountyBoundaries</se:Name>

    <sld:LayerFeatureConstraints>
      <sld:FeatureTypeConstraint>
        <se:FeatureTypeName>app:SGID100_CountyBoundaries_edited</se:FeatureTypeName>

        <ogc:Filter>
          <ogc:PropertyIsEqualTo>
            <ogc:PropertyName>app:NAME</ogc:PropertyName>
            <ogc:Literal>Morgan</ogc:Literal>
          </ogc:PropertyIsEqualTo>
        </ogc:Filter>

      </sld:FeatureTypeConstraint>
    </sld:LayerFeatureConstraints>
    
    <sld:UserStyle>
      <se:Name>CountyBoundaries_green</se:Name>
      <se:FeatureTypeStyle>
        <se:Rule>
          <se:PolygonSymbolizer>
            <se:Stroke>
              <se:SvgParameter name="stroke">#00ff00</se:SvgParameter>
              <se:SvgParameter name="stroke-opacity">1.0</se:SvgParameter>
              <se:SvgParameter name="stroke-width">1.5</se:SvgParameter>
            </se:Stroke>
          </se:PolygonSymbolizer>
        </se:Rule>
      </se:FeatureTypeStyle>
    </sld:UserStyle>
    
  </sld:NamedLayer>
</sld:StyledLayerDescriptor>

7. Client Compatibility

The deegree 3 utahDemo has successfully been tested with the following WMS/WFS-clients:

8. Help

If you run into any problems, please let us know, so we can provide support, improve this documentation or the application itself.


CategoryDeegree3


2018-04-20 12:05