CartoType .NET API 8.8-7-gb35e4dc71
for development in C#, Visual Basic and other .NET languages
|
General utility functions More...
#include <CartoTypeWrapper.h>
Static Public Member Functions | |
static String ^ | Description () |
Returns a Git description of the current CartoType version as a string of the form MAJOR.MINOR-BUILD-COMMIT. | |
static String ^ | Version () |
Returns the current CartoType version as a string of the form MAJOR.MINOR. | |
static String ^ | Build () |
Returns the current CartoType build as a string. | |
static double | SphericalPolygonArea (array< double >^ aX, array< double >^ aY) |
Returns the area of a spherical polygon in square metres. The polygon is defined in degrees of latitude (y) and longitude (x). | |
static double | Length (array< double >^ aX, array< double >^ aY) |
Returns the length of a line, in meters, defined by points of latitude (y) and longitude (x), using great-circle distances. | |
static double | GreatCircleDistanceInMeters (double aLong1, double aLat1, double aLong2, double aLat2) |
Returns the great-circle distance in meters between (aLong1,aLat1) and (aLong2,aLat2). This function uses the WGS84 ellipsoid. | |
static double | AzimuthInDegrees (double aLong1, double aLat1, double aLong2, double aLat2) |
Returns the azimuth (direction along a great circle) in degrees from (aLong1,aLat1) to (aLong2,aLat2). More... | |
static Point ^ | PointAtAzimuth (double aLong, double aLat, double aDir, double aDistanceInMeters) |
Finds the point in degrees at a certain distance and azimuth direction from a starting point. This function uses the WGS84 ellipsoid. | |
static double | DistanceFromPoint (array< double >^ aX, array< double >^ aY, bool aIsPolygon, double aPointX, double aPointY, Point^ aNearestPoint) |
Returns the distance from a line of points (if aPolygon is false) or a polygon (if aPolygon is true) to the point (aPointX,aPointY) and puts the nearest point in the line or polygon in aNearestPoint. | |
static String ^ | SetAttribute (String^ aString, String^ aKey, String^ aValue) |
Sets an attribute in a string to be used when creating a map object. More... | |
static String ^ | ErrorString (Result aError) |
Returns a short description of an error, given its code. | |
General utility functions
|
static |
Returns the azimuth (direction along a great circle) in degrees from (aLong1,aLat1) to (aLong2,aLat2).
This function uses the WGS84 ellipsoid. North is 0 and angles increase clockwise.
|
static |
Sets an attribute in a string to be used when creating a map object.
Treating a string as a set of map object attributes of the form label|key1=value1|key2=value2| ... |keyN=valueN, where | is character code 0, set a named attribute. An empty or zero-length name sets the label. An empty or zero-length value deletes a name-value pair.
Returns the new string, with the attribute set.