public class TLfnAreaSimplifyingGeometryProvider extends java.lang.Object implements
Typical use cases are island removal and removal of 'holes' in water areas.
|Constructor and Description|
Constructs a new area simplifying geometry provider given a threshold in pixels and a geographic reference.
|Modifier and Type||Method and Description|
Simplifies geometries by removing parts below threshold.
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
10generally yields good results
aGeoReference- the geographic reference of the coverage, must not be
null. This is typically obtained from the coverage metadata
public int getPixelThreshold()
public ILcdShape getGeometry(int aLevel, int aScaleDenominator, ILcdShape aPreviousLevelGeometry, ILcdDataObject aDataObject, ILcdShape aMaxLevelGeometry, ILcdModel aModel)
aLevel- the level, between
aScaleDenominator- the scale denominator for the level, corresponding to a scale of
aPreviousLevelGeometry- geometry used on the previous (i.e. more detailed) level
aDataObject- the data object corresponding to the feature
aMaxLevelGeometry- 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 coverage
aModel- the asset model of the feature
nullif the whole geometry or all its parts are below threshold