Package com.luciad.fusion.engine.vector
Class TLfnAreaSimplifyingGeometryProvider
java.lang.Object
com.luciad.fusion.engine.vector.TLfnAreaSimplifyingGeometryProvider
- All Implemented Interfaces:
ILfnGeometryProvider
Deprecated.
Since 2017.0 support for coverages of type VECTOR has been superseded with other mechanisms. Please refer to the Fusion migration guide for more information.
A geometry provider that simplifies areas by removing parts which are below threshold.
This mechanism applies to
- additive parts ('islands')
- additive parts can be areas
- additive parts can also be lines
- subtractive parts ('holes')
Typical use cases are island removal and removal of 'holes' in water areas.
- Since:
- 11.0
-
Constructor Summary
ConstructorsConstructorDescriptionTLfnAreaSimplifyingGeometryProvider(int aPixelThreshold, ILcdGeoReference aGeoReference) Deprecated.Constructs a new area simplifying geometry provider given a threshold in pixels and a geographic reference. -
Method Summary
Modifier and TypeMethodDescriptiongetGeometry(int aLevel, int aScaleDenominator, ILcdShape aPreviousLevelGeometry, ILcdDataObject aDataObject, ILcdShape aMaxLevelGeometry, ILcdModel aModel) Deprecated.Simplifies geometries by removing parts below threshold.intDeprecated.
-
Constructor Details
-
TLfnAreaSimplifyingGeometryProvider
Deprecated.Constructs a new area simplifying geometry provider given a threshold in pixels and a geographic reference. The threshold in pixels applies to areas, so in order to omit areas below 10 x 10 pixels a threshold of 100 pixels should be used.Bear in mind that the threshold in pixels is not exact since it is relative to a geographic reference which may use a global average for screen resolution. This geometry provider inherits the distortions of its geographic reference.
- Parameters:
aPixelThreshold- an area threshold in pixels, must never be negative. A threshold of10generally yields good resultsaGeoReference- the geographic reference of the coverage, must not benull. This is typically obtained from the coverage metadata
-
-
Method Details
-
getPixelThreshold
public int getPixelThreshold()Deprecated. -
getGeometry
public ILcdShape getGeometry(int aLevel, int aScaleDenominator, ILcdShape aPreviousLevelGeometry, ILcdDataObject aDataObject, ILcdShape aMaxLevelGeometry, ILcdModel aModel) Deprecated.Simplifies geometries by removing parts below threshold.- Specified by:
getGeometryin interfaceILfnGeometryProvider- Parameters:
aLevel- the level, betweenmaxLevel-1and0aScaleDenominator- the scale denominator for the level, corresponding to a scale of1:denominatoraPreviousLevelGeometry- geometry used on the previous (i.e. more detailed) levelaLevel+1aDataObject- the data object corresponding to the featureaMaxLevelGeometry- geometry at the maximum level (may be the same as the previous level geometry), this is the original geometry from the asset model converted to the coverageaModel- the asset model of the feature- Returns:
- a simplified geometry with all parts below threshold removed, possibly
nullif the whole geometry or all its parts are below threshold
-