Class TLfnRasterAssetMetadata.RasterAssetPart.Builder
java.lang.Object
com.luciad.fusion.tilestore.metadata.ALfnAssetMetadata.AssetPart.Builder<TLfnRasterAssetMetadata.Builder,TLfnRasterAssetMetadata.RasterAssetPart.Builder,TLfnRasterAssetMetadata.RasterAssetPart>
com.luciad.fusion.tilestore.metadata.TLfnRasterAssetMetadata.RasterAssetPart.Builder
- Enclosing class:
TLfnRasterAssetMetadata.RasterAssetPart
public static final class TLfnRasterAssetMetadata.RasterAssetPart.Builder
extends ALfnAssetMetadata.AssetPart.Builder<TLfnRasterAssetMetadata.Builder,TLfnRasterAssetMetadata.RasterAssetPart.Builder,TLfnRasterAssetMetadata.RasterAssetPart>
A builder for raster asset parts.
- Since:
- 2014.0
-
Method Summary
Modifier and TypeMethodDescriptionall
(TLfnRasterAssetMetadata.RasterAssetPart aTemplate) Sets all this builder's fields from a given template raster asset part.bandSemantics
(Collection<? extends ALcdBandSemantics> aBandSemantics) Sets the band semantics of the asset part on this builder.dimensions
(Collection<? extends ILcdDimension> aDimensions) Sets the dimensions of the raster asset part being built by this builder.index
(int aIndex) 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.parameters
(TLcdEarthMultivaluedDataParameter... aParameters) Sets the multivalued parameters of the raster asset part being built by this builder.parameters
(Collection<? extends TLcdEarthMultivaluedDataParameter> aParameters) Sets the multivalued parameters of the raster asset part being built by this builder.pixelDensity
(double aPixelDensity) Deprecated.resolutions
(TLfnResolution... aResolutions) Sets the resolutions of the raster asset part being built by this builder.resolutions
(Collection<? extends TLfnResolution> aResolutions) Sets the resolutions of the raster asset part being built by this builder.samplingMode
(ELcdImageSamplingMode aSamplingMode) Sets the sampling mode for this asset part.tileSetStructure
(TLfnRasterAssetMetadata.TileSetStructure aTileSetStructure) Sets a tile set structure on this builder.Methods inherited from class com.luciad.fusion.tilestore.metadata.ALfnAssetMetadata.AssetPart.Builder
boundingBox, buildAssetPart, location, location, root, root
-
Method Details
-
all
public TLfnRasterAssetMetadata.RasterAssetPart.Builder all(TLfnRasterAssetMetadata.RasterAssetPart aTemplate) Sets all this builder's fields from a given template raster asset part.- Overrides:
all
in classALfnAssetMetadata.AssetPart.Builder<TLfnRasterAssetMetadata.Builder,
TLfnRasterAssetMetadata.RasterAssetPart.Builder, TLfnRasterAssetMetadata.RasterAssetPart> - Parameters:
aTemplate
- the template raster asset part- Returns:
- this builder
-
pixelDensity
Deprecated.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
public TLfnRasterAssetMetadata.RasterAssetPart.Builder parameters(TLcdEarthMultivaluedDataParameter... aParameters) 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
public TLfnRasterAssetMetadata.RasterAssetPart.Builder parameters(Collection<? extends TLcdEarthMultivaluedDataParameter> aParameters) 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 byILcdMultiDimensional.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 ofILcdISO19103Measure
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 nevernull
- Returns:
- this builder
- Since:
- 2016.0
- See Also:
-
samplingMode
public TLfnRasterAssetMetadata.RasterAssetPart.Builder samplingMode(ELcdImageSamplingMode aSamplingMode) Sets the sampling mode for this asset part. The default sampling mode isELcdImageSamplingMode.AREA
. Elevation data is typically point-sampled, in which case you should useELcdImageSamplingMode.POINT
.- Parameters:
aSamplingMode
- the sampling mode to set, must not benull
- Returns:
- this builder
- Since:
- 2015.0
-
tileSetStructure
public TLfnRasterAssetMetadata.RasterAssetPart.Builder tileSetStructure(TLfnRasterAssetMetadata.TileSetStructure aTileSetStructure) Sets a tile set structure on this builder.- Parameters:
aTileSetStructure
- the tile set structure to set, may benull
- 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 nevernull
- 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
-
resolutions(com.luciad.fusion.tilestore.metadata.TLfnResolution...)
instead