Package com.luciad.formats.wms
Class WmsDataSource
java.lang.Object
com.luciad.formats.wms.WmsDataSource
- All Implemented Interfaces:
AutoCloseable
Data source representation for a WMS, with one or more layers.
The WMS data source requires as a minimum:
- The URL location of the WMS.
- One or more
layers
.
By default the data source is configured to request images from the WMS server with a transparent background.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A builder to createWmsDataSource
instances.static final class
Represents a WMS layer with an optional style. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
finalize()
Returns the image format that should be used when decoding the WMS layer.List
<@NotNull WmsDataSource.Layer> Returns the list of WMSlayers
to load.Returns the StyledLayer
Descriptor to use ornull
if not set.Returns the StyledLayer
Descriptor URL to use ornull
if not set.getUrl()
Returns the base URL of the WMS data source.boolean
Returns whether the WMS is requested to return an image with a transparent background.static WmsDataSource.Builder
Returns the builder class for creation of the WMS data source.
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
newBuilder
Returns the builder class for creation of the WMS data source.- Returns:
- the builder class for creation of the WMS data source.
-
getUrl
Returns the base URL of the WMS data source.- Returns:
- the base URL of the WMS data source.
-
getLayers
Returns the list of WMSlayers
to load.The layers are ordered from bottom to top.
- Returns:
- the list of WMS
layers
to load.
-
getFormat
Returns the image format that should be used when decoding the WMS layer.A
null
return value indicates the format should be auto-detected.- Returns:
- the image format that should be used when decoding the WMS layer. A
null
return value indicates the format should be auto-detected.
-
isTransparent
public boolean isTransparent()Returns whether the WMS is requested to return an image with a transparent background.- Returns:
- whether the WMS is requested to return an image with a transparent background.
-
getStyledLayerDescriptor
Returns the StyledLayer
Descriptor to use ornull
if not set.- Returns:
- The Styled
Layer
Descriptor to use ornull
if not set.
-
getStyledLayerDescriptorUrl
Returns the StyledLayer
Descriptor URL to use ornull
if not set.- Returns:
- The Styled
Layer
Descriptor URL to use ornull
if not set.
-