Package com.anylogic.engine.gis
- java.lang.Object
- com.anylogic.engine.gis.GISGeneralizationUtils
@AnyLogicInternalAPI public class GISGeneralizationUtils extends Object
This class is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
- Author:
- AnyLogic North America, LLC https://anylogic.com
Modifier and Type | Method | Description |
---|---|---|
static double[] | get3PointBasedRegion | |
static double | getDisplayPPM() |
This method is not designed to be called by user
Returns 'screen' pixels per 'display' meter for given projection (may be null ) |
static int | getMapScaleBasedGeneralizationPrecision |
This method is not designed to be called by user
|
static double[] | getSimplifiedPointList |
Attention! This method may damage contents of the given
points array. |
@AnyLogicInternalAPI public static double getDisplayPPM()
This method is not designed to be called by user
Returns 'screen' pixels per 'display' meter for given projection (may be
Returns 'screen' pixels per 'display' meter for given projection (may be
null
)- Returns:
- pixels per meter for given projection
@AnyLogicInternalAPI public static int getMapScaleBasedGeneralizationPrecision(long mapScale)
This method is not designed to be called by user
- Parameters:
mapScale
- gis map scale- Returns:
- suggested generalization precision measured in meters
@AnyLogicInternalAPI public static double[] getSimplifiedPointList(double[] points, double precisionInMeters, List<Integer> oldIndexes)
Attention! This method may damage contents of the given
points
array.- Parameters:
points
- initial points to simplify, contents may be damaged as a result of this method call.precisionInMeters
-oldIndexes
-- Returns:
@AnyLogicInternalAPI public static double[] get3PointBasedRegion(double[] doubleArray)