Skip to main content

WMS/WFS API

The Cocon Fiber WMS/WFS API exposes assets using the WMS/WFS standard. The features currently exposed via the WMS/WFS API are listed below.

API Security

The WMS/WFS APIs currently use a different mechanism for authentication than the other APIs; HTTP Basic Authentication. This means that for these APIs a username and password have to be supplied, instead of the regular authentication headers.

So in order for a consuming system to authenticate itself to the WMS/WFS APIs, it has to provide authentication information via the following HTTP request header parameter:

  • Authorization (containing username and password according to the BasicAuth header format)
note

Values for both parameters are provided by Speer IT. 

Usage Guidelines

There are certain specifics with regard to the use of the WMS/WFS API, which are described below.

General usage

The general structure of a WFS request is as follows:

GET wmswfsapi/ows?service=WFS&version=1.0.0&request=GetFeature&typeName={feature_name}&bbox={bounding_box}&maxFeatures={max_number_of_features}&outputFormat=application/json|

The general structure of a WMS request is as follows:

GET wmswfsapi/wms?service=WMS&version=1.1.0&request=GetMap&layers={feature_name}&bbox={bounding_box}&width=380&height=768&srs=EPSG%3A3044&styles=&format=image%2Fpng|
note

Refer to https://geoserver.org/ for more information about the available options for WMS and WFS requests.

Available WMS/WFS features

The WMS/WFS API exposes the following features:

FeatureGeometry type(s)AttributesWMS/WFSNotes
AccesspointPointId (text)
Name (text)
Type (text)
Stage (number)
ProjectName (text)
WFS
BuildingPolygonId (text)
Name (text)
ComplexName (text)
Type (text)
Stage (number)
ProjectName (text)
WMS & WFS
CableLineId (text)
Name (text)
Type (text)
Stage (number)
ProjectName (text)
NumberOfFibers (number)
NumberOfAvailableFibers (number)
Length (number)
EndpointNames (text)
WFSThe EndpointNames are the names of the endpoints on which this cable ends, concatenated by a comma & space.
DrillingLineId (text)
Name (text)
Type (text)
Stage (number)
ProjectName (text)
ExternalOwner (text)
WMS & WFS
DuctLineId (text)
Name (text)
DuctTypeName (text)
NumberOfAvailableInnerducts (number)
Length (number)
ProjectName (text)
LocationNames (text)
WFSThe LocationNames property contains the names of the locations the duct is connected to, concatenated by a comma & space.
EnclosurePointId (text)
Name (text)
Type (text)
LocationName (text)
Stage (number)
ProjectName (text)
WFS
FramePoint & PolygonId (text)
Name (text)
Type (text)
LocationName (text)
Stage (number)
ProjectName (text)
WFSFrames contained in Accesspoints will be represented with a Point geometry.
Frames contained in Buildings will be represented with a Polygon geometry.
LegalInterestLineWMS & WFSJust geometry.
note

Availability of features and format (WMS or WFS) may depend on API subscription limitations.