Home: FDO Developer's Guide
Geometry Types
![](../images/nav-prev-xp.gif)
The Geometry API
![](../images/nav-up-xp.gif)
Spatial Context
Mapping Between Geometry and Geometric Types
The FDO API GeometricType enumeration
of GeometricProperty gives the client application some knowledge
of which geometry types comprise the geometric property so that
it can present the user with an intelligent editor for selecting
styles for rendering the geometry. In particular, GeometricType
relates to shape dimensionality of geometries allowed in FDO geometric
properties. The nearest analogues in the Geometry API are:
- FdoDimensionality,
which pertains to ordinate (not shape) dimensionality of geometry
values.
- FdoGeometryType,
which has types whose abstract base types map to Geometric Type
The GeometricType enumeration is as follows:
- Point
= 0x01, // Point Type Geometry
- Curve
= 0x02, // Line and Curve Type Geometry
- Surface
= 0x04, // Surface (or Area) Type Geometry
- Solid
= 0x08, // Solid Type Geometry
NoteThe enumeration defines
a bit mask and the GetGeometricTypes and SetGeometricTypes methods
take and return an integer. This is to allow a geometry property
to be of more than one type. For example, the call: geometricProperty.SetGeometricTypes(Point
| Surface); would allow the geometric
property to represent either point type geometry or surface type
geometry (polygons).