Class TLcdRasterImageBuilder

java.lang.Object
com.luciad.imaging.TLcdRasterImageBuilder

public class TLcdRasterImageBuilder extends Object
Builder for creating images from rasters. Parameters can be either set directly or derived from a provided model. Four image types are supported and can be built via their respective "build" method. Multilevel images require a multilevel raster to be set, otherwise a regular raster is needed.

You can find the other available builders on com.luciad.imaging.

Since:
2015.0
  • Method Details

    • newBuilder

      public static TLcdRasterImageBuilder newBuilder()
      Create a new image builder.
      Returns:
      a new builder instance
    • buildBasicImage

      public ALcdBasicImage buildBasicImage() throws IllegalStateException
      Create a new basic image.
      Returns:
      a new image
      Throws:
      IllegalStateException - if no source raster is defined or when the geo reference or image semantics have not been set and no model is available to derive them from
    • buildImageMosaic

      public ALcdImageMosaic buildImageMosaic() throws IllegalStateException
      Create a new image mosaic.
      Returns:
      a new image
      Throws:
      IllegalStateException - if no source raster is defined or when the geo reference or image semantics have not been set and no model is available to derive them from
    • buildMultilevelImage

      public ALcdMultilevelImage buildMultilevelImage() throws IllegalStateException
      Create a new multilevel image.
      Returns:
      a new image
      Throws:
      IllegalStateException - if no source raster is defined or when the geo reference or image semantics have not been set and no model is available to derive them from
    • buildMultilevelImageMosaic

      public ALcdMultilevelImageMosaic buildMultilevelImageMosaic() throws IllegalStateException
      Create a new multilevel image mosaic.
      Returns:
      a new image
      Throws:
      IllegalStateException - if no source raster is defined or when the geo reference or image semantics have not been set and no model is available to derive them from
    • raster

      public TLcdRasterImageBuilder raster(ILcdRaster aRaster)
      Set the source raster to create images from.
      Parameters:
      aRaster - the raster to use
      Returns:
      this builder
    • raster

      public TLcdRasterImageBuilder raster(ILcdMultilevelRaster aMultilevelRaster)
      Set the source raster to create images from.
      Parameters:
      aMultilevelRaster - the multilevel raster to use
      Returns:
      this builder
    • model

      public TLcdRasterImageBuilder model(ILcdModel aModel)
      Set the fallback model to derive unavailable parameters from.
      Parameters:
      aModel - the model to use
      Returns:
      this builder
    • imageReference

      public TLcdRasterImageBuilder imageReference(ILcdModelReference aImageReference)
      Set the image reference.
      Parameters:
      aImageReference - the geographic reference
      Returns:
      this builder
    • semantics

      public TLcdRasterImageBuilder semantics(List<ALcdBandSemantics> aSemantics)
      Set the image band semantics.
      Parameters:
      aSemantics - the band semantics
      Returns:
      this builder
    • samplingMode

      public TLcdRasterImageBuilder samplingMode(ELcdImageSamplingMode aSamplingMode)
      Set the image sampling mode.

      The default value is ELcdImageSamplingMode#AREA.

      Parameters:
      aSamplingMode - the sampling mode
      Returns:
      this builder
    • levelRelationship

      public TLcdRasterImageBuilder levelRelationship(ELcdLevelRelationship aLevelRelationship)
      Set the level relationship
      Parameters:
      aLevelRelationship - the level relationship
      Returns:
      this builder