Web API Reference MapGuide Open Source

MgPoint Class Reference
[MgPoint]

Inherits MgGeometry.

Inheritance diagram for MgPoint:

Inheritance graph
[legend]
List of all members.

Detailed Description

An MgPoint is a 0-dimensional geometry and represents a single location in coordinate space.

Remarks:
An instance of this class is constructed by calling a non-static MgGeometryFactory::CreatePoint() method and, once constructed, is immutable.
Example (PHP)
The following code shows the construction of a point
/// $geometryFactory = new MgGeometryFactory();
///
/// // create a coordinate
/// $oordinate = $geometryFactory->CreateCoordinateXY(0,2);
///
/// // create a point
/// $point = $geometryFactory->CreatePoint($coordinate);
///
/// // print out the Agf Text string for the geometry
/// $pointAgfText = $wktReaderWriter->Write($point);
///
/// echo "AGF Text representation of Point: $pointAgfTextn";
/// 


Public Member Functions

virtual MgGeometricEntityCopy ()
virtual MgCoordinateGetCoordinate ()
 Gets the coordinate that defines this point.
virtual MgCoordinateIteratorGetCoordinates ()
 Returns an iterator over the coordinates included in this geometric entity.
virtual INT32 GetDimension ()
virtual INT32 GetGeometryType ()
virtual bool IsClosed ()
virtual bool IsEmpty ()
virtual MgGeometricEntityTransform (MgTransform *transform)
 Returns a transformed copy of this geometric entity.