Package com.luciad.wms.client.model
Class TLcdWMSDataSource
java.lang.Object
com.luciad.wms.client.model.TLcdWMSDataSource
- All Implemented Interfaces:
ILcdDataSource
Data source representation for a WMS, with one or more layers.
The WMS data source requires as a minimum:
- The URI location of the WMS.
- One or more layers or a Styled Layer Descriptor.
- Since:
- 2017.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder to createTLcdWMSDataSource
instances.static final class
Representation of a WMS layer. -
Method Summary
Modifier and TypeMethodDescriptionReturns abuilder
pre-initialized with the values of this instance.boolean
Returns a string description of the data source.Returns the format that should be used when decoding the WMS layer.Returns the list of WMS layers to load.Returns the Styled Layer Descriptor.Returns the Styled Layer Descriptor as string representation.getURI()
Returns the URI of the WMS server.int
hashCode()
boolean
Returns true if the bounding box coordinates should be inverted in case the world reference of the request is EPSG:4326 and the WMS version is 1.3.0.boolean
Returns if the WMS is request to return an image with a transparent background.static TLcdWMSDataSource.Builder
Returns abuilder
to create new instances.toString()
-
Method Details
-
getDescription
Description copied from interface:ILcdDataSource
Returns a string description of the data source. This will typically be used in a GUI, or in error and warning messages.- Specified by:
getDescription
in interfaceILcdDataSource
- Returns:
- a String describing the data source.
-
newBuilder
Returns abuilder
to create new instances.- Returns:
- A builder.
-
asBuilder
Returns abuilder
pre-initialized with the values of this instance.- Returns:
- A builder initialized to copy this object.
-
getURI
Returns the URI of the WMS server.- Returns:
- The URI of the WMS server.
-
getLayers
Returns the list of WMS layers to load. The layers are ordered from bottom to top.- Returns:
- the list of WMS layers to load.
-
getFormat
Returns the format that should be used when decoding the WMS layer.A
null
return value indicates the format should be auto-detected.- Returns:
- The format to use, possibly
null
.
-
getSLDStyledLayerDescriptor
Returns the Styled Layer Descriptor. May benull
.- Returns:
- the Styled Layer Descriptor. May be
null
. - Since:
- 2023.1
-
getStyledLayerDescriptor
Returns the Styled Layer Descriptor as string representation. May benull
.- Returns:
- the Styled Layer Descriptor as string representation. May be
null
.
-
isTransparent
public boolean isTransparent()Returns if the WMS is request to return an image with a transparent background.- Returns:
- if the WMS is request to return an image with a transparent background.
- See Also:
-
isInvertXYForEPSG4326
public boolean isInvertXYForEPSG4326()Returns true if the bounding box coordinates should be inverted in case the world reference of the request is EPSG:4326 and the WMS version is 1.3.0. This means that instead of x=lon and y=lat, x=lat and y=lon will be used.- Returns:
- True if coordinates are inverted for EPSG:4326.
- See Also:
-
toString
-
equals
-
hashCode
public int hashCode()
-