Introduction to mapinfo.geometry namespace, Geometries, Mapinfo.geometry namespace – Pitney Bowes MapXtreme User Manual

Page 296

Advertising
background image

Chapter 16: Spatial Objects and Coordinate Systems

Introduction to MapInfo.Geometry Namespace

MapXtreme v7.1

303

Developer Guide

Introduction to MapInfo.Geometry Namespace

The MapInfo.Geometry namespace is used for creating and manipulating geometry objects, and the
coordinate systems in which they are used. Geometry objects are used in maps to represent single
points, such as cities (represented as point objects), boundary lines, such as county borders
(represented by MultiCurve objects), and regions, such as countries or zip code areas (represented
by MultiPolygon objects).

The classes, interfaces, and enumerations in the MapInfo.Geometry namespace define the types
representing the geometries and coordinate systems used in displaying geographic features on a
map. The Geometry model provides support for Z and M values on FeatureGeometry objects.
Interfaces allow for creation and editing of the geometry objects. Methods such as Buffer, Combine,
Difference, and Intersection provide object processing on single objects or pairs of objects.

Geometries

The Geometry class allows for the creation, editing, and other manipulation of geometry objects.
Classes which inherit from the Geometry class and represent types of Geometry objects include
Point, MultiPoint, Polygon, MultiPolygon, Curve, CurveSegment, LineString, and Ring. The following
legacy classes are also inherited from the Geometry class: Rectangle, RoundedRectangle, Ellipse,
LegacyArc, and LegacyText.

The Geometry class represents the topmost level of the MapInfo Geometry object model. This class
is abstract, and cannot be instantiated. All classes that derive from this class contain knowledge
concerning their coordinate system. All classes are able to make copies of themselves, and
compare themselves to other Geometry objects for equality.

The diagram below shows a representation of the Geometry model.

Advertising