Click or drag to resize

IDBConfigWriterAddUpdateWMSFromCapabilitiesLayer Method

Add a WMS From Capabilities Layer, or update an existing layer.

Namespace:  Cadcorp.Configuration.Connectors
Assembly:  Cadcorp.Configuration (in Cadcorp.Configuration.dll) Version: 9.0.2618.0 (9.0.2618.0)
Syntax
int AddUpdateWMSFromCapabilitiesLayer(
	string mapConfiguration,
	int layerId,
	string name,
	string[] url,
	bool individualDataLayers,
	bool individualBaseLayers,
	int baseLayerImageFormatID,
	int dataLayerImageFormatID,
	bool onlyAddLeafLayers,
	bool dataLayersInitiallyVisible,
	int transitionEffectID,
	bool expandBaseLayerGroup,
	bool expandDataLayerGroup,
	bool singleTile,
	string copyright,
	int buffer,
	string initialVisibleBaseLayer,
	string sld,
	bool showLegendButton,
	bool imageCheckBox,
	bool compositeDataLayer,
	int projectionID,
	string exceptions,
	int tileWidth,
	int tileHeight,
	bool sortGroups,
	bool useProxy,
	string proxyUrl,
	string proxyUserName,
	string proxyPassword
)

Parameters

mapConfiguration
Type: SystemString
Map Configuration Name
layerId
Type: SystemInt32
Layer ID, -1 for new layer
name
Type: SystemString
Layer Name
url
Type: SystemString
WMS URL
individualDataLayers
Type: SystemBoolean
Show individual data layers
individualBaseLayers
Type: SystemBoolean
Show individual base layers
baseLayerImageFormatID
Type: SystemInt32
Base Layer Image Format ID
dataLayerImageFormatID
Type: SystemInt32
Data Layer Image Format ID
onlyAddLeafLayers
Type: SystemBoolean
Only add leaf layers?
dataLayersInitiallyVisible
Type: SystemBoolean
Are the data layers initially visible?
transitionEffectID
Type: SystemInt32
Transition Effect ID
expandBaseLayerGroup
Type: SystemBoolean
Expand Base Layer Group
expandDataLayerGroup
Type: SystemBoolean
Expand Data Layer Group
singleTile
Type: SystemBoolean
Load map as single tile
copyright
Type: SystemString
Copyright Text
buffer
Type: SystemInt32
Buffer
initialVisibleBaseLayer
Type: SystemString
Initial Visible Base Layer
sld
Type: SystemString
SLD
showLegendButton
Type: SystemBoolean
Show Legend Button?
imageCheckBox
Type: SystemBoolean
Show Image Checkbox?
compositeDataLayer
Type: SystemBoolean
Load as composite data layer?
projectionID
Type: SystemInt32
Projection ID
exceptions
Type: SystemString
Exceptions
tileWidth
Type: SystemInt32
Tile Width
tileHeight
Type: SystemInt32
Tile Height
sortGroups
Type: SystemBoolean
Sort Groups?
useProxy
Type: SystemBoolean
Use a proxy?
proxyUrl
Type: SystemString
Proxy URL
proxyUserName
Type: SystemString
Proxy User Name (if authenticated)
proxyPassword
Type: SystemString
Proxy Password (if authenticated)

Return Value

Type: Int32
Number of Rows Affected.
See Also