14.01.2013 Views

Developer's Guide - MapGuide Open Source - OSGeo

Developer's Guide - MapGuide Open Source - OSGeo

Developer's Guide - MapGuide Open Source - OSGeo

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

■ MgLineString — a series of connected line segments<br />

■ MgCurveString — a series of connected curve segments<br />

■ MgPolygon — a polygon with sides formed from line segments<br />

■ MgCurvePolygon — a polygon with sides formed from curve segments<br />

The curve segments are circular arcs, defined by a start point, an end point,<br />

and a control point.<br />

Complex types are formed by aggregating simple types. The complex types<br />

are:<br />

■ MgMultiPoint — a group of points<br />

■ MgMultiLineString — a group of line strings<br />

■ MgMultiCurveString — a group of curve strings<br />

■ MgMultiPolygon — a group of polygons<br />

■ MgMultiCurvePolygon — a group of curve polygons<br />

■ MgMultiGeometry — a group of simple geometry objects of any type<br />

Comparing Geometry Objects<br />

The MgGeometry class contains methods for comparing different geometry<br />

objects. These are similar to the spatial filters described in Selecting with the<br />

Web API (page 35). Methods to test spatial relationships include:<br />

■ Contains()<br />

■ Crosses()<br />

■ Disjoint()<br />

■ Equals()<br />

■ Intersects()<br />

■ Overlaps()<br />

■ Touches()<br />

■ Within()<br />

Comparing Geometry Objects | 73

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!