public class TLfnAreaSimplifyingGeometryProvider extends Object implementsILfnGeometryProvider
Typical use cases are island removal and removal of 'holes' in water areas.
Constructor and Description |
---|
TLfnAreaSimplifyingGeometryProvider(int aPixelThreshold,
ILcdGeoReference aGeoReference)
Deprecated.
Constructs a new area simplifying geometry provider given a threshold in pixels and a geographic reference.
|
Modifier and Type | Method and Description |
---|---|
ILcdShape |
getGeometry(int aLevel,
int aScaleDenominator,
ILcdShape aPreviousLevelGeometry,
ILcdDataObject aDataObject,
ILcdShape aMaxLevelGeometry,
ILcdModel aModel)
Deprecated.
Simplifies geometries by removing parts below threshold.
|
int |
getPixelThreshold()
Deprecated.
|
public TLfnAreaSimplifyingGeometryProvider(int aPixelThreshold, ILcdGeoReference aGeoReference)
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.
aPixelThreshold
- an area threshold in pixels, must never be negative. A threshold of 10
generally yields good resultsaGeoReference
- the geographic reference of the coverage, must not be null
. This is typically obtained from the coverage metadatapublic int getPixelThreshold()
public ILcdShape getGeometry(int aLevel, int aScaleDenominator, ILcdShape aPreviousLevelGeometry, ILcdDataObject aDataObject, ILcdShape aMaxLevelGeometry, ILcdModel aModel)
getGeometry
in interface ILfnGeometryProvider
aLevel
- the level, between maxLevel-1
and 0
aScaleDenominator
- the scale denominator for the level, corresponding to a scale of 1:denominator
aPreviousLevelGeometry
- geometry used on the previous (i.e. more detailed) level aLevel+1
aDataObject
- 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 featurenull
if the whole geometry or all its parts are below threshold