Class JMapServerRasterLayer

All Implemented Interfaces:
LayerConstants, LayerNode, Serializable, Cloneable
Direct Known Subclasses:
JMapServerArcgisLayer, JMapServerBingLayer, JMapServerEcwLayer, JMapServerGdalLayer, JMapServerGoogleLayer, JMapServerImageLayer, JMapServerOpenStreetMapLayer, JMapServerWmsLayer, JMapServerWmtsLayer

public abstract class JMapServerRasterLayer extends JMapServerLayer
See Also:
  • Field Details

    • imageFormat

      protected String imageFormat
    • imageFormatParams

      protected String imageFormatParams
    • transparencyEnabled

      protected boolean transparencyEnabled
    • backgroundColor

      protected int backgroundColor
    • rasterTransformations

      protected RasterTransformationInfo[] rasterTransformations
  • Constructor Details

    • JMapServerRasterLayer

      protected JMapServerRasterLayer(int dataSourceId)
    • JMapServerRasterLayer

      public JMapServerRasterLayer(RasterDataSourceInfo dataSourceInfo)
  • Method Details

    • getParameters

      public RasterParameters getParameters()
    • getRasterTransformations

      public RasterTransformationInfo[] getRasterTransformations()
    • setRasterTransformations

      public void setRasterTransformations(RasterTransformationInfo[] rasterTransformations)
    • getGeometryType

      public int getGeometryType()
    • toLayerInfo

      public abstract RasterLayerInfo toLayerInfo()
      Specified by:
      toLayerInfo in class JMapServerLayer
    • toLayerInfo

      protected void toLayerInfo(LayerInfo layerInfo)
      Copies all properties from this server layer to the specified layer info.
      Overrides:
      toLayerInfo in class JMapServerLayer
      Parameters:
      layerInfo - the layer info to copy properties into.
    • clone

      protected void clone(JMapServerLayer serverLayer)
      Clones all properties from this server layer into the specified JMapServerLayer instance.
      Overrides:
      clone in class JMapServerLayer
      Parameters:
      serverLayer - the instance that will receive cloned properties.
    • update

      public void update(Projection projectProjection)
      Specified by:
      update in class JMapServerLayer
    • setDataSourceInfo

      public void setDataSourceInfo(SpatialDataSourceInfo dataSourceInfo)
      Overrides:
      setDataSourceInfo in class JMapServerLayer
      Parameters:
      dataSourceInfo - The dataSourceInfo to set.
    • validateObjectImpl

      protected void validateObjectImpl()
      Overrides:
      validateObjectImpl in class JMapServerLayer
    • isDataStructureDifferent

      protected boolean isDataStructureDifferent(JMapServerLayer oldLayer)
      Description copied from class: JMapServerLayer
      Compare with database-persisted layer to determine if some properties have changed. If any data-sensible property has changed, we need to update last update time to notify remote servers that layer data needs to be updated.
      Overrides:
      isDataStructureDifferent in class JMapServerLayer
      Returns:
      true if we need to update property lastUpdateTime, false otherwise.