GDAL
Classes | Typedefs | Functions
ogr_geometry.h File Reference

Simple feature geometry classes. More...

#include "cpl_conv.h"
#include "cpl_json.h"
#include "ogr_core.h"
#include "ogr_spatialref.h"
#include <memory>

Go to the source code of this file.

Classes

class  OGRRawPoint
 Simple container for a position. More...
 
class  IOGRGeometryVisitor
 OGRGeometry visitor interface. More...
 
class  OGRDefaultGeometryVisitor
 OGRGeometry visitor default implementation. More...
 
class  IOGRConstGeometryVisitor
 OGRGeometry visitor interface. More...
 
class  OGRDefaultConstGeometryVisitor
 OGRGeometry visitor default implementation. More...
 
class  OGRGeometry
 Abstract base class for all geometry classes. More...
 
class  OGRPoint
 Point class. More...
 
class  OGRPointIterator
 Interface for a point iterator. More...
 
class  OGRCurve
 Abstract curve base class for OGRLineString, OGRCircularString and OGRCompoundCurve. More...
 
class  OGRSimpleCurve
 Abstract curve base class for OGRLineString and OGRCircularString. More...
 
class  OGRLineString
 Concrete representation of a multi-vertex line. More...
 
class  OGRLinearRing
 Concrete representation of a closed ring. More...
 
class  OGRCircularString
 Concrete representation of a circular string, that is to say a curve made of one or several arc circles. More...
 
class  OGRCompoundCurve
 Utility class to store a collection of curves. More...
 
class  OGRSurface
 Abstract base class for 2 dimensional objects like polygons or curve polygons. More...
 
class  OGRCurvePolygon
 Concrete class representing curve polygons. More...
 
class  OGRPolygon
 Concrete class representing polygons. More...
 
class  OGRTriangle
 Triangle class. More...
 
class  OGRGeometryCollection
 A collection of 1 or more geometry objects. More...
 
class  OGRMultiSurface
 A collection of non-overlapping OGRSurface. More...
 
class  OGRMultiPolygon
 A collection of non-overlapping OGRPolygon. More...
 
class  OGRPolyhedralSurface
 PolyhedralSurface class. More...
 
class  OGRTriangulatedSurface
 TriangulatedSurface class. More...
 
class  OGRMultiPoint
 A collection of OGRPoint. More...
 
class  OGRMultiCurve
 A collection of OGRCurve. More...
 
class  OGRMultiLineString
 A collection of OGRLineString. More...
 
class  OGRGeometryFactory
 Create geometry objects from well known text/binary. More...
 

Typedefs

typedef struct GEOSGeom_t * GEOSGeom
 GEOS geometry type.
 
typedef struct GEOSContextHandle_HS * GEOSContextHandle_t
 GEOS context handle type.
 
typedef void sfcgal_geometry_t
 SFCGAL geometry type.
 
typedef std::unique_ptr< OGRGeometry, OGRGeometryUniquePtrDeleter > OGRGeometryUniquePtr
 Unique pointer type for OGRGeometry. More...
 
typedef struct _OGRPreparedGeometry OGRPreparedGeometry
 Prepared geometry API (needs GEOS >= 3.1.0)
 
typedef std::unique_ptr< OGRPreparedGeometry, OGRPreparedGeometryUniquePtrDeleter > OGRPreparedGeometryUniquePtr
 Unique pointer type for OGRPreparedGeometry. More...
 

Functions

OGRwkbGeometryType OGRFromOGCGeomType (const char *pszGeomType)
 Map OGCgeometry format type to corresponding OGR constants. More...
 
const char * OGRToOGCGeomType (OGRwkbGeometryType eGeomType)
 Map OGR geometry format constants to corresponding OGC geometry type. More...
 
int OGRHasPreparedGeometrySupport ()
 Returns if GEOS has prepared geometry support. More...
 
OGRPreparedGeometryOGRCreatePreparedGeometry (const OGRGeometry *poGeom)
 Creates a prepared geometry. More...
 
void OGRDestroyPreparedGeometry (OGRPreparedGeometry *poPreparedGeom)
 Destroys a prepared geometry. More...
 
int OGRPreparedGeometryIntersects (const OGRPreparedGeometry *poPreparedGeom, const OGRGeometry *poOtherGeom)
 Returns whether a prepared geometry intersects with a geometry. More...
 
int OGRPreparedGeometryContains (const OGRPreparedGeometry *poPreparedGeom, const OGRGeometry *poOtherGeom)
 Returns whether a prepared geometry contains a geometry. More...
 

Detailed Description

Simple feature geometry classes.

Typedef Documentation

◆ OGRGeometryUniquePtr

typedef std::unique_ptr<OGRGeometry, OGRGeometryUniquePtrDeleter> OGRGeometryUniquePtr

Unique pointer type for OGRGeometry.

Since
GDAL 2.3

◆ OGRPreparedGeometryUniquePtr

typedef std::unique_ptr<OGRPreparedGeometry, OGRPreparedGeometryUniquePtrDeleter> OGRPreparedGeometryUniquePtr

Unique pointer type for OGRPreparedGeometry.

Since
GDAL 2.3

Function Documentation

◆ OGRCreatePreparedGeometry()

OGRPreparedGeometry* OGRCreatePreparedGeometry ( const OGRGeometry poGeom)

Creates a prepared geometry.

To free with OGRDestroyPreparedGeometry()

Parameters
poGeominput geometry to prepare.
Returns
handle to a prepared geometry.

◆ OGRDestroyPreparedGeometry()

void OGRDestroyPreparedGeometry ( OGRPreparedGeometry poPreparedGeom)

Destroys a prepared geometry.

Parameters
poPreparedGeompreprated geometry.

◆ OGRFromOGCGeomType()

OGRwkbGeometryType OGRFromOGCGeomType ( const char *  pszGeomType)

Map OGCgeometry format type to corresponding OGR constants.

Parameters
pszGeomTypePOINT[ ][Z][M], LINESTRING[ ][Z][M], etc...
Returns
OGR constant.

◆ OGRHasPreparedGeometrySupport()

int OGRHasPreparedGeometrySupport ( )

Returns if GEOS has prepared geometry support.

Returns
TRUE or FALSE

◆ OGRPreparedGeometryContains()

int OGRPreparedGeometryContains ( const OGRPreparedGeometry poPreparedGeom,
const OGRGeometry poOtherGeom 
)

Returns whether a prepared geometry contains a geometry.

Parameters
poPreparedGeomprepared geometry.
poOtherGeomother geometry.
Returns
TRUE or FALSE.

◆ OGRPreparedGeometryIntersects()

int OGRPreparedGeometryIntersects ( const OGRPreparedGeometry poPreparedGeom,
const OGRGeometry poOtherGeom 
)

Returns whether a prepared geometry intersects with a geometry.

Parameters
poPreparedGeomprepared geometry.
poOtherGeomother geometry.
Returns
TRUE or FALSE.

◆ OGRToOGCGeomType()

const char* OGRToOGCGeomType ( OGRwkbGeometryType  eGeomType)

Map OGR geometry format constants to corresponding OGC geometry type.

Parameters
eGeomTypeOGR geometry type
Returns
string with OGC geometry type (without dimensionality)

Generated for GDAL by doxygen 1.8.13.