Class TLfnRasterAssetMetadata.RasterAssetPart.Builder

Enclosing class:
TLfnRasterAssetMetadata.RasterAssetPart

A builder for raster asset parts.
Since:
2014.0
  • Method Details

    • all

      Sets all this builder's fields from a given template raster asset part.
      Overrides:
      all in class ALfnAssetMetadata.AssetPart.Builder<TLfnRasterAssetMetadata.Builder,TLfnRasterAssetMetadata.RasterAssetPart.Builder,TLfnRasterAssetMetadata.RasterAssetPart>
      Parameters:
      aTemplate - the template raster asset part
      Returns:
      this builder
    • pixelDensity

      public TLfnRasterAssetMetadata.RasterAssetPart.Builder pixelDensity(double aPixelDensity)
      Sets the pixel density of the raster asset part being built by this builder.
      Parameters:
      aPixelDensity - the pixel density of the raster asset part being built by this builder
      Returns:
      this builder
    • resolutions

      Sets the resolutions of the raster asset part being built by this builder. Use multiple resolutions for multi-leveled data, one resolution for each level. The resolutions do not need to be in any particular order. It is recommended to list the order as they are listed in the source data. Usually, this means they will be ordered from low to high resolution, but this is not strictly required.
      Parameters:
      aResolutions - the resolutions of the raster asset part being built by this builder
      Returns:
      this builder
      Since:
      2016.0
      See Also:
    • resolutions

      public TLfnRasterAssetMetadata.RasterAssetPart.Builder resolutions(Collection<? extends TLfnResolution> aResolutions)
      Sets the resolutions of the raster asset part being built by this builder. Use multiple resolutions for multi-leveled data, one resolution for each level. The resolutions do not need to be in any particular order. It is recommended to list the order as they are listed in the source data. Usually, this means they will be ordered from low to high resolution, but this is not strictly required.
      Parameters:
      aResolutions - the resolutions of the raster asset part being built by this builder
      Returns:
      this builder
      Since:
      2016.0
    • parameters

      Sets the multivalued parameters of the raster asset part being built by this builder. Multivalued parameters are only relevant for multivalued raster data such as GRIB.
      Parameters:
      aParameters - the multivalued parameters
      Returns:
      this builder
    • parameters

      Sets the multivalued parameters of the raster asset part being built by this builder. Multivalued parameters are only relevant for multivalued raster data such as GRIB.
      Parameters:
      aParameters - the multivalued parameters
      Returns:
      this builder
    • dimensions

      public TLfnRasterAssetMetadata.RasterAssetPart.Builder dimensions(Collection<? extends ILcdDimension> aDimensions)
      Sets the dimensions of the raster asset part being built by this builder. Dimensions are used to model multi-dimensional data such as NetCDF weather data. You should set the dimensions to those given by ILcdMultiDimensional.getDimensions().

      NetCDF weather data typically contains multiple rasters: one for each combination of level and time.

      • level: height in the atmosphere the sample values were taken
      • time: the time of day the sample values were taken

      Because the dimensions are marshaled there are two points that you should take into account;

      • The given ILcdDimension should have a finite set of possible values: ILcdDimension.getValues() must be finite. This is virtually always the case in practice.
      • The type that you provide to TLcdDimensionAxis.Builder.type(Class) is instantiated afterwards on the runtime with its fully qualified class name. Therefore you should never obfuscate the type if you are using a user defined classes for it. As an example, implementations of ILcdISO19103Measure are not obfuscated because they are usually used for vertical measure types for the dimension axes.

      Parameters:
      aDimensions - the dimensions, each defining a finite set of possible values, may be empty but never null
      Returns:
      this builder
      Since:
      2016.0
      See Also:
    • samplingMode

      Sets the sampling mode for this asset part. The default sampling mode is ELcdImageSamplingMode.AREA. Elevation data is typically point-sampled, in which case you should use ELcdImageSamplingMode.POINT.
      Parameters:
      aSamplingMode - the sampling mode to set, must not be null
      Returns:
      this builder
      Since:
      2015.0
    • tileSetStructure

      Sets a tile set structure on this builder.
      Parameters:
      aTileSetStructure - the tile set structure to set, may be null
      Returns:
      this builder
      Since:
      2015.0
    • bandSemantics

      public TLfnRasterAssetMetadata.RasterAssetPart.Builder bandSemantics(Collection<? extends ALcdBandSemantics> aBandSemantics)
      Sets the band semantics of the asset part on this builder.
      Parameters:
      aBandSemantics - the band semantics to set, may be empty but never null
      Returns:
      this builder
      Since:
      2016.0
    • index

      Sets the element index of a specific element in a model, in case the asset part being built specifies a single element of a model rather than the whole model itself. The default is 0. When a model has multiple elements, every element is usually modeled as a separate asset part with a common source name. In such a case, an asset part represents a single element of a model rather than the whole model.

      In case of single-element models, or when you want this asset part to represent the whole model, leave this to 0.

      Parameters:
      aIndex - the index to set, must be positive (including 0)
      Returns:
      this builder
      Since:
      2016.0