Serializable
, Comparable<AlgorithmId>
public enum AlgorithmId extends Enum<AlgorithmId>
Enum Constant | Description |
---|---|
BASIC_SLOW_EXHAUSTIVE_SCAN_FOR_TESTS_ONLY |
Basic, very slow algorithm, designed only for tests and validation purposes.
|
CONSTANT_ELEVATION_OVER_ELLIPSOID |
Algorithm that simply uses a constant elevation over ellipsoid.
|
DUVENHAGE |
Fast algorithm due to Bernardt Duvenhage.
|
DUVENHAGE_FLAT_BODY |
Fast algorithm due to Bernardt Duvenhage.
|
IGNORE_DEM_USE_ELLIPSOID |
Dummy algorithm that simply ignores the Digital Elevation Model.
|
Modifier and Type | Method | Description |
---|---|---|
static AlgorithmId |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static AlgorithmId[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AlgorithmId DUVENHAGE
The algorithm is described in the 2009 paper: Using An Implicit Min/Max KD-Tree for Doing Efficient Terrain Line of Sight Calculations.
public static final AlgorithmId DUVENHAGE_FLAT_BODY
The algorithm is described in the 2009 paper: Using An Implicit Min/Max KD-Tree for Doing Efficient Terrain Line of Sight Calculations.
This version of the duvenhage's algorithm considers the body to be flat, i.e. lines computed
from entry/exit points in the Digital Elevation Model are considered to be straight lines
also in geodetic coordinates. The sagitta resulting from real ellipsoid curvature is therefore
not corrected in this case. As this computation is not costly (a few percents overhead),
the full DUVENHAGE
is recommended instead of this one. This choice is mainly intended
for comparison purposes with other systems.
public static final AlgorithmId BASIC_SLOW_EXHAUSTIVE_SCAN_FOR_TESTS_ONLY
The algorithm simply computes entry and exit points at high and low altitudes, and scans all Digital Elevation Models in the sub-tiles defined by these two corner points. It is not designed for operational use.
public static final AlgorithmId CONSTANT_ELEVATION_OVER_ELLIPSOID
Intersections are computed only with respect to the reference ellipsoid
and a user-specified elevation. If the user-specified elevation is 0.0,
then this algorithm is equivalent to IGNORE_DEM_USE_ELLIPSOID
,
only slower.
public static final AlgorithmId IGNORE_DEM_USE_ELLIPSOID
Intersections are computed only with respect to the reference ellipsoid.
This algorithm is equivalent to CONSTANT_ELEVATION_OVER_ELLIPSOID
when the elevation is set to 0.0, but this one is much faster in this
specific case.
public static AlgorithmId[] values()
for (AlgorithmId c : AlgorithmId.values()) System.out.println(c);
public static AlgorithmId valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2014-2019 CS Systèmes d'information. All rights reserved.