public class TLfnRasterCoverageMetadata extends ALfnCoverageMetadata implements ILcdMultiDimensional
A raster coverage may only contain raster assets.
If you want to fuse vector assets as raster, you'll need to convert all TLfnVectorAssetMetadata
to
TLfnRasterAssetMetadata
of type ELfnDataType.VECTOR
.
This includes converting all TLfnVectorAssetMetadata.VectorAssetPart
s
to TLfnRasterAssetMetadata.RasterAssetPart
s, where you need to
convert the scale to a pixel density.
ALfnCoverageMetadata
Modifier and Type | Class and Description |
---|---|
static class |
TLfnRasterCoverageMetadata.Builder
Builder for raster coverage metadata.
|
ALfnCoverageMetadata.AssetInfo
Modifier and Type | Field and Description |
---|---|
static int[] |
ALL_LEVELS
Deprecated.
fusion ignores the levels to produce.
They are now always detected automatically based on the overlapping asset's resolutions.
|
ISO19115_GCO_XML_NAMESPACE, ISO19115_GMD_XML_NAMESPACE, LTS_XML_NAMESPACE, NEW_UPDATE_SEQUENCE, XLINK_XML_NAMESPACE
Modifier and Type | Method and Description |
---|---|
void |
accept(ALfnResourceMetadataVisitor aVisitor)
Accepts the visitor for visiting this resource.
|
TLfnRasterCoverageMetadata.Builder |
asBuilder()
Creates a new builder from this resource metadata.
|
TLfnRasterCoverageMetadata.Builder |
asBuilder(ILfnResourceMetadataResolver aResolver)
Creates a new builder from this coverage metadata using a given resolver.
|
boolean |
equals(Object aObject) |
ILcdBounds |
getAreaOfInterest()
Returns the area of interest for this raster coverage.
|
List<? extends ALcdBandSemantics> |
getBandSemantics()
Gets the variable which contains band semantics data for this coverage
|
List<ILcdDimension<?>> |
getDimensions()
Gets the dimensions this coverage has to offer.
|
int[] |
getLevelsToProduce()
Deprecated.
fusion ignores this setting. The levels to produce are now always detected automatically
based on the overlapping asset's resolutions.
|
List<TLcdEarthMultivaluedDataParameter> |
getParameters()
Gets the parameters of this raster coverage.
|
ELcdImageSamplingMode |
getSamplingMode()
Gets the sampling mode of this coverage.
|
int |
getTileHeight()
Gets the tile height of this coverage.
|
int |
getTileWidth()
Gets the tile width of this coverage.
|
int |
hashCode() |
boolean |
hasSquarePixels()
Tells whether or not this coverage has square pixels.
|
boolean |
isPreserveAssetOrder()
Indicates in what order the assets linked by this coverage need to be fused on top of each other.
|
static TLfnRasterCoverageMetadata.Builder |
newBuilder()
Creates a new, empty builder.
|
static TLfnRasterCoverageMetadata.Builder |
newBuilder(ILfnResourceMetadataResolver aResolver)
Creates a new, empty builder with a given resolver.
|
static TLfnRasterCoverageMetadata.Builder |
newBuilder(TLfnRasterCoverageMetadata aTemplate)
Creates a new builder from a template.
|
static TLfnRasterCoverageMetadata.Builder |
newBuilder(TLfnRasterCoverageMetadata aTemplate,
ILfnResourceMetadataResolver aResolver)
Creates a new builder from a given template and resolver.
|
getAssetInfos, getBoundingBox, getBounds, getDataDensity, getFeatureTypeStyles, getFormat, getFormatVersion, getGeoReference, getLevel0ColumnCount, getLevel0RowCount, getMessageDigestAlgorithm, getScaleDenominators, getType, isAssetSourcesInTileStore, isIgnoreNonFatalFailures
getAbstract, getGlobalUpdateSequence, getId, getISO19115Metadata, getName, getUpdateSequence, toString
public static final int[] ALL_LEVELS
TLfnRasterCoverageMetadata.Builder.levelsToProduce(int[])
.
Even though levels higher than 23 are theoretically possible, they never occur in practice.public int getTileWidth()
OGC filter property XPath: lts:TileWidth
public int getTileHeight()
OGC filter property XPath: lts:TileHeight
public List<TLcdEarthMultivaluedDataParameter> getParameters()
OGC filter property XPath: lts:Parameter/lts:Name
, lts:Parameter/lts:Unit
, corresponding to the parameter's name and unit respectively
null
public List<ILcdDimension<?>> getDimensions()
When the coverage type is RASTER
, the dimensions represent a selected subset of all the dimensions of the
source data.
By default, the selected subset is equal to the complete set of dimensions of the source data.
When the coverage type is IMAGE
, the dimensions represent a dimensional filter.
They are a specific combination of possible values, one possible value for every dimension.
In other words, getDimensions().get(i).getValues()
will contain exactly one element for every axis.
getDimensions
in interface ILcdMultiDimensional
null
ILcdMultiDimensionalModel
public List<? extends ALcdBandSemantics> getBandSemantics()
public ILcdBounds getAreaOfInterest()
The area of interest defines the bounding box that has been used to clip the data within the raster coverage. It does not affect the tile structure of the coverage.
TLfnRasterCoverageMetadata.Builder.areaOfInterest(ILcdBounds)
public int[] getLevelsToProduce()
null
public boolean isPreserveAssetOrder()
true
, the fusion process will paint the assets in the
order specified by ALfnCoverageMetadata.getAssetInfos()
. Assets earlier in the list will be below assets later in
the list. The fusion process will still determine the order of the asset parts within one asset
automatically.
false
, the fusion process will determine the order
automatically. For example based on the pixel density
of the parts.
public void accept(ALfnResourceMetadataVisitor aVisitor)
ALfnResourceMetadata
accept
in class ALfnResourceMetadata
aVisitor
- the visitorALfnResourceMetadataVisitor
public boolean hasSquarePixels()
IMAGE
.public ELcdImageSamplingMode getSamplingMode()
null
public TLfnRasterCoverageMetadata.Builder asBuilder()
ALfnResourceMetadata
asBuilder
in class ALfnCoverageMetadata
public TLfnRasterCoverageMetadata.Builder asBuilder(ILfnResourceMetadataResolver aResolver)
ALfnCoverageMetadata
null
, the resolver is used to resolve asset metadata when computing a coverage's auto-defaults.
See ALfnCoverageMetadata.Builder
for the uses of a resolver.asBuilder
in class ALfnCoverageMetadata
aResolver
- a resolver to resolve the asset metadata for computing auto-defaults, which may be null
public boolean equals(Object aObject)
equals
in class ALfnCoverageMetadata
public int hashCode()
hashCode
in class ALfnCoverageMetadata
public static TLfnRasterCoverageMetadata.Builder newBuilder()
TLfnRasterCoverageMetadata.Builder
public static TLfnRasterCoverageMetadata.Builder newBuilder(ILfnResourceMetadataResolver aResolver)
null
, the resolver is used to resolve asset IDs to their asset metadata when computing a coverage's auto-defaults.
Even if you don't give a resolver, you can still use auto-defaults by passing the asset metadata directly by using
ALfnCoverageMetadata.Builder.addAssetInfo(ALfnAssetMetadata, String)
.
See ALfnCoverageMetadata.Builder
for the uses of a resolver.aResolver
- a resolver to resolve asset IDs to their asset metadatapublic static TLfnRasterCoverageMetadata.Builder newBuilder(TLfnRasterCoverageMetadata aTemplate)
The code
TLfnRasterCoverageMetadata.newBuilder(template);
is functionally equivalent to
template.asBuilder();
aTemplate
- a template, which must not be null
TLfnRasterCoverageMetadata.Builder
public static TLfnRasterCoverageMetadata.Builder newBuilder(TLfnRasterCoverageMetadata aTemplate, ILfnResourceMetadataResolver aResolver)
null
, the resolver is used to resolve asset metadata when computing a coverage's auto-defaults.
Even if you don't give a resolver, you can still use auto-defaults by passing the asset metadata directly by using
ALfnCoverageMetadata.Builder.addAssetInfo(ALfnAssetMetadata, String)
.
See ALfnCoverageMetadata.Builder
for the uses of a resolver.
The code
TLfnRasterCoverageMetadata.newBuilder(template, resolver);
is functionally equivalent to
template.asBuilder(resolver);
aTemplate
- a template, which must not be null
aResolver
- a resolver to resolve the asset metadata for computing auto-defaults, which may be null