OGR
|
Go to the source code of this file.
Classes | |
union | OGRField |
Macros | |
#define | OGRERR_NONE 0 |
#define | OGRERR_NOT_ENOUGH_DATA 1 |
#define | OGRERR_NOT_ENOUGH_MEMORY 2 |
#define | OGRERR_UNSUPPORTED_GEOMETRY_TYPE 3 |
#define | OGRERR_UNSUPPORTED_OPERATION 4 |
#define | OGRERR_CORRUPT_DATA 5 |
#define | OGRERR_FAILURE 6 |
#define | OGRERR_UNSUPPORTED_SRS 7 |
#define | OGRERR_INVALID_HANDLE 8 |
#define | OGRERR_NON_EXISTING_FEATURE 9 |
#define | wkb25DBit 0x80000000 |
#define | wkbFlatten(x) OGR_GT_Flatten((OGRwkbGeometryType)(x)) |
#define | wkbHasZ(x) (OGR_GT_HasZ(x) != 0) |
#define | wkbSetZ(x) OGR_GT_SetZ(x) |
#define | wkbHasM(x) (OGR_GT_HasM(x) != 0) |
#define | wkbSetM(x) OGR_GT_SetM(x) |
#define | ALTER_NAME_FLAG 0x1 |
#define | ALTER_TYPE_FLAG 0x2 |
#define | ALTER_WIDTH_PRECISION_FLAG 0x4 |
#define | ALTER_NULLABLE_FLAG 0x8 |
#define | ALTER_DEFAULT_FLAG 0x10 |
#define | ALTER_ALL_FLAG (ALTER_NAME_FLAG | ALTER_TYPE_FLAG | ALTER_WIDTH_PRECISION_FLAG | ALTER_NULLABLE_FLAG | ALTER_DEFAULT_FLAG) |
#define | OGR_F_VAL_NULL 0x00000001 |
#define | OGR_F_VAL_GEOM_TYPE 0x00000002 |
#define | OGR_F_VAL_WIDTH 0x00000004 |
#define | OGR_F_VAL_ALLOW_NULL_WHEN_DEFAULT 0x00000008 |
#define | OGR_F_VAL_ALLOW_DIFFERENT_GEOM_DIM 0x00000010 |
#define | OGR_F_VAL_ALL (0x7FFFFFFF & ~OGR_F_VAL_ALLOW_DIFFERENT_GEOM_DIM) |
#define | OGRNullFID -1 |
#define | OGRUnsetMarker -21121 |
#define | OGRNullMarker -21122 |
#define | OGR_GET_MS(floatingpoint_sec) (int)(((floatingpoint_sec) - (int)(floatingpoint_sec)) * 1000 + 0.5) |
#define | OLCRandomRead "RandomRead" |
#define | OLCSequentialWrite "SequentialWrite" |
#define | OLCRandomWrite "RandomWrite" |
#define | OLCFastSpatialFilter "FastSpatialFilter" |
#define | OLCFastFeatureCount "FastFeatureCount" |
#define | OLCFastGetExtent "FastGetExtent" |
#define | OLCCreateField "CreateField" |
#define | OLCDeleteField "DeleteField" |
#define | OLCReorderFields "ReorderFields" |
#define | OLCAlterFieldDefn "AlterFieldDefn" |
#define | OLCTransactions "Transactions" |
#define | OLCDeleteFeature "DeleteFeature" |
#define | OLCFastSetNextByIndex "FastSetNextByIndex" |
#define | OLCStringsAsUTF8 "StringsAsUTF8" |
#define | OLCIgnoreFields "IgnoreFields" |
#define | OLCCreateGeomField "CreateGeomField" |
#define | OLCCurveGeometries "CurveGeometries" |
#define | OLCMeasuredGeometries "MeasuredGeometries" |
#define | ODsCCreateLayer "CreateLayer" |
#define | ODsCDeleteLayer "DeleteLayer" |
#define | ODsCCreateGeomFieldAfterCreateLayer "CreateGeomFieldAfterCreateLayer" |
#define | ODsCCurveGeometries "CurveGeometries" |
#define | ODsCTransactions "Transactions" |
#define | ODsCEmulatedTransactions "EmulatedTransactions" |
#define | ODsCMeasuredGeometries "MeasuredGeometries" |
#define | ODsCRandomLayerRead "RandomLayerRead" |
#define | ODsCRandomLayerWrite "RandomLayerWrite " |
#define | ODrCCreateDataSource "CreateDataSource" |
#define | ODrCDeleteDataSource "DeleteDataSource" |
#define | OLMD_FID64 "OLMD_FID64" |
Typedefs | |
typedef int | OGRErr |
typedef int | OGRBoolean |
typedef enum ogr_style_tool_class_id | OGRSTClassId |
typedef enum ogr_style_tool_units_id | OGRSTUnitId |
typedef enum ogr_style_tool_param_pen_id | OGRSTPenParam |
typedef enum ogr_style_tool_param_brush_id | OGRSTBrushParam |
typedef enum ogr_style_tool_param_symbol_id | OGRSTSymbolParam |
typedef enum ogr_style_tool_param_label_id | OGRSTLabelParam |
Functions | |
const char * | OGRGeometryTypeToName (OGRwkbGeometryType eType) |
Fetch a human readable name corresponding to an OGRwkbGeometryType value. The returned value should not be modified, or freed by the application. More... | |
OGRwkbGeometryType | OGRMergeGeometryTypes (OGRwkbGeometryType eMain, OGRwkbGeometryType eExtra) |
Find common geometry type. More... | |
OGRwkbGeometryType | OGRMergeGeometryTypesEx (OGRwkbGeometryType eMain, OGRwkbGeometryType eExtra, int bAllowPromotingToCurves) |
Find common geometry type. More... | |
OGRwkbGeometryType | OGR_GT_Flatten (OGRwkbGeometryType eType) |
Returns the 2D geometry type corresponding to the passed geometry type. More... | |
OGRwkbGeometryType | OGR_GT_SetZ (OGRwkbGeometryType eType) |
Returns the 3D geometry type corresponding to the passed geometry type. More... | |
OGRwkbGeometryType | OGR_GT_SetM (OGRwkbGeometryType eType) |
Returns the measured geometry type corresponding to the passed geometry type. More... | |
OGRwkbGeometryType | OGR_GT_SetModifier (OGRwkbGeometryType eType, int bSetZ, int bSetM) |
Returns a XY, XYZ, XYM or XYZM geometry type depending on parameter. More... | |
int | OGR_GT_HasZ (OGRwkbGeometryType eType) |
Return if the geometry type is a 3D geometry type. More... | |
int | OGR_GT_HasM (OGRwkbGeometryType eType) |
Return if the geometry type is a measured type. More... | |
int | OGR_GT_IsSubClassOf (OGRwkbGeometryType eType, OGRwkbGeometryType eSuperType) |
Returns if a type is a subclass of another one. More... | |
int | OGR_GT_IsCurve (OGRwkbGeometryType) |
Return if a geometry type is an instance of Curve. More... | |
int | OGR_GT_IsSurface (OGRwkbGeometryType) |
Return if a geometry type is an instance of Surface. More... | |
int | OGR_GT_IsNonLinear (OGRwkbGeometryType) |
Return if a geometry type is a non-linear geometry type. More... | |
OGRwkbGeometryType | OGR_GT_GetCollection (OGRwkbGeometryType eType) |
Returns the collection type that can contain the passed geometry type. More... | |
OGRwkbGeometryType | OGR_GT_GetCurve (OGRwkbGeometryType eType) |
Returns the curve geometry type that can contain the passed geometry type. More... | |
OGRwkbGeometryType | OGR_GT_GetLinear (OGRwkbGeometryType eType) |
Returns the non-curve geometry type that can contain the passed geometry type. More... | |
Core portability services for cross-platform OGR code.
#define ALTER_ALL_FLAG (ALTER_NAME_FLAG | ALTER_TYPE_FLAG | ALTER_WIDTH_PRECISION_FLAG | ALTER_NULLABLE_FLAG | ALTER_DEFAULT_FLAG) |
Alter all parameters of field definition. Used by OGR_L_AlterFieldDefn().
#define ALTER_DEFAULT_FLAG 0x10 |
Alter field DEFAULT value. Used by OGR_L_AlterFieldDefn().
#define ALTER_NAME_FLAG 0x1 |
Alter field name. Used by OGR_L_AlterFieldDefn().
#define ALTER_NULLABLE_FLAG 0x8 |
Alter field NOT NULL constraint. Used by OGR_L_AlterFieldDefn().
#define ALTER_TYPE_FLAG 0x2 |
Alter field type. Used by OGR_L_AlterFieldDefn().
#define ALTER_WIDTH_PRECISION_FLAG 0x4 |
Alter field width and precision. Used by OGR_L_AlterFieldDefn().
#define ODrCCreateDataSource "CreateDataSource" |
Driver capability for datasource creation
#define ODrCDeleteDataSource "DeleteDataSource" |
Driver capability for datasource deletion
#define ODsCCreateGeomFieldAfterCreateLayer "CreateGeomFieldAfterCreateLayer" |
Dataset capability for geometry field creation support
#define ODsCCreateLayer "CreateLayer" |
Dataset capability for layer creation
#define ODsCCurveGeometries "CurveGeometries" |
Dataset capability for curve geometries support
#define ODsCDeleteLayer "DeleteLayer" |
Dataset capability for layer deletion
#define ODsCEmulatedTransactions "EmulatedTransactions" |
Dataset capability for emulated dataset transactions
#define ODsCMeasuredGeometries "MeasuredGeometries" |
Dataset capability for measured geometries support
#define ODsCRandomLayerRead "RandomLayerRead" |
Dataset capability for GetNextFeature() returning features from random layers
#define ODsCRandomLayerWrite "RandomLayerWrite " |
Dataset capability for supporting CreateFeature on layer in random order
#define ODsCTransactions "Transactions" |
Dataset capability for dataset transcations
#define OGR_F_VAL_ALL (0x7FFFFFFF & ~OGR_F_VAL_ALLOW_DIFFERENT_GEOM_DIM) |
Enable all validation tests (except OGR_F_VAL_ALLOW_DIFFERENT_GEOM_DIM) Used by OGR_F_Validate().
#define OGR_F_VAL_ALLOW_DIFFERENT_GEOM_DIM 0x00000010 |
Allow geometry fields to have a different coordinate dimension that their geometry column type. This flag only makes sense if OGR_F_VAL_GEOM_TYPE is set too. Used by OGR_F_Validate().
#define OGR_F_VAL_ALLOW_NULL_WHEN_DEFAULT 0x00000008 |
Allow fields that are null when there's an associated default value. This can be used for drivers where the low-level layers will automatically set the field value to the associated default value. This flag only makes sense if OGR_F_VAL_NULL is set too. Used by OGR_F_Validate().
#define OGR_F_VAL_GEOM_TYPE 0x00000002 |
Validate that geometries respect geometry column type. Used by OGR_F_Validate().
#define OGR_F_VAL_NULL 0x00000001 |
Validate that fields respect not-null constraints. Used by OGR_F_Validate().
Referenced by OGRFeature::Validate().
#define OGR_F_VAL_WIDTH 0x00000004 |
Validate that (string) fields respect field width. Used by OGR_F_Validate().
#define OGR_GET_MS | ( | floatingpoint_sec | ) | (int)(((floatingpoint_sec) - (int)(floatingpoint_sec)) * 1000 + 0.5) |
Return the number of milliseconds from a datetime with decimal seconds
Referenced by OGRFeature::GetFieldAsString().
#define OGRERR_CORRUPT_DATA 5 |
Corrupt data
Referenced by OGRGeometryFactory::createFromWkb(), OGRGeometryFactory::createFromWkt(), OGRSpatialReference::importFromESRI(), OGRSpatialReference::importFromPCI(), OGRSpatialReference::importFromProj4(), OGRSpatialReference::importFromUSGS(), OGRSimpleCurve::importFromWkb(), OGRCircularString::importFromWkb(), OGRTriangle::importFromWkb(), OGRPolyhedralSurface::importFromWkb(), OGRPoint::importFromWkt(), OGRSimpleCurve::importFromWkt(), OGRCircularString::importFromWkt(), OGRMultiSurface::importFromWkt(), OGRMultiPoint::importFromWkt(), OGRSpatialReference::importFromXML(), OGRSpatialReference::SetFromUserInput(), and OGRSpatialReference::Validate().
#define OGRERR_FAILURE 6 |
Failure
Referenced by OGRGeometryCollection::addGeometry(), OGRPolyhedralSurface::addGeometry(), OGRTriangulatedSurface::addGeometry(), OGRGeometryCollection::addGeometryDirectly(), OGRPolyhedralSurface::addGeometryDirectly(), OGRCurvePolygon::addRing(), OGRTriangle::addRingDirectly(), OGRGeometry::Centroid(), OGRSpatialReference::CopyGeogCSFrom(), OGRFeatureDefn::DeleteFieldDefn(), OGRFeatureDefn::DeleteGeomFieldDefn(), OGRSpatialReference::exportToMICoordSys(), OGRCircularString::exportToWkb(), OGRCircularString::exportToWkt(), OGRSpatialReference::GetInvFlattening(), OGRSpatialReference::GetProjParm(), OGRSpatialReference::GetSemiMajor(), OGRSpatialReference::GetTOWGS84(), OGRSpatialReference::ImportFromESRIStatePlaneWKT(), OGRSpatialReference::ImportFromESRIWisconsinWKT(), OGRSpatialReference::importFromMICoordSys(), OGRSpatialReference::importFromWkt(), OGR_DS_SyncToDisk(), OGR_F_SetFID(), OGR_F_SetFrom(), OGR_F_SetFromWithMap(), OGR_F_SetGeometry(), OGR_F_SetGeometryDirectly(), OGR_F_SetGeomField(), OGR_F_SetGeomFieldDirectly(), OGR_G_Centroid(), OGR_G_ExportToIsoWkb(), OGR_G_ExportToIsoWkt(), OGR_G_ExportToWkb(), OGR_G_ExportToWkt(), OGR_G_ImportFromWkb(), OGR_G_ImportFromWkt(), OGR_G_RemoveGeometry(), OGR_G_Transform(), OGR_G_TransformTo(), OSRAutoIdentifyEPSG(), OSRCopyGeogCSFrom(), OSREPSGTreatsAsLatLong(), OSREPSGTreatsAsNorthingEasting(), OSRExportToERM(), OSRExportToMICoordSys(), OSRExportToPanorama(), OSRExportToPCI(), OSRExportToUSGS(), OSRExportToXML(), OSRFixup(), OSRFixupOrdering(), OSRGetTOWGS84(), OSRImportFromDict(), OSRImportFromERM(), OSRImportFromESRI(), OSRImportFromMICoordSys(), OSRImportFromOzi(), OSRImportFromPanorama(), OSRImportFromPCI(), OSRImportFromProj4(), OSRImportFromUrl(), OSRImportFromUSGS(), OSRImportFromWkt(), OSRImportFromXML(), OSRMorphFromESRI(), OSRMorphToESRI(), OSRSetACEA(), OSRSetAE(), OSRSetAngularUnits(), OSRSetAuthority(), OSRSetAxes(), OSRSetBonne(), OSRSetCEA(), OSRSetCompoundCS(), OSRSetCS(), OSRSetEC(), OSRSetEckert(), OSRSetEckertIV(), OSRSetEckertVI(), OSRSetEquirectangular(), OSRSetEquirectangular2(), OSRSetGaussSchreiberTMercator(), OSRSetGeocCS(), OSRSetGeogCS(), OSRSetGEOS(), OSRSetGH(), OSRSetGnomonic(), OSRSetGS(), OSRSetHOM(), OSRSetHOM2PNO(), OSRSetHOMAC(), OSRSetIGH(), OSRSetIWMPolyconic(), OSRSetKrovak(), OSRSetLAEA(), OSRSetLCC(), OSRSetLCC1SP(), OSRSetLCCB(), OSRSetLinearUnits(), OSRSetLinearUnitsAndUpdateParameters(), OSRSetLocalCS(), OSRSetMC(), OSRSetMercator(), OSRSetMercator2SP(), OSRSetMollweide(), OSRSetNormProjParm(), OSRSetNZMG(), OSRSetOrthographic(), OSRSetOS(), OSRSetPolyconic(), OSRSetProjCS(), OSRSetProjection(), OSRSetProjParm(), OSRSetPS(), OSRSetQSC(), OSRSetRobinson(), OSRSetSCH(), OSRSetSinusoidal(), OSRSetSOC(), OSRSetStatePlane(), OSRSetStatePlaneWithUnits(), OSRSetStereographic(), OSRSetTargetLinearUnits(), OSRSetTM(), OSRSetTMG(), OSRSetTMSO(), OSRSetTMVariant(), OSRSetTOWGS84(), OSRSetTPED(), OSRSetUTM(), OSRSetVDG(), OSRSetVertCS(), OSRSetWagner(), OSRSetWellKnownGeogCS(), OSRStripCTParms(), OSRValidate(), OGRGeometryCollection::removeGeometry(), OGRSpatialReference::SetAngularUnits(), OGRSpatialReference::SetAuthority(), OGRSpatialReference::SetAxes(), OGRSpatialReference::SetExtension(), OGRFeature::SetFieldsFrom(), OGRFeature::SetFrom(), OGRSpatialReference::SetFromUserInput(), OGRSpatialReference::SetGeocCS(), OGRSpatialReference::SetGeogCS(), OGRFeature::SetGeometry(), OGRFeature::SetGeometryDirectly(), OGRFeature::SetGeomField(), OGRFeature::SetGeomFieldDirectly(), OGRLayer::SetIgnoredFields(), OGRSpatialReference::SetLinearUnitsAndUpdateParameters(), OGRSpatialReference::SetLocalCS(), OGRLayer::SetNextByIndex(), OGRSpatialReference::SetNode(), OGRSpatialReference::SetProjCS(), OGRSpatialReference::SetProjParm(), OGRSpatialReference::SetStatePlane(), OGRSpatialReference::SetTargetLinearUnits(), OGRSpatialReference::SetTOWGS84(), OGRSpatialReference::SetWellKnownGeogCS(), OGRPoint::transform(), OGRGeometryCollection::transform(), and OGRGeometry::transformTo().
#define OGRERR_INVALID_HANDLE 8 |
Invalid handle
Referenced by OGR_DS_DeleteLayer(), OGR_DS_SyncToDisk(), OGR_L_AlterFieldDefn(), OGR_L_Clip(), OGR_L_CommitTransaction(), OGR_L_CreateFeature(), OGR_L_CreateField(), OGR_L_CreateGeomField(), OGR_L_DeleteFeature(), OGR_L_DeleteField(), OGR_L_Erase(), OGR_L_GetExtent(), OGR_L_GetExtentEx(), OGR_L_Identity(), OGR_L_Intersection(), OGR_L_ReorderField(), OGR_L_ReorderFields(), OGR_L_RollbackTransaction(), OGR_L_SetAttributeFilter(), OGR_L_SetFeature(), OGR_L_SetIgnoredFields(), OGR_L_SetNextByIndex(), OGR_L_StartTransaction(), OGR_L_SymDifference(), OGR_L_SyncToDisk(), OGR_L_Union(), and OGR_L_Update().
#define OGRERR_NON_EXISTING_FEATURE 9 |
Non existing feature. Added in GDAL 2.0
#define OGRERR_NONE 0 |
Success
Referenced by OGRCompoundCurve::addCurve(), OGRGeometryCollection::addGeometry(), OGRPolyhedralSurface::addGeometry(), OGRTriangulatedSurface::addGeometry(), OGRGeometryCollection::addGeometryDirectly(), OGRPolyhedralSurface::addGeometryDirectly(), OGRCurvePolygon::addRing(), OGR_SRSNode::applyRemapper(), OGRSpatialReference::AutoIdentifyEPSG(), OGRCurve::CastToCompoundCurve(), OGRLayer::Clip(), OGRCurvePolygon::clone(), OGRGeometryCollection::clone(), OGRPolyhedralSurface::clone(), OGRLayer::CommitTransaction(), OGRSpatialReference::CopyGeogCSFrom(), OGRGeometryFactory::createFromWkb(), OGRGeometryFactory::createFromWkt(), OGRFeatureDefn::DeleteFieldDefn(), OGRFeatureDefn::DeleteGeomFieldDefn(), OGRLayer::Erase(), OGRSpatialReference::exportToERM(), OGRSpatialReference::exportToMICoordSys(), OGRSpatialReference::exportToPanorama(), OGRSpatialReference::exportToPCI(), OGR_SRSNode::exportToPrettyWkt(), OGRSpatialReference::exportToPrettyWkt(), OGRSpatialReference::exportToUSGS(), OGRPoint::exportToWkb(), OGRSimpleCurve::exportToWkb(), OGRPolygon::exportToWkb(), OGRPolyhedralSurface::exportToWkb(), OGR_SRSNode::exportToWkt(), OGRSpatialReference::exportToWkt(), OGRPoint::exportToWkt(), OGRSimpleCurve::exportToWkt(), OGRPolygon::exportToWkt(), OGRMultiPoint::exportToWkt(), OGRSpatialReference::exportToXML(), OGR_SRSNode::FixupOrdering(), OGRSpatialReference::FixupOrdering(), OGRGeometryFactory::forceTo(), OGRFeature::GetFieldAsString(), OGRSpatialReference::GetInvFlattening(), OGRSpatialReference::GetNormProjParm(), OGRSpatialReference::GetProjParm(), OGRSpatialReference::GetSemiMajor(), OGRSpatialReference::GetTOWGS84(), OGRLayer::Identity(), OGRSpatialReference::importFromEPSG(), OGRSpatialReference::importFromERM(), OGRSpatialReference::importFromESRI(), OGRSpatialReference::ImportFromESRIStatePlaneWKT(), OGRSpatialReference::ImportFromESRIWisconsinWKT(), OGRSpatialReference::importFromMICoordSys(), OGRSpatialReference::importFromPanorama(), OGRSpatialReference::importFromProj4(), OGRPoint::importFromWkb(), OGRSimpleCurve::importFromWkb(), OGRCircularString::importFromWkb(), OGRCompoundCurve::importFromWkb(), OGRCurvePolygon::importFromWkb(), OGRPolygon::importFromWkb(), OGRTriangle::importFromWkb(), OGRPolyhedralSurface::importFromWkb(), OGRSpatialReference::importFromWkt(), OGRPoint::importFromWkt(), OGRSimpleCurve::importFromWkt(), OGRCircularString::importFromWkt(), OGRPolygon::importFromWkt(), OGRMultiSurface::importFromWkt(), OGRPolyhedralSurface::importFromWkt(), OGRMultiPoint::importFromWkt(), OGRLayer::Intersection(), OGRSpatialReference::morphFromESRI(), OGRSpatialReference::morphToESRI(), OGR_DS_SyncToDisk(), OGR_G_AddGeometryDirectly(), OGRTriangle::OGRTriangle(), OGRGeometryCollection::removeGeometry(), OGRFeatureDefn::ReorderFieldDefns(), OGRSpatialReference::SetACEA(), OGRSpatialReference::SetAE(), OGRSpatialReference::SetAngularUnits(), OGRLayer::SetAttributeFilter(), OGRSpatialReference::SetAuthority(), OGRSpatialReference::SetAxes(), OGRSpatialReference::SetBonne(), OGRSpatialReference::SetCEA(), OGRSpatialReference::SetCS(), OGRSpatialReference::SetEC(), OGRSpatialReference::SetEckertIV(), OGRSpatialReference::SetEckertVI(), OGRSpatialReference::SetEquirectangular(), OGRSpatialReference::SetEquirectangular2(), OGRSpatialReference::SetExtension(), OGRFeature::SetFID(), OGRFeature::SetFieldsFrom(), OGRFeature::SetFrom(), OGRSpatialReference::SetFromUserInput(), OGRSpatialReference::SetGaussSchreiberTMercator(), OGRSpatialReference::SetGeocCS(), OGRSpatialReference::SetGeogCS(), OGRFeature::SetGeomField(), OGRFeature::SetGeomFieldDirectly(), OGRSpatialReference::SetGEOS(), OGRSpatialReference::SetGH(), OGRSpatialReference::SetGnomonic(), OGRSpatialReference::SetGS(), OGRSpatialReference::SetHOM(), OGRSpatialReference::SetHOM2PNO(), OGRSpatialReference::SetHOMAC(), OGRSpatialReference::SetIGH(), OGRLayer::SetIgnoredFields(), OGRSpatialReference::SetIWMPolyconic(), OGRSpatialReference::SetKrovak(), OGRSpatialReference::SetLAEA(), OGRSpatialReference::SetLCC(), OGRSpatialReference::SetLCC1SP(), OGRSpatialReference::SetLCCB(), OGRSpatialReference::SetLocalCS(), OGRSpatialReference::SetMC(), OGRSpatialReference::SetMercator(), OGRSpatialReference::SetMercator2SP(), OGRSpatialReference::SetMollweide(), OGRLayer::SetNextByIndex(), OGRSpatialReference::SetNode(), OGRSpatialReference::SetNZMG(), OGRSpatialReference::SetOrthographic(), OGRSpatialReference::SetOS(), OGRSpatialReference::SetPolyconic(), OGRSpatialReference::SetProjCS(), OGRSpatialReference::SetProjection(), OGRSpatialReference::SetProjParm(), OGRSpatialReference::SetPS(), OGRSpatialReference::SetQSC(), OGRSpatialReference::SetRobinson(), OGRSpatialReference::SetSCH(), OGRSpatialReference::SetSinusoidal(), OGRSpatialReference::SetSOC(), OGRSpatialReference::SetStereographic(), OGRSpatialReference::SetTargetLinearUnits(), OGRSpatialReference::SetTM(), OGRSpatialReference::SetTMG(), OGRSpatialReference::SetTMSO(), OGRSpatialReference::SetTMVariant(), OGRSpatialReference::SetTOWGS84(), OGRSpatialReference::SetTPED(), OGRSpatialReference::SetVDG(), OGRSpatialReference::SetVertCS(), OGRSpatialReference::SetWellKnownGeogCS(), OGRLayer::StartTransaction(), OGRSpatialReference::StripCTParms(), OGRSpatialReference::StripVertical(), OGRLayer::SymDifference(), OGRLayer::SyncToDisk(), OGRPoint::transform(), OGRGeometryCollection::transform(), OGRGeometryFactory::transformWithOptions(), OGRLayer::Union(), OGRLayer::Update(), and OGRSpatialReference::Validate().
#define OGRERR_NOT_ENOUGH_DATA 1 |
Not enough data to deserialize
Referenced by OGRGeometryFactory::createFromWkb(), OGRSpatialReference::importFromOzi(), OGRPoint::importFromWkb(), and OGRPolyhedralSurface::importFromWkb().
#define OGRERR_NOT_ENOUGH_MEMORY 2 |
#define OGRERR_UNSUPPORTED_GEOMETRY_TYPE 3 |
Unsupported geometry type
Referenced by OGRPolyhedralSurface::addGeometry(), OGRTriangulatedSurface::addGeometry(), OGRGeometryCollection::addGeometryDirectly(), OGRPolyhedralSurface::addGeometryDirectly(), OGRGeometryFactory::createFromWkb(), OGRGeometryFactory::createFromWkt(), OGR_G_AddGeometry(), and OGR_G_AddGeometryDirectly().
#define OGRERR_UNSUPPORTED_OPERATION 4 |
Unsupported operation
Referenced by OGRLayer::Clip(), OGRLayer::DeleteFeature(), OGRLayer::Erase(), OGRLinearRing::exportToWkb(), OGRLayer::ICreateFeature(), OGRLayer::Identity(), OGRLinearRing::importFromWkb(), OGRLayer::Intersection(), OGRLayer::ISetFeature(), OGR_G_AddGeometry(), OGR_G_AddGeometryDirectly(), OGRLayer::RollbackTransaction(), OGRLayer::SymDifference(), OGRLayer::Union(), and OGRLayer::Update().
#define OGRERR_UNSUPPORTED_SRS 7 |
#define OGRNullFID -1 |
Special value for a unset FID
Referenced by OGRFeature::IsFieldSet(), and OGRFeature::SetFrom().
#define OGRNullMarker -21122 |
Special value set in OGRField.Set.nMarker1, nMarker2 and nMarker3 for a null field. Direct use of this value is strongly discouraged. Use OGR_RawField_SetNull() or OGR_RawField_IsNull() instead.
Referenced by OGR_RawField_IsNull(), and OGR_RawField_SetNull().
#define OGRUnsetMarker -21121 |
Special value set in OGRField.Set.nMarker1, nMarker2 and nMarker3 for a unset field. Direct use of this value is strongly discouraged. Use OGR_RawField_SetUnset() or OGR_RawField_IsUnset() instead.
Referenced by OGR_RawField_IsUnset(), and OGR_RawField_SetUnset().
#define OLCAlterFieldDefn "AlterFieldDefn" |
Layer capability for field alteration
#define OLCCreateField "CreateField" |
Layer capability for field creation
#define OLCCreateGeomField "CreateGeomField" |
Layer capability for geometry field creation
#define OLCCurveGeometries "CurveGeometries" |
Layer capability for curve geometries support
#define OLCDeleteFeature "DeleteFeature" |
Layer capability for feature deletion
#define OLCDeleteField "DeleteField" |
Layer capability for field deletion
#define OLCFastFeatureCount "FastFeatureCount" |
Layer capability for fast feature count retrieval
#define OLCFastGetExtent "FastGetExtent" |
Layer capability for fast extent retrieval
#define OLCFastSetNextByIndex "FastSetNextByIndex" |
Layer capability for setting next feature index
#define OLCFastSpatialFilter "FastSpatialFilter" |
Layer capability for fast spatial filter
#define OLCIgnoreFields "IgnoreFields" |
Layer capability for field ignoring
#define OLCMeasuredGeometries "MeasuredGeometries" |
Layer capability for measured geometries support
#define OLCRandomRead "RandomRead" |
Layer capability for random read
#define OLCRandomWrite "RandomWrite" |
Layer capability for random write
#define OLCReorderFields "ReorderFields" |
Layer capability for field reordering
#define OLCSequentialWrite "SequentialWrite" |
Layer capability for sequential write
#define OLCStringsAsUTF8 "StringsAsUTF8" |
Layer capability for strings returned with UTF-8 encoding
#define OLCTransactions "Transactions" |
Layer capability for transactions
#define OLMD_FID64 "OLMD_FID64" |
Capability set to YES as metadata on a layer that has features with 64 bit identifiers.
#define wkb25DBit 0x80000000 |
#define wkbFlatten | ( | x | ) | OGR_GT_Flatten((OGRwkbGeometryType)(x)) |
Return the 2D geometry type corresponding to the specified geometry type
Referenced by OGRGeometryCollection::CastToGeometryCollection(), OGRGeometryCollection::closeRings(), OGRCurvePolygon::Contains(), OGRGeometryFactory::createGeometry(), OGRPoint::exportToWkb(), OGRSimpleCurve::exportToWkb(), OGRPolygon::exportToWkb(), OGRGeometryCollection::exportToWkb(), OGRGeometryFactory::forceTo(), OGRGeometryFactory::forceToLineString(), OGRGeometryFactory::forceToMultiLineString(), OGRGeometryFactory::forceToMultiPoint(), OGRGeometryFactory::forceToMultiPolygon(), OGRGeometryFactory::forceToPolygon(), OGRGeometryCollection::get_Area(), OGRGeometryCollection::get_Length(), OGRPolygon::getCurveGeometry(), OGRGeometry::getIsoGeometryType(), OGRMultiCurve::importFromWkt(), OGRPoint::Intersects(), OGRCurvePolygon::Intersects(), OGRMultiPolygon::isCompatibleSubType(), OGRMultiPoint::isCompatibleSubType(), OGRMultiLineString::isCompatibleSubType(), OGR_G_AddGeometry(), OGR_G_AddGeometryDirectly(), OGR_G_AddPoint(), OGR_G_AddPoint_2D(), OGR_G_AddPointM(), OGR_G_AddPointZM(), OGR_G_Area(), OGR_G_Centroid(), OGR_G_GetGeometryCount(), OGR_G_GetGeometryRef(), OGR_G_GetM(), OGR_G_GetPoint(), OGR_G_GetPointCount(), OGR_G_GetPoints(), OGR_G_GetPointsZM(), OGR_G_GetPointZM(), OGR_G_GetX(), OGR_G_GetY(), OGR_G_GetZ(), OGR_G_Length(), OGR_G_RemoveGeometry(), OGR_G_SetPoint(), OGR_G_SetPoint_2D(), OGR_G_SetPointCount(), OGR_G_SetPointM(), OGR_G_SetPointZM(), OGR_GT_GetCollection(), OGR_GT_GetCurve(), OGR_GT_GetLinear(), OGR_GT_IsNonLinear(), OGR_GT_IsSubClassOf(), OGR_GT_SetModifier(), OGRGeometryTypeToName(), OGRMergeGeometryTypesEx(), OGRToOGCGeomType(), OGRGeometryFactory::transformWithOptions(), and OGRPoint::Within().
#define wkbHasM | ( | x | ) | (OGR_GT_HasM(x) != 0) |
Return if the geometry type is a measured geometry type
Referenced by OGR_GT_GetCollection(), OGR_GT_GetCurve(), OGR_GT_GetLinear(), OGRGeometryTypeToName(), and OGRMergeGeometryTypesEx().
#define wkbHasZ | ( | x | ) | (OGR_GT_HasZ(x) != 0) |
Return if the geometry type is a 3D geometry type
Referenced by OGRGeometryCollection::exportToWkb(), OGR_GT_GetCollection(), OGR_GT_GetCurve(), OGR_GT_GetLinear(), OGRGeometryTypeToName(), and OGRMergeGeometryTypesEx().
#define wkbSetM | ( | x | ) | OGR_GT_SetM(x) |
Return the measured geometry type corresponding to the specified geometry type.
Referenced by OGR_GT_GetCollection(), OGR_GT_GetCurve(), OGR_GT_GetLinear(), and OGRFromOGCGeomType().
#define wkbSetZ | ( | x | ) | OGR_GT_SetZ(x) |
Return the 3D geometry type corresponding to the specified geometry type.
Referenced by OGR_GT_GetCollection(), OGR_GT_GetCurve(), OGR_GT_GetLinear(), and OGRFromOGCGeomType().
typedef int OGRBoolean |
Type for a OGR boolean
typedef int OGRErr |
Simple container for a bounding region.
Type for a OGR error
typedef enum ogr_style_tool_param_brush_id OGRSTBrushParam |
List of parameters for use with OGRStyleBrush.
typedef enum ogr_style_tool_class_id OGRSTClassId |
OGRStyleTool derived class types (returned by GetType()).
typedef enum ogr_style_tool_param_label_id OGRSTLabelParam |
List of parameters for use with OGRStyleLabel.
typedef enum ogr_style_tool_param_pen_id OGRSTPenParam |
List of parameters for use with OGRStylePen.
typedef enum ogr_style_tool_param_symbol_id OGRSTSymbolParam |
List of parameters for use with OGRStyleSymbol.
typedef enum ogr_style_tool_units_id OGRSTUnitId |
List of units supported by OGRStyleTools.
OGRStyleTool derived class types (returned by GetType()).
Enumerator | |
---|---|
OGRSTCNone | None |
OGRSTCPen | Pen |
OGRSTCBrush | Brush |
OGRSTCSymbol | Symbol |
OGRSTCLabel | Label |
OGRSTCVector | Vector |
List of parameters for use with OGRStyleLabel.
List of parameters for use with OGRStyleSymbol.
enum OGRFieldSubType |
List of field subtypes. A subtype represents a hint, a restriction of the main type, that is not strictly necessary to consult. This list is likely to be extended in the future ... avoid coding applications based on the assumption that all field types can be known. Most subtypes only make sense for a restricted set of main types.
enum OGRFieldType |
List of feature field types. This list is likely to be extended in the future ... avoid coding applications based on the assumption that all field types can be known.
enum OGRJustification |
Display justification for field values.
enum OGRwkbByteOrder |
enum OGRwkbGeometryType |
List of well known binary geometry types. These are used within the BLOBs but are also returned from OGRGeometry::getGeometryType() to identify the type of a geometry object.
enum OGRwkbVariant |
Output variants of WKB we support.
99-402 was a short-lived extension to SFSQL 1.1 that used a high-bit flag to indicate the presence of Z coordinates in a WKB geometry.
SQL/MM Part 3 and SFSQL 1.2 use offsets of 1000 (Z), 2000 (M) and 3000 (ZM) to indicate the present of higher dimensional coordinates in a WKB geometry. Reference: 09-009_Committee_Draft_ISOIEC_CD_13249-3_SQLMM_Spatial.pdf, ISO/IEC JTC 1/SC 32 N 1820, ISO/IEC CD 13249-3:201x(E), Date: 2009-01-16. The codes are also found in §8.2.3 of OGC 06-103r4 "OpenGIS® Implementation Standard for Geographic information - Simple feature access - Part 1: Common architecture", v1.2.1
OGRwkbGeometryType OGR_GT_Flatten | ( | OGRwkbGeometryType | eType | ) |
Returns the 2D geometry type corresponding to the passed geometry type.
This function is intended to work with geometry types as old-style 99-402 extended dimension (Z) WKB types, as well as with newer SFSQL 1.2 and ISO SQL/MM Part 3 extended dimension (Z&M) WKB types.
eType | Input geometry type |
OGRwkbGeometryType OGR_GT_GetCollection | ( | OGRwkbGeometryType | eType | ) |
Returns the collection type that can contain the passed geometry type.
Handled conversions are : wkbNone->wkbNone, wkbPoint -> wkbMultiPoint, wkbLineString->wkbMultiLineString, wkbPolygon/wkbTriangle/wkbPolyhedralSurface/wkbTIN->wkbMultiPolygon, wkbCircularString->wkbMultiCurve, wkbCompoundCurve->wkbMultiCurve, wkbCurvePolygon->wkbMultiSurface. In other cases, wkbUnknown is returned
Passed Z, M, ZM flag is preserved.
eType | Input geometry type |
References OGR_GT_IsCurve(), OGR_GT_IsSurface(), wkbFlatten, wkbHasM, wkbHasZ, wkbLineString, wkbMultiCurve, wkbMultiLineString, wkbMultiPoint, wkbMultiPolygon, wkbMultiSurface, wkbNone, wkbPoint, wkbPolygon, wkbSetM, wkbSetZ, wkbTIN, wkbTriangle, and wkbUnknown.
Referenced by OGRGeometryFactory::forceTo().
OGRwkbGeometryType OGR_GT_GetCurve | ( | OGRwkbGeometryType | eType | ) |
Returns the curve geometry type that can contain the passed geometry type.
Handled conversions are : wkbPolygon -> wkbCurvePolygon, wkbLineString->wkbCompoundCurve, wkbMultiPolygon->wkbMultiSurface and wkbMultiLineString->wkbMultiCurve. In other cases, the passed geometry is returned.
Passed Z, M, ZM flag is preserved.
eType | Input geometry type |
References wkbCompoundCurve, wkbCurvePolygon, wkbFlatten, wkbHasM, wkbHasZ, wkbLineString, wkbMultiCurve, wkbMultiLineString, wkbMultiPolygon, wkbMultiSurface, wkbPolygon, wkbSetM, wkbSetZ, and wkbTriangle.
Referenced by OGRGeometryCollection::getCurveGeometry().
OGRwkbGeometryType OGR_GT_GetLinear | ( | OGRwkbGeometryType | eType | ) |
Returns the non-curve geometry type that can contain the passed geometry type.
Handled conversions are : wkbCurvePolygon -> wkbPolygon, wkbCircularString->wkbLineString, wkbCompoundCurve->wkbLineString, wkbMultiSurface->wkbMultiPolygon and wkbMultiCurve->wkbMultiLineString. In other cases, the passed geometry is returned.
Passed Z, M, ZM flag is preserved.
eType | Input geometry type |
References OGR_GT_IsCurve(), OGR_GT_IsSurface(), wkbFlatten, wkbHasM, wkbHasZ, wkbLineString, wkbMultiCurve, wkbMultiLineString, wkbMultiPolygon, wkbMultiSurface, wkbPolygon, wkbSetM, and wkbSetZ.
Referenced by OGRGeometryCollection::getLinearGeometry(), OGR_F_GetGeometryRef(), OGR_F_GetGeomFieldRef(), OGR_FD_GetGeomType(), OGR_GFld_GetType(), and OGR_L_GetGeomType().
int OGR_GT_HasM | ( | OGRwkbGeometryType | eType | ) |
Return if the geometry type is a measured type.
eType | Input geometry type |
Referenced by OGR_GT_SetM().
int OGR_GT_HasZ | ( | OGRwkbGeometryType | eType | ) |
Return if the geometry type is a 3D geometry type.
eType | Input geometry type |
Referenced by OGR_GT_SetZ().
int OGR_GT_IsCurve | ( | OGRwkbGeometryType | eGeomType | ) |
Return if a geometry type is an instance of Curve.
Such geometry type are wkbLineString, wkbCircularString, wkbCompoundCurve and their Z/M/ZM variant.
eGeomType | the geometry type |
References OGR_GT_IsSubClassOf(), and wkbCurve.
Referenced by OGRGeometryCollection::get_Length(), OGRMultiCurve::isCompatibleSubType(), OGR_G_AddGeometry(), OGR_G_AddGeometryDirectly(), OGR_G_Area(), OGR_G_GetPointCount(), OGR_G_Length(), OGR_G_Value(), OGR_GT_GetCollection(), OGR_GT_GetLinear(), and OGRMergeGeometryTypesEx().
int OGR_GT_IsNonLinear | ( | OGRwkbGeometryType | eGeomType | ) |
Return if a geometry type is a non-linear geometry type.
Such geometry type are wkbCurve, wkbCircularString, wkbCompoundCurve, wkbSurface, wkbCurvePolygon, wkbMultiCurve, wkbMultiSurface and their Z/M variants.
eGeomType | the geometry type |
References wkbCircularString, wkbCompoundCurve, wkbCurve, wkbCurvePolygon, wkbFlatten, wkbMultiCurve, wkbMultiSurface, and wkbSurface.
Referenced by OGR_F_GetGeometryRef(), OGR_F_GetGeomFieldRef(), OGR_FD_GetGeomType(), OGR_GFld_GetType(), and OGR_L_GetGeomType().
int OGR_GT_IsSubClassOf | ( | OGRwkbGeometryType | eType, |
OGRwkbGeometryType | eSuperType | ||
) |
Returns if a type is a subclass of another one.
eType | Type. |
eSuperType | Super type |
References wkbCircularString, wkbCompoundCurve, wkbCurve, wkbCurvePolygon, wkbFlatten, wkbGeometryCollection, wkbLineString, wkbMultiCurve, wkbMultiLineString, wkbMultiPoint, wkbMultiPolygon, wkbMultiSurface, wkbPolygon, wkbPolyhedralSurface, wkbSurface, wkbTIN, wkbTriangle, and wkbUnknown.
Referenced by OGRGeometryFactory::forceTo(), OGRGeometryFactory::forceToMultiLineString(), OGRGeometryFactory::forceToMultiPolygon(), OGR_G_AddGeometry(), OGR_G_AddGeometryDirectly(), OGR_G_Area(), OGR_G_GetGeometryCount(), OGR_G_GetGeometryRef(), OGR_G_Length(), OGR_G_RemoveGeometry(), OGR_GT_IsCurve(), OGR_GT_IsSurface(), and OGRMergeGeometryTypesEx().
int OGR_GT_IsSurface | ( | OGRwkbGeometryType | eGeomType | ) |
Return if a geometry type is an instance of Surface.
Such geometry type are wkbCurvePolygon and wkbPolygon and their Z/M/ZM variant.
eGeomType | the geometry type |
References OGR_GT_IsSubClassOf(), and wkbSurface.
Referenced by OGRGeometryCollection::get_Area(), OGRMultiSurface::isCompatibleSubType(), OGR_G_Area(), OGR_GT_GetCollection(), and OGR_GT_GetLinear().
OGRwkbGeometryType OGR_GT_SetM | ( | OGRwkbGeometryType | eType | ) |
Returns the measured geometry type corresponding to the passed geometry type.
eType | Input geometry type |
References OGR_GT_HasM(), and wkbNone.
Referenced by OGR_GT_SetModifier().
OGRwkbGeometryType OGR_GT_SetModifier | ( | OGRwkbGeometryType | eType, |
int | bHasZ, | ||
int | bHasM | ||
) |
Returns a XY, XYZ, XYM or XYZM geometry type depending on parameter.
eType | Input geometry type |
bHasZ | TRUE if the output geometry type must be 3D. |
bHasM | TRUE if the output geometry type must be measured. |
References OGR_GT_SetM(), OGR_GT_SetZ(), and wkbFlatten.
Referenced by OGRMergeGeometryTypesEx().
OGRwkbGeometryType OGR_GT_SetZ | ( | OGRwkbGeometryType | eType | ) |
Returns the 3D geometry type corresponding to the passed geometry type.
eType | Input geometry type |
References OGR_GT_HasZ(), wkbGeometryCollection, and wkbNone.
Referenced by OGR_GT_SetModifier().
const char* OGRGeometryTypeToName | ( | OGRwkbGeometryType | eType | ) |
Fetch a human readable name corresponding to an OGRwkbGeometryType value. The returned value should not be modified, or freed by the application.
This function is C callable.
eType | the geometry type. |
References CPLSPrintf(), wkbCircularString, wkbCompoundCurve, wkbCurve, wkbCurvePolygon, wkbFlatten, wkbGeometryCollection, wkbHasM, wkbHasZ, wkbLineString, wkbMultiCurve, wkbMultiLineString, wkbMultiPoint, wkbMultiPolygon, wkbMultiSurface, wkbNone, wkbPoint, wkbPolygon, wkbPolyhedralSurface, wkbSurface, wkbTIN, wkbTriangle, and wkbUnknown.
OGRwkbGeometryType OGRMergeGeometryTypes | ( | OGRwkbGeometryType | eMain, |
OGRwkbGeometryType | eExtra | ||
) |
Find common geometry type.
Given two geometry types, find the most specific common type. Normally used repeatedly with the geometries in a layer to try and establish the most specific geometry type that can be reported for the layer.
NOTE: wkbUnknown is the "worst case" indicating a mixture of geometry types with nothing in common but the base geometry type. wkbNone should be used to indicate that no geometries have been encountered yet, and means the first geometry encountered will establish the preliminary type.
eMain | the first input geometry type. |
eExtra | the second input geometry type. |
References OGRMergeGeometryTypesEx().
OGRwkbGeometryType OGRMergeGeometryTypesEx | ( | OGRwkbGeometryType | eMain, |
OGRwkbGeometryType | eExtra, | ||
int | bAllowPromotingToCurves | ||
) |
Find common geometry type.
Given two geometry types, find the most specific common type. Normally used repeatedly with the geometries in a layer to try and establish the most specific geometry type that can be reported for the layer.
NOTE: wkbUnknown is the "worst case" indicating a mixture of geometry types with nothing in common but the base geometry type. wkbNone should be used to indicate that no geometries have been encountered yet, and means the first geometry encountered will establish the preliminary type.
If bAllowPromotingToCurves is set to TRUE, mixing Polygon and CurvePolygon will return CurvePolygon. Mixing LineString, CircularString, CompoundCurve will return CompoundCurve. Mixing MultiPolygon and MultiSurface will return MultiSurface. Mixing MultiCurve and MultiLineString will return MultiCurve.
eMain | the first input geometry type. |
eExtra | the second input geometry type. |
bAllowPromotingToCurves | determine if promotion to curve type must be done. |
References OGR_GT_IsCurve(), OGR_GT_IsSubClassOf(), OGR_GT_SetModifier(), wkbCompoundCurve, wkbFlatten, wkbGeometryCollection, wkbHasM, wkbHasZ, wkbNone, and wkbUnknown.
Referenced by OGRMergeGeometryTypes().