AnyLogic
Expand
Font size

@AnyLogicInternalAPI
public class GISGeneralizationUtils
extends Object
This class is internal and shouldn't be called by user.
it may be removed/renamed in future.
Author:
AnyLogic North America, LLC https://anylogic.com

Method Summary

Modifier and TypeMethodDescription
static double[]get3PointBasedRegion(double[] doubleArray) 
static doublegetDisplayPPM()
This method is not designed to be called by user
Returns 'screen' pixels per 'display' meter for given projection (may be null)
static intgetMapScaleBasedGeneralizationPrecision(long mapScale)
This method is not designed to be called by user
static double[]getSimplifiedPointList(double[] points, double precisionInMeters, List<Integer> oldIndexes)
Attention! This method may damage contents of the given points array.

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Details

getDisplayPPM

@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 null)
Returns:
pixels per meter for given projection

getMapScaleBasedGeneralizationPrecision

@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

getSimplifiedPointList

@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:

get3PointBasedRegion

@AnyLogicInternalAPI
public static double[] get3PointBasedRegion(double[] doubleArray)