#include <ogr_geometry.h>
Inheritance diagram for OGRLinearRing:
Public Member Functions | |
virtual int | isClockwise () const |
virtual void | closeRings () |
virtual double | get_Area () const |
virtual OGRErr | importFromWkb (unsigned char *, int=-1) |
Friends | |
class | OGRPolygon |
This class is functionally equivelent to an OGRLineString, but has a separate identity to maintain alignment with the OpenGIS simple feature data model. It exists to serve as a component of an OGRPolygon.
|
Force rings to be closed. If this geometry, or any contained geometries has polygon rings that are not closed, they will be closed by adding the starting point at the end. Reimplemented from OGRGeometry. |
|
Compute area of ring. The area is computed according to Green's Theorem: Area is "Sum(x(i)*y(i+1) - x(i+1)*y(i))/2" for i = 0 to pointCount-1, assuming the last point is a duplicate of the first.
|
|
Assign geometry from well known binary data. The object must have already been instantiated as the correct derived type of geometry object to match the binaries type. This method is used by the OGRGeometryFactory class, but not normally called by application code. This method relates to the SFCOM IWks::ImportFromWKB() method. This method is the same as the C function OGR_G_ImportFromWkb().
Reimplemented from OGRLineString. |
|
Returns TRUE if the ring has clockwise winding.
|