#include <ogr_geometry.h>
Public Member Functions | |
virtual double | get_Area () const =0 |
Get the area of the surface object. | |
virtual OGRErr | Centroid (OGRPoint *poPoint) const =0 |
Compute and return centroid of surface. The centroid is not necessarily within the geometry. | |
virtual OGRErr | PointOnSurface (OGRPoint *poPoint) const =0 |
This method relates to the SFCOM ISurface::get_PointOnSurface() method. |
OGRErr OGRSurface::Centroid | ( | OGRPoint * | poPoint | ) | const [pure virtual] |
Compute and return centroid of surface. The centroid is not necessarily within the geometry.
This method relates to the SFCOM ISurface::get_Centroid() method.
NOTE: Only implemented when GEOS included in build.
poPoint | point to be set with the centroid location. |
Implemented in OGRPolygon.
double OGRSurface::get_Area | ( | ) | const [pure virtual] |
Get the area of the surface object.
For polygons the area is computed as the area of the outer ring less the area of all internal rings.
This method relates to the SFCOM ISurface::get_Area() method.
Implemented in OGRPolygon.
OGRErr OGRSurface::PointOnSurface | ( | OGRPoint * | poPoint | ) | const [pure virtual] |
This method relates to the SFCOM ISurface::get_PointOnSurface() method.
NOTE: Only implemented when GEOS included in build.
poPoint | point to be set with an internal point. |
Implemented in OGRPolygon.