OGR
|
#include <ogr_feature.h>
Public Member Functions | |
OGRGeomFieldDefn (const char *pszNameIn, OGRwkbGeometryType eGeomTypeIn) | |
Constructor. More... | |
OGRGeomFieldDefn (OGRGeomFieldDefn *) | |
Constructor. More... | |
void | SetName (const char *) |
Reset the name of this field. More... | |
const char * | GetNameRef () |
Fetch name of this field. More... | |
OGRwkbGeometryType | GetType () |
Fetch geometry type of this field. More... | |
void | SetType (OGRwkbGeometryType eTypeIn) |
Set the geometry type of this field. This should never be done to an OGRGeomFieldDefn that is already part of an OGRFeatureDefn. More... | |
virtual OGRSpatialReference * | GetSpatialRef () |
Fetch spatial reference system of this field. More... | |
void | SetSpatialRef (OGRSpatialReference *poSRS) |
Set the spatial reference of this field. More... | |
int | IsIgnored () |
Return whether this field should be omitted when fetching features. More... | |
void | SetIgnored (int bIgnore) |
Set whether this field should be omitted when fetching features. More... | |
int | IsSame (OGRGeomFieldDefn *) |
Test if the geometry field definition is identical to the other one. More... | |
Definition of a geometry field of an OGRFeatureDefn. A geometry field is described by a name, a geometry type and a spatial reference system.
OGRGeomFieldDefn::OGRGeomFieldDefn | ( | const char * | pszNameIn, |
OGRwkbGeometryType | eGeomTypeIn | ||
) |
Constructor.
pszNameIn | the name of the new field. |
eGeomTypeIn | the type of the new field. |
Referenced by OGR_GFld_Create().
OGRGeomFieldDefn::OGRGeomFieldDefn | ( | OGRGeomFieldDefn * | poPrototype | ) |
Constructor.
Create by cloning an existing geometry field definition.
poPrototype | the geometry field definition to clone. |
References GetNameRef(), GetSpatialRef(), GetType(), and SetSpatialRef().
|
inline |
Fetch name of this field.
This method is the same as the C function OGR_GFld_GetNameRef().
Referenced by OGRFeature::DumpReadable(), OGRDataSource::ExecuteSQL(), OGRLayer::GetGeometryColumn(), OGRUnionLayer::GetGeomType(), OGRUnionLayer::GetLayerDefn(), IsSame(), OGRGeomFieldDefn(), and OGRFeature::SetFrom().
|
virtual |
Fetch spatial reference system of this field.
This method is the same as the C function OGR_GFld_GetSpatialRef().
Referenced by OGRUnionLayer::GetLayerDefn(), OGRUnionLayer::GetName(), OGRLayer::GetSpatialRef(), IsSame(), OGRGeomFieldDefn(), and OGRUnionLayer::ResetReading().
|
inline |
Fetch geometry type of this field.
This method is the same as the C function OGR_GFld_GetType().
Referenced by OGRFeatureDefn::GetGeomType(), OGRUnionLayer::GetLayerDefn(), IsSame(), OGRGeomFieldDefn(), and OGRGenSQLResultsLayer::TestCapability().
|
inline |
Return whether this field should be omitted when fetching features.
This method is the same as the C function OGR_GFld_IsIgnored().
Referenced by OGRFeatureDefn::IsGeometryIgnored().
int OGRGeomFieldDefn::IsSame | ( | OGRGeomFieldDefn * | poOtherFieldDefn | ) |
Test if the geometry field definition is identical to the other one.
poOtherFieldDefn | the other field definition to compare to. |
References GetNameRef(), GetSpatialRef(), GetType(), and OGRSpatialReference::IsSame().
Referenced by OGRFeatureDefn::IsSame().
|
inline |
Set whether this field should be omitted when fetching features.
This method is the same as the C function OGR_GFld_SetIgnored().
ignore | ignore state |
Referenced by OGRFeatureDefn::SetGeometryIgnored(), and OGRLayer::SetIgnoredFields().
void OGRGeomFieldDefn::SetName | ( | const char * | pszNameIn | ) |
Reset the name of this field.
This method is the same as the C function OGR_GFld_SetName().
pszNameIn | the new name to apply. |
References CPLStrdup().
void OGRGeomFieldDefn::SetSpatialRef | ( | OGRSpatialReference * | poSRSIn | ) |
Set the spatial reference of this field.
This method is the same as the C function OGR_GFld_SetSpatialRef().
This method drops the reference of the previously set SRS object and acquires a new reference on the passed object (if non-NULL).
poSRSIn | the new SRS to apply. |
References OGRSpatialReference::Reference(), and OGRSpatialReference::Release().
Referenced by OGRUnionLayer::GetLayerDefn(), and OGRGeomFieldDefn().
void OGRGeomFieldDefn::SetType | ( | OGRwkbGeometryType | eType | ) |
Set the geometry type of this field. This should never be done to an OGRGeomFieldDefn that is already part of an OGRFeatureDefn.
This method is the same as the C function OGR_GFld_SetType().
eType | the new field geometry type. |
Referenced by OGRUnionLayer::GetLayerDefn(), and OGRFeatureDefn::SetGeomType().