Interface IMultilevelTiledRasterDataRetrieverCallback


public interface IMultilevelTiledRasterDataRetrieverCallback
Interface with callback methods for the raster data retriever to call.

There is usually no need to make a user implementation. An implementation to call the methods on is provided by the raster model implementation that has been created using either a MultilevelTiledRasterModelBuilder or a QuadTreeRasterModelBuilder.

  • Method Details Link icon

    • onDataAvailable Link icon

      void onDataAvailable(@NotNull MultilevelTileCoordinate tileCoordinate, @NotNull DataEntity data)
      Call this method when you have retrieved the raster tile data in its raw form.

      Supported mime types for the raster tile data:

      Imagery:

      • image/png
      • image/jpeg
      • image/tiff (containing RGB(A))

      Elevation:

      • image/tiff (containing a single channel with floating point data)
      Parameters:
      tileCoordinate - the tile coordinate for which the raster tile data was retrieved.
      data - the raster tile data.
    • onImageAvailable Link icon

      void onImageAvailable(@NotNull MultilevelTileCoordinate tileCoordinate, @NotNull Image image)
      Call this method when you have retrieved the raster tile data and have decoded it as an image.

      Supported image types:

      Imagery:

      Elevation:

      Parameters:
      tileCoordinate - the tile coordinate for which the raster tile data was retrieved.
      image - the raster tile data decoded into an image.
    • onDataNotAvailable Link icon

      void onDataNotAvailable(@NotNull MultilevelTileCoordinate tileCoordinate)
      Call this method when there is no data available for the tile coordindate.
      Parameters:
      tileCoordinate - the tile coordinate for which there is no raster tile data.
    • onError Link icon

      void onError(@NotNull MultilevelTileCoordinate tileCoordinate, @NotNull String message)
      Call this method when there is an error to retrieve the raster tile data.
      Parameters:
      tileCoordinate - the tile coordinate for which there is no raster tile data.
      message - a message to detail what went wrong.
    • onCanceled Link icon

      void onCanceled(@NotNull MultilevelTileCoordinate tileCoordinate)
      Call this method when the request for the raster tile data was canceled.
      Parameters:
      tileCoordinate - the tile coordinate for which the request was canceled.