public static class TLfnVectorCoverageMetadata.Builder extends ALfnCoverageMetadata.Builder<TLfnVectorCoverageMetadata.Builder>
TLfnVectorCoverageMetadata
Modifier and Type | Method and Description |
---|---|
TLfnVectorCoverageMetadata.Builder |
areaSimplificationFactor(double aFactor)
Deprecated.
Sets the area simplification factor.
|
TLfnVectorCoverageMetadata |
build()
Deprecated.
Builds an immutable vector coverage metadata.
|
TLfnVectorCoverageMetadata.Builder |
buildDataModel(Collection<TLcdDataModel> aAssetDataModels)
Deprecated.
instead use
ALfnCoverageMetadata.Builder.addAssetInfo(ALfnAssetMetadata, String) and leave the data model to the default,
which also has the effect that the coverage data model will be generated from the asset's data models |
TLfnVectorCoverageMetadata.Builder |
buildDataModel(TLcdDataModel... aAssetDataModels)
Deprecated.
instead use
ALfnCoverageMetadata.Builder.addAssetInfo(ALfnAssetMetadata, String) and leave the data model to the default,
which also has the effect that the coverage data model will be generated from the asset's data models |
TLfnVectorCoverageMetadata.Builder |
dataModel(TLcdDataModel aDataModel)
Deprecated.
Sets the data model of the coverage.
|
TLfnVectorCoverageMetadata.Builder |
filter(Map<Integer,TLcdOGCFilter> aFiltersByScaleDenominator)
Deprecated.
use
filters(java.util.Map) instead |
TLfnVectorCoverageMetadata.Builder |
filters(Map<Integer,TLcdOGCFilter> aFiltersByScaleDenominator)
Deprecated.
Sets the OGC filters to be used for this coverage.
|
TLfnVectorCoverageMetadata.Builder |
forceLinearInterpolation(boolean aOn)
Deprecated.
Sets whether forcing linear interpolation is enabled or not.
|
double |
getAreaSimplificationFactor()
Deprecated.
Gets the area simplification factor.
|
TLcdDataModel |
getDataModel()
Deprecated.
Gets this builder's current data model.
|
Map<Integer,TLcdOGCFilter> |
getFilters()
Deprecated.
Gets an immutable map of the filters, ordered by scale denominator.
|
double |
getLineSimplificationFactor()
Deprecated.
Gets the line simplification factor.
|
int |
getMaxLevel()
Deprecated.
Gets this builder's current maximum level.
|
boolean |
isForceLinearInterpolation()
Deprecated.
Gets whether forcing linear interpolation is enabled or not.
|
boolean |
isSimplifyAreas()
Deprecated.
Gets whether area simplification is enabled or not.
|
boolean |
isSimplifyLines()
Deprecated.
Gets whether line simplification is enabled or not.
|
TLfnVectorCoverageMetadata.Builder |
lineSimplificationFactor(double aFactor)
Deprecated.
Sets the line simplification factor.
|
TLfnVectorCoverageMetadata.Builder |
maxLevel(int aMaxLevel)
Deprecated.
Sets the maximum level (most detailed level).
|
TLfnVectorCoverageMetadata.Builder |
setDataModel(TLcdDataModel aDataModel)
Deprecated.
use
dataModel(com.luciad.datamodel.TLcdDataModel) instead |
TLfnVectorCoverageMetadata.Builder |
setMaxLevel(int aMaxLevel)
Deprecated.
use
maxLevel(int) instead |
TLfnVectorCoverageMetadata.Builder |
simplifyAreas()
Deprecated.
Enables area simplification using the default settings.
|
TLfnVectorCoverageMetadata.Builder |
simplifyAreas(boolean aOn)
Deprecated.
Enables or disables area simplification using the default settings.
|
TLfnVectorCoverageMetadata.Builder |
simplifyLines()
Deprecated.
Enables line simplification using the default settings.
|
TLfnVectorCoverageMetadata.Builder |
simplifyLines(boolean aOn)
Deprecated.
Enables or disables line simplification using the default settings.
|
TLfnVectorCoverageMetadata.Builder |
type(ELfnDataType aType)
Deprecated.
Sets the required type of the coverage.
|
addAssetInfo, addAssetInfo, assetInfos, assetInfos, assetSourcesInTileStore, boundingBox, dataDensity, featureTypeStyles, featureTypeStyles, format, formatVersion, geoReference, getAssetInfos, getBoundingBox, getDataDensity, getFeatureTypeStyles, getFormat, getFormatVersion, getGeoReference, getLevel0ColumnCount, getLevel0RowCount, getMessageDigestAlgorithm, getScaleDenominators, getType, ignoreNonFatalFailures, ignoreNonFatalFailures, isAssetSourcesInTileStore, isIgnoreNonFatalFailures, layout, level0ColumnCount, level0RowCount, messageDigestAlgorithm, scaleDenominators, scaleDenominators, setAssetInfos, setAssetInfos, setBoundingBox, setCoverageLayout, setDataDensity, setFormat, setFormatVersion, setGeoReference, setLevel0ColumnCount, setLevel0RowCount, setMessageDigestAlgorithm, setScaleDenominators, setScaleDenominators, setType, tileFormat
abstract_, getAbstract, getGlobalUpdateSequence, getId, getISO19115Metadata, getName, getUpdateSequence, globalUpdateSequence, id, iso19115Metadata, name, setAbstract, setId, setISO19115Metadata, setName, setUpdateSequence, updateSequence
public TLfnVectorCoverageMetadata.Builder type(ELfnDataType aType)
ALfnCoverageMetadata.Builder
null
, the default type will be used.
For vector coverages, the default type is VECTOR
.
For raster coverages, the default type depends on the asset metadatas.
IMAGE
.IMAGE
since it is the greatest common denominator.For non-tiled coverages, the type is always null
.
type
in class ALfnCoverageMetadata.Builder<TLfnVectorCoverageMetadata.Builder>
aType
- a type, or null
to indicate the default typepublic final TLfnVectorCoverageMetadata.Builder dataModel(TLcdDataModel aDataModel)
Sets the data model of the coverage.
The data model should conform to the structure and conventions of a coverage data model.
If not set or if set to null
, the default data model will be used.
In order for this to work, the asset metadatas must have been set using ALfnCoverageMetadata.Builder.addAssetInfo(ALfnAssetMetadata, String)
.
The default data model is built automatically from the asset's data models, according to the structure and conventions of a coverage data model. Each existing data model will become a named data model in the coverage data model (with a prefixed name), containing all of its declared data types.
Usually it suffices to leave the data model to the default. The cases where you explicitly want to build your own custom coverage data model should be rare.
aDataModel
- the anonymous data model for the coverage, or null
to reset to defaultbuildDataModel(com.luciad.datamodel.TLcdDataModel...)
public final TLfnVectorCoverageMetadata.Builder setDataModel(TLcdDataModel aDataModel)
dataModel(com.luciad.datamodel.TLcdDataModel)
insteadpublic final TLfnVectorCoverageMetadata.Builder maxLevel(int aMaxLevel)
[0..23]
.
If not set or if set to a negative value, the default max. level will be used.
The default max. level is based on the SLD feature type styles, the scale denominators for the OGC filters, and the scale denominators of the asset parts.
aMaxLevel
- a max levelpublic final TLfnVectorCoverageMetadata.Builder setMaxLevel(int aMaxLevel)
maxLevel(int)
insteadpublic final TLfnVectorCoverageMetadata.Builder forceLinearInterpolation(boolean aOn)
Sets whether forcing linear interpolation is enabled or not.
The default value is false
.
aOn
- true
if the interpolation is forced to linear, even if the data indicates
otherwiseTLfnVectorCoverageMetadata.isForceLinearInterpolation()
public TLfnVectorCoverageMetadata.Builder simplifyLines()
Enables line simplification using the default settings.
Short for:
simplifyLines( true )
lineSimplificationFactor(double)
,
TLfnVectorCoverageMetadata.getLineSimplificationFactor()
public TLfnVectorCoverageMetadata.Builder simplifyLines(boolean aOn)
Enables or disables line simplification using the default settings.
By default, line simplification is disabled.
aOn
- true
or false
to enable or disables line simplificationTLfnVectorCoverageMetadata.getLineSimplificationFactor()
public boolean isSimplifyLines()
simplifyLines(boolean)
public TLfnVectorCoverageMetadata.Builder lineSimplificationFactor(double aFactor)
Sets the line simplification factor. This factor determines the number of points which are removed from a line at a certain scale.
Possible values:1.0
: built-in default simplification factor>1.0
: more simplification<1.0
: less simplification0.0
: no simplificationSee TLfnVectorCoverageMetadata.getLineSimplificationFactor()
for more information.
aFactor
- the line simplification factorTLfnVectorCoverageMetadata.getLineSimplificationFactor()
public double getLineSimplificationFactor()
Gets the line simplification factor.
TLfnVectorCoverageMetadata.getLineSimplificationFactor()
public TLfnVectorCoverageMetadata.Builder simplifyAreas()
Enables area simplification using the default settings.
Short for:
simplifyAreas( true )
areaSimplificationFactor(double)
,
TLfnVectorCoverageMetadata.getAreaSimplificationFactor()
public TLfnVectorCoverageMetadata.Builder simplifyAreas(boolean aOn)
Enables or disables area simplification using the default settings.
By default, area simplification is disabled.
aOn
- true
enables area simplification, false
disables area
simplificationTLfnVectorCoverageMetadata.getAreaSimplificationFactor()
public boolean isSimplifyAreas()
simplifyAreas(boolean)
public TLfnVectorCoverageMetadata.Builder areaSimplificationFactor(double aFactor)
Sets the area simplification factor. This factor determines the size of the areas which are removed at a certain scale.
Possible values:1.0
: built-in default simplification factor>1.0
: more simplification<1.0
: less simplification0.0
: no simplificationSee TLfnVectorCoverageMetadata.getAreaSimplificationFactor()
for more information.
aFactor
- the area simplification factorTLfnVectorCoverageMetadata.getAreaSimplificationFactor()
public double getAreaSimplificationFactor()
Gets the area simplification factor.
TLfnVectorCoverageMetadata.getAreaSimplificationFactor()
public final TLfnVectorCoverageMetadata.Builder filters(Map<Integer,TLcdOGCFilter> aFiltersByScaleDenominator)
null
, the default OGC filters will be used, which is an empty map.
The preferred way to define visibility of features is by using SLD feature type styles.
Setting the filters may cause changes to the default max. level.
Warning: the OGC filters and SLD feature type styles are mutually exclusive. Setting them both will throw an exception when trying to build the vector coverage metadata.
aFiltersByScaleDenominator
- the filters to be used, or null
to reset to defaultALfnCoverageMetadata.Builder.featureTypeStyles(java.util.List)
,
getFilters()
public final TLfnVectorCoverageMetadata.Builder filter(Map<Integer,TLcdOGCFilter> aFiltersByScaleDenominator)
filters(java.util.Map)
insteadpublic final TLfnVectorCoverageMetadata.Builder buildDataModel(TLcdDataModel... aAssetDataModels)
ALfnCoverageMetadata.Builder.addAssetInfo(ALfnAssetMetadata, String)
and leave the data model to the default,
which also has the effect that the coverage data model will be generated from the asset's data modelsEach existing data model will become a named data model in the coverage data model (with a prefixed name), containing all of its declared data types.
In some (rare) cases, it does not suffice to create a coverage data model from the asset data models.
Consider the alternative method dataModel(TLcdDataModel)
for setting your own custom built coverage data model.
aAssetDataModels
- the input data modelsdataModel(com.luciad.datamodel.TLcdDataModel)
public final TLfnVectorCoverageMetadata.Builder buildDataModel(Collection<TLcdDataModel> aAssetDataModels)
ALfnCoverageMetadata.Builder.addAssetInfo(ALfnAssetMetadata, String)
and leave the data model to the default,
which also has the effect that the coverage data model will be generated from the asset's data modelsEach asset data model will become a named data model in the coverage data model (with a prefixed name), containing all of its declaring data types.
In some (rare) cases, it does not suffice
to create a coverage data model from the asset data models. Consider the alternative method
dataModel(com.luciad.datamodel.TLcdDataModel)
for setting your own custom built
coverage data model.
aAssetDataModels
- the asset data models to create the coverage data model from. May be
empty but not null
.dataModel(com.luciad.datamodel.TLcdDataModel)
public TLcdDataModel getDataModel()
In case asset data models have been set on this
builder with a buildDataModel(TLcdDataModel...)
call, this method will trigger the
generation of the coverage data model. For this, it is required that the coverage ID has also
been set on this builder. If not, this method will throw IllegalStateException.
null
public int getMaxLevel()
public boolean isForceLinearInterpolation()
TLfnVectorCoverageMetadata.isForceLinearInterpolation()
public Map<Integer,TLcdOGCFilter> getFilters()
Because features are filtered at discrete levels, visibility will not switch exactly at the given scales. The switch point may be a bit beyond the defined scales. For example, if a feature 'roads' is defined to be visible at scale 1:100000, the 'roads' are guaranteed to be visible at scale 1:100000, they may be visible a bit byond that, for example still visible at scale 1:120000, but they will become invisible at the scale corresponding to the first discrete level which is less detailed, for example invisible at scale 1:125000.
null
public TLfnVectorCoverageMetadata build()
build
in class ALfnCoverageMetadata.Builder<TLfnVectorCoverageMetadata.Builder>
NullPointerException
- in case one or more required fields have not been set