public final class WmtsDataSource extends Object implements AutoCloseable
Used for creating WMTS models.
Modifier and Type | Class and Description |
---|---|
static class |
WmtsDataSource.Builder
Builder for creating
WmtsDataSource . |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
String |
getFormat()
Returns the preferred format to request images.
|
String |
getLayer()
Returns the layer to use within the WMTS data provided by the source.
|
String |
getStyle()
Returns the style to use for the layer.
|
String |
getUrl()
Returns the base URL of the WMTS data source.
|
static WmtsDataSource.Builder |
newBuilder()
Returns the builder class for creation of the WMTS data source.
|
public void close()
close
in interface AutoCloseable
@NotNull public static WmtsDataSource.Builder newBuilder()
@NotNull public String getUrl()
@Nullable public String getLayer()
When no layer is provided, the first layer from the WMTS is used.
@Nullable public String getStyle()
When no style is selected, the default advertised in the capabilities is used.
@Nullable public String getFormat()
When specified and the layer offers the specified format, it is used when requesting images.