Where can you find the right tools in the LuciadLightspeed API to perform fairly common geometric calculations?
LuciadLightspeed allows you to perform several geometric calculations. For example, you can:
Calculate the length of a geodesic line defined by two points
Calculate the azimuth of a rhumbline defined by two points
Calculate the geodesic area of a polygon
Determine if there is an overlap between two shapes
To perform those types of operations in LuciadLightspeed, you simply have to call the right methods. Here’s where to look for them across the LuciadLightspeed API.
The LuciadLightspeed API contains the package
com.luciad.geodesy. This package offers classes that perform many common geometric calculations.
ILcdEllipsoid is an interface that defines an ellipsoid in LuciadLightspeed. It also defines a bunch of utility methods for performing
ILcdEllipsoid is sufficient to perform most of the basic calculations:
geodesicDistance()to return the shortest distance between two points on an ellipsoid
forwardAzimuth2D()to return the azimuth direction of the geodesic line from two points
geodesicPointSFCT()to return the geodesic coordinate of a point with a certain direction and distance
geodesicArea()to return the geodesic area of a polygon
intersects2DLS()to determine if two lines intersect
There are also a few methods to perform calculations with rhumblines, such as
If you are looking for Cartesian equivalents of these geodetic calculations, try the
If you need more than the functionality provided by
ILcdEllipsoid, check the utility classes in the
TLcdEllipsoidUtilcan calculate the shortest distance from a point to a line, calculate the tangent to a circle from a given point, determine if a point is contained by a line, and so on.
The Advanced GIS Engine component provides support for the calculation of binary topological relations, intersection points, the convex hull, and constructive boolean operations of shapes in 2D spaces.
If you need to perform those types of calculations, see Geometry to find out more about them.