Configuring WFS

GeoMedia WebMap Administrator Guide

HGD_Variant
16.00
HGD_Product
GeoMedia WebMap
HGD_Portfolio_Suite
Platform

The WFS Web service template is constructed so that a service instantiated using the Administration Console with the demo data works with some small modifications of the web.config file. For the WFS Web service to work after instantiating with the demo data works, the following attribute needs to be configured by entering the appropriate value, depending on the WFS Service Source, into the following attribute:

  • applicationId

Sample configuration:

<WFSBasicOriginatingPipe name="gwmOrigPipe" applicationId="WFS" firstPipe="false">
<CRSStore storeName="globalStore" />
</WFSBasicOriginatingPipe>

The WFS configuration file consists of the following configuration sections:

  • SDIProFacade – Mandatory
  • log4net – Optional
  • GlobalCRSStore – Optional
  • LogPipe (member of ‘pipes’ section group) – Optional
  • QoSPipe (member of ‘pipes’ section group) – Optional
  • WFSBasicOrigPipe (member of ‘pipes’ section group) – Mandatory

serviceModel

This section contains the Windows Communication Foundation services endpoints.

See SDIProFacade in the Configuring Common Sections topic for information on configuring this element.

Running the Default Service:

You do not have to change the configuration to run a default service.

SDIProFacade

This section contains the MessageAnalyzers, Endpoints, and Redirector.

To enable WFS-T functionality, the WFS service should run on GeoMedia WebMap (available in Advantage and Professional version only), and the Warehouse connection should be either read-write Oracle or read-write SQL Server.

See the SDIProFacade in the Configuring Common Sections topic for information on configuring this element.

Running the Default Service

You do not have to change the configuration to run a default service.

log4net

This section is used to set up the log4net environment. Log4net is a tool to help the programmer output log statements to a variety of output targets.

See the log4net in the Configuring Common Sections topic for information on configuring this element.

Running the Default Service:

You do not have to change the configuration to run a default service.

GlobalCRSStore

This section is used to configure the global coordinate systems store.

light_bulb_icon If you use any coordinate system that is not supported by default or you experience any problems related to coordinates order or coordinate system transformation, you should add your coordinate system file (CSF) to the GlobalCRSStore configuration.

See the GlobalCRSStore in the Configuring Common Sections topic for information on configuring this element.

Running the Default Service:

You do not have to change the configuration to run a default service.

LogPipe

This section is used to configure LogPipe, which provides message logging.

See the LogPipe in the Configuring Common Sections topic for information on configuring this element.

Running the Default Service:

To run the default service, you change the following two parameters:

  • queuePath – The path to the MSMQ queue.
  • fileSystemStoreLocation – The network path to the files container folder.

Available Specific Parameters:

light_bulb_icon A parameter type with the question mark “?” symbol means that the value of this parameter can be NULL.

WFS Request Parameters:

Name

Type

Description

Request.TypeName

string[]

Requested feature types.

Request.Namespace

string

Requested namespace parameter.

Request.OutputFormat

string (MIME type)

Requested output format parameter.

Request.FeatureID

string[]

Requested feature IDs.

Request.ResultType

string

Requested result type.

Request.PropertyName

string[]

Requested property names.

Request.FeatureVersion

string

Requested feature version.

Request.MaxFeatures

int?

Requested max features value.

Request.SortBy

string

Requested sort by value.

Request.Filter

string

Requested filter string value.

Request.Srs

string

Requested srs.

Request.Bbox.MinX.

double?

Requested minX value

Request.Bbox.MinY

double?

Requested minY value.

Request.Bbox.MaxX

double?

Requested maxX value.

Request.Bbox.MaxY

double?

Requested maxY value.

Request.Bbox.SrsUrn

string

Requested bbox coordinate system.

QoSPipe

This section is used to configure QualityOfServicePipe, which provides performance measurement.

See the QoSPipe in the Configuring Common Sections topic for information on configuring this element.

Running the Default Service:

You do not have to change the configuration to run a default service.

Overriding the Hostname Used

This service type supports overriding its instance's base address. See the Overriding the Hostname Used section in the Common Sections Configuration section for details.

Running the Default Service:

By default, the service will attempt to autodetect its base address and you do not need to change anything in this aspect.

WFSBasicOrigPipe

This section is used to configure the WFSBasicOriginatingPipe, which serves WFS data from the specified database.

Attributes supported:

  • name – (Mandatory) Unique name of configured pipe.
  • applicationId –(Mandatory) The application ID.
  • nextPipeName – (Optional) Name of the next pipe in the chain; it must match the name attribute value of the next pipe.
  • firstPipe – (Optional) Boolean value indicating whether the pipe is the first after OGCFacadeInterface. Must be set to "true" if the current pipe is the first pipe in the chain; otherwise, "false". The default value is false.
  • countDefault – (Optional) Limits number of features returned in a GetFeature response

Running the Default Service:

You do not have to change the configuration to run a default service if the service is instantiated using the Administration Console with the demo data. Otherwise, if the service is instantiated using the Administration Console without the demo data, you have to fill the “applicationID” attribute.

WFS service metadata:

The metadata for WFS service are stored in the <appSettings> section in ServiceInfo key

<add key="ServiceInfo" 
value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;&lt;ServiceInfo xmlns=&quot;http://www.intergraph.com/GeoMedia/wscmn&quot;&gt;&lt;Title&gt;Hexagon Geospatial OGC Web Feature Service&lt;/Title&gt;&lt;OnlineResource&gt;&lt;/OnlineResource&gt;&lt;ContactInformation&gt;&lt;ContactPerson&gt;&lt;/ContactPerson&gt;&lt;ContactOrganization&gt;&lt;/ContactOrganization&gt;&lt;ContactVoiceTelephone&gt;&lt;/ContactVoiceTelephone&gt;&lt;ContactElectronicMailAddress&gt;&lt;/ContactElectronicMailAddress&gt;&lt;ContactAddress&gt;&lt;Building&gt;&lt;/Building&gt;&lt;Street&gt;&lt;/Street&gt;&lt;MunicipalitySubdivision&gt;&lt;/MunicipalitySubdivision&gt;&lt;Municipality&gt;&lt;/Municipality&gt;&lt;CountrySecondarySubdivision&gt;&lt;/CountrySecondarySubdivision&gt;&lt;CountrySubdivision&gt;&lt;/CountrySubdivision&gt;&lt;PostalCode&gt;&lt;/PostalCode&gt;&lt;Country&gt;&lt;/Country&gt;&lt;/ContactAddress&gt;&lt;/ContactInformation&gt;&lt;/ServiceInfo&gt;" 
/>