Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

# MgGeometricPropertyDefinition Class Reference
[MgGeometricPropertyDefinition]

Defines a geometric property belonging to a feature class. More...

Inherits MgPropertyDefinition.

List of all members.

## Public Member Functions
INT32 | GetGeometryTypes ()
| Gets the MgFeatureGeometricType types which specify the categories of the geometries (point, line, surface, solid) that can be stored in this geometric property.
bool | GetHasElevation ()
bool | GetHasMeasure ()
bool | GetReadOnly ()
STRING | GetSpatialContextAssociation ()
MgGeometryTypeInfo * | GetSpecificGeometryTypes ()
| MgGeometricPropertyDefinition (CREFSTRING name)
| Constructs an MgGeometricPropertyDefinition object.
void | SetGeometryTypes (INT32 types)
void | SetHasElevation (bool hasElevation)
| Determines whether the geometry contained in this property can include elevation values, that is, whether the coordinates in the geometry contain Z-ordinates.
void | SetHasMeasure (bool hasMeasure)
| Determines whether the points in the geometry contained in this property can include a measurement value (M-ordinate).
void | SetReadOnly (bool value)
| Determines whether this geometric property is read-only.
void | SetSpatialContextAssociation (CREFSTRING spatialContextName)
| Sets a Spatial Context association for this geometric property.
void | SetSpecificGeometryTypes (MgGeometryTypeInfo *typeInfo)
| Sets the specific list of geometry types that can be stored in this geometric property. The provided value is a list of geometry types that are supported.

## Detailed Description

Defines a geometric property belonging to a feature class.

Comments or suggestions? Send us feedback.