Class WmtsRasterLayer

All Implemented Interfaces:
AutoCloseable

public final class WmtsRasterLayer extends RasterLayer implements AutoCloseable
A WmtsRasterLayer on top of a RasterLayer, offering the possibility to obtain the context necessary for a 'GetFeatureInfo' query.

See this related article for more information and code examples.

Since:
2026.1
  • Method Details

    • finalize

      protected void finalize()
      Overrides:
      finalize in class RasterLayer
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Overrides:
      close in class RasterLayer
    • newWmtsBuilder

      @NotNull public static WmtsRasterLayer.WmtsBuilder newWmtsBuilder()
      Returns a new builder for creating a WmtsRasterLayer.
      Returns:
      a new builder for creating a WmtsRasterLayer.
    • asWmtsBuilder

      @NotNull public WmtsRasterLayer.WmtsBuilder asWmtsBuilder()
      Returns a new builder based on this layer instance.

      You can use this builder, for example, to create a copy of this layer.

      Note that observers will not be transferred to a new layer.

      Returns:
      a new builder based on this layer instance.
    • getWmtsModel

      @NotNull public IWmtsModel getWmtsModel()
      Returns the layer's model, which provides the raster to be presented.
      Returns:
      the layer's model, which provides the raster to be presented.
    • getFeatureInfoContext

      @Nullable public WmtsGetFeatureInfoContext getFeatureInfoContext(@NotNull Point point)
      Returns the context that is needed to perform a GetFeatureInfo request.
      Parameters:
      point - a point on the map.
      Returns:
      the context that is needed to perform a GetFeatureInfo request.