14#ifndef OGRMUTEXEDLAYER_H_INCLUDED
15#define OGRMUTEXEDLAYER_H_INCLUDED
19#include "ogrlayerdecorator.h"
20#include "cpl_multiproc.h"
29class CPL_DLL OGRMutexedLayer :
public OGRLayerDecorator
38 OGRMutexedLayer(
OGRLayer *poDecoratedLayer,
int bTakeOwnership,
42 virtual ~OGRMutexedLayer();
45 virtual void SetSpatialFilter(
OGRGeometry *)
override;
46 virtual void SetSpatialFilterRect(
double dfMinX,
double dfMinY,
47 double dfMaxX,
double dfMaxY)
override;
48 virtual void SetSpatialFilter(
int iGeomField,
OGRGeometry *)
override;
49 virtual void SetSpatialFilterRect(
int iGeomField,
double dfMinX,
50 double dfMinY,
double dfMaxX,
51 double dfMaxY)
override;
53 virtual OGRErr SetAttributeFilter(
const char *)
override;
55 virtual void ResetReading()
override;
63 const int *panUpdatedFieldsIdx,
64 int nUpdatedGeomFieldsCount,
65 const int *panUpdatedGeomFieldsIdx,
66 bool bUpdateStyleString)
override;
70 virtual bool GetArrowStream(
struct ArrowArrayStream *out_stream,
73 virtual const char *GetName()
override;
79 virtual GIntBig GetFeatureCount(
int bForce = TRUE)
override;
81 int bForce = TRUE)
override;
84 virtual int TestCapability(
const char *)
override;
87 int bApproxOK = TRUE)
override;
88 virtual OGRErr DeleteField(
int iField)
override;
89 virtual OGRErr ReorderFields(
int *panMap)
override;
93 AlterGeomFieldDefn(
int iGeomField,
97 virtual OGRErr SyncToDisk()
override;
100 virtual void SetStyleTableDirectly(
OGRStyleTable *poStyleTable)
override;
102 virtual void SetStyleTable(
OGRStyleTable *poStyleTable)
override;
104 virtual OGRErr StartTransaction()
override;
105 virtual OGRErr CommitTransaction()
override;
106 virtual OGRErr RollbackTransaction()
override;
108 virtual const char *GetFIDColumn()
override;
109 virtual const char *GetGeometryColumn()
override;
113 virtual char **GetMetadata(
const char *pszDomain =
"")
override;
114 virtual CPLErr SetMetadata(
char **papszMetadata,
115 const char *pszDomain =
"")
override;
116 virtual const char *GetMetadataItem(
const char *pszName,
117 const char *pszDomain =
"")
override;
118 virtual CPLErr SetMetadataItem(
const char *pszName,
const char *pszValue,
119 const char *pszDomain =
"")
override;
120 virtual OGRErr Rename(
const char *pszNewName)
override;
A set of associated raster bands, usually from one file.
Definition: gdal_priv.h:495
Simple container for a bounding region (rectangle)
Definition: ogr_core.h:45
Definition of a feature class or feature layer.
Definition: ogr_feature.h:501
A simple feature, including geometry and attributes.
Definition: ogr_feature.h:877
Definition of an attribute of an OGRFeatureDefn.
Definition: ogr_feature.h:95
Definition of a geometry field of an OGRFeatureDefn.
Definition: ogr_feature.h:330
Abstract base class for all geometry classes.
Definition: ogr_geometry.h:361
This class represents a layer of simple features, with access methods.
Definition: ogrsf_frmts.h:58
This class represents an OpenGIS Spatial Reference System, and contains methods for converting betwee...
Definition: ogr_spatialref.h:153
This class represents a style table.
Definition: ogr_featurestyle.h:70
CPLErr
Error category.
Definition: cpl_error.h:37
#define CPL_DISALLOW_COPY_ASSIGN(ClassName)
Helper to remove the copy and assignment constructors so that the compiler will not generate the defa...
Definition: cpl_port.h:1030
char ** CSLConstList
Type of a constant null-terminated list of nul terminated strings.
Definition: cpl_port.h:1179
long long GIntBig
Large signed integer type (generally 64-bit integer type).
Definition: cpl_port.h:199
OGRwkbGeometryType
List of well known binary geometry types.
Definition: ogr_core.h:407
int OGRErr
Type for a OGR error.
Definition: ogr_core.h:371