CartoType .NET API 8.8-7-gb35e4dc71
for development in C#, Visual Basic and other .NET languages
|
A map object: a point, linear object, polygon object, or array (texture). More...
#include <CartoTypeWrapper.h>
Public Member Functions | |
String ^ | StringAttribute (String^ aName) |
Returns a string attribute. If aName is empty this function is the same as Label. | |
SortedDictionary< String^, String^> ^ | StringAttributes () |
Returns all the string attributes as key-value pairs; an empty key refers to the label attribute. | |
MapObjectMatch ^ | Match (String^ aText, StringMatchMethod aMatchMethod, String^ aAttributes, bool aPhrase) |
Finds the first string attribute matching aText, using aMatchMethod, and returns information about it. More... | |
virtual int | ContourCount () |
Returns the number of contours in the path. More... | |
virtual int | PointCount (int aContourIndex) |
Returns the number of points in a contour. More... | |
virtual PathPoint ^ | Point (int aContourIndex, int aPointIndex) |
Returns a point, specifying it by contour index and point index. More... | |
int | ContourCount () |
Returns the number of contours (sub-paths). More... | |
int | PointCount (int aContourIndex) |
Returns the number of points in a contour. More... | |
PathPoint ^ | Point (int aContourIndex, int aPointIndex) |
Returns a point given its contour and point indexes. More... | |
Properties | |
String^ | Label [get] |
The label or name of the object. | |
FeatureInfo^ | FeatureInfo [get] |
The feature info of the map object. | |
Int64 | Id [get] |
The ID of the object. | |
MapObjectType | Type [get] |
The type of the object. | |
String^ | LayerName [get] |
The object's layer. | |
double | Area [get] |
The area of the map object in square meters. Returns 0 if it is a point or a line. | |
double | LengthOrPerimeter [get] |
The length or perimeter of the map object in meters. Returns 0 if it is a point. | |
Point^ | Center [get] |
Returns the center of a map object in map coordinates. More... | |
Point^ | CenterInDegrees [get] |
Returns the center of a map object in degrees. More... | |
Rect^ | BoundsInDegrees [get] |
Returns the bounding box of a map object in degrees. | |
Geometry^ | GeometryInDegrees [get] |
Returns the bounding box of a map object in degrees. | |
Rect^ | Bounds [get] |
Returns the axis-aligned bounding box of a map object, in map coordinates. | |
A map object: a point, linear object, polygon object, or array (texture).
|
virtual |
Returns the number of contours in the path.
Implements CartoType::Path.
MapObjectMatch ^ CartoType::MapObject::Match | ( | String^ | aText, |
StringMatchMethod | aMatchMethod, | ||
String^ | aAttributes, | ||
bool | aPhrase | ||
) |
Finds the first string attribute matching aText, using aMatchMethod, and returns information about it.
If aAttributes is non-null this function examines only attributes in the supplied comma-separated list, otherwise it examines all attributes except those starting with an underscore, which by convention are non-textual. Attribute names may contain the wild cards ? and *. If aPhrase is true, matches of phrases within the attribute are allowed.
|
virtual |
Returns a point, specifying it by contour index and point index.
Implements CartoType::Path.
|
virtual |
Returns the number of points in a contour.
Implements CartoType::Path.
|
get |
Returns the center of a map object in map coordinates.
The center is defined as the center of gravity for polygons and arrays, a point half way along the path for lines, and the point itself for points.
|
get |
Returns the center of a map object in degrees.
The center is defined as the center of gravity for polygons and arrays, a point half way along the path for lines, and the point itself for points. Because the center is calculated using map coordinates then converted to degrees, it depends on the map projection used by the map object.