Package com.luciad.geometry.ellipsoidal
Class TLcdLonLatContourFactory
java.lang.Object
com.luciad.geometry.ellipsoidal.TLcdLonLatContourFactory
- All Implemented Interfaces:
ILcdContourFactory
An implementation of
ILcdContourFactory
to create an
ILcdValuedPolygon
from separate arrays of x- and y-coordinates.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateContour
(double[] aXArray, double[] aYArray, int aNumberOfPoints, double aLevel) Creates anILcdValuedPolygon
from separate arrays of x- and y-coordinates where only the first aNumberOfPoints are taken into account.
-
Constructor Details
-
TLcdLonLatContourFactory
public TLcdLonLatContourFactory()Constructs a new TLcdContourFactory.
-
-
Method Details
-
createContour
public ILcdValuedPolygon createContour(double[] aXArray, double[] aYArray, int aNumberOfPoints, double aLevel) Description copied from interface:ILcdContourFactory
Creates anILcdValuedPolygon
from separate arrays of x- and y-coordinates where only the first aNumberOfPoints are taken into account.The edge of a polygon indicates a contour line of equal height. The orientation of the returned polygon should be interpreted as follows:
- CLOCKWISE: The area on just on the exterior of the polygon has a higher value than the interior.
- COUNTER-CLOCKWISE: The area just on the exterior of the polygon has a lower value than the interior.
- Specified by:
createContour
in interfaceILcdContourFactory
- Parameters:
aXArray
- The array of x-coordinates.aYArray
- The array of y-coordinates.aNumberOfPoints
- The number of coordinates to take into account.aLevel
- The level of theILcdValuedPolygon
.- Returns:
- An
ILcdPolygon
constructed from aXArray and aYArray. - See Also:
-