Class WmsRequestBuilder
java.lang.Object
de.latlon.ets.wms13.core.util.request.WmsRequestBuilder
Creates WMS requests
- Author:
- Lyn Goltz
-
Method Summary
Modifier and TypeMethodDescriptionstatic WmsKvpRequestbuildGetFeatureInfoRequest(Document wmsCapabilities, List<LayerInfo> layerInfos) Creates a GetFatureInfo request with random parameters from the WMS Capabilities.static WmsKvpRequestbuildGetFeatureInfoRequest(Document wmsCapabilities, List<LayerInfo> layerInfos, String format) Creates a GetFatureInfo request with random parameters from the WMS Capabilities.static WmsKvpRequestbuildGetMapRequest(Document wmsCapabilities, List<LayerInfo> layerInfos) Creates a GetMap request with random parameters from the WMS Capabilities.static BoundingBoxfindBoundingBox(LayerInfo layerInfo) static StringgetSupportedFormat(Document wmsCapabilities, String opName) static StringgetSupportedTransparentFormat(Document wmsCapabilities, String opName)
-
Method Details
-
buildGetFeatureInfoRequest
public static WmsKvpRequest buildGetFeatureInfoRequest(Document wmsCapabilities, List<LayerInfo> layerInfos) Creates a GetFatureInfo request with random parameters from the WMS Capabilities.- Parameters:
wmsCapabilities- the capabilities of the WMS, nevernulllayerInfos- the parsed layerInfos, nevernull- Returns:
- a GetFeatureInfo request with random parameters, never
null
-
buildGetFeatureInfoRequest
public static WmsKvpRequest buildGetFeatureInfoRequest(Document wmsCapabilities, List<LayerInfo> layerInfos, String format) Creates a GetFatureInfo request with random parameters from the WMS Capabilities.- Parameters:
wmsCapabilities- the capabilities of the WMS, nevernulllayerInfos- the parsed layerInfos, nevernullformat- the format to use, nevernull, if the format is not supported by the WMS, the assertion fails- Returns:
- a GetFeatureInfo request with random parameters, never
null
-
buildGetMapRequest
public static WmsKvpRequest buildGetMapRequest(Document wmsCapabilities, List<LayerInfo> layerInfos) Creates a GetMap request with random parameters from the WMS Capabilities.- Parameters:
wmsCapabilities- the capabilities of the WMS, nevernulllayerInfos- the parsed layerInfos, nevernull- Returns:
- a GetMap request with random parameters, never
null
-
getSupportedFormat
- Parameters:
wmsCapabilities- the capabilities of the WMS, nevernullopName- /tegeoinfoGetMapTp-116 the name of the operation, nevernull- Returns:
- one of the supported formats of the operation,
nullif no format is specified
-
getSupportedTransparentFormat
- Parameters:
wmsCapabilities- the capabilities of the WMS, nevernullopName- the name of the operation, nevernull- Returns:
- one of the supported formats of the operation, supports transparency,
nullif no format is specified or no format supporting transparency is configured
-
findBoundingBox
- Parameters:
layerInfo- to retrieve the bbox from, nevernull- Returns:
- one if the
BoundingBoxof the layer, nevernull
-