30 #ifndef OGREDITABLELAYER_H_INCLUDED
31 #define OGREDITABLELAYER_H_INCLUDED
34 #include "ogrlayerdecorator.h"
37 class CPL_DLL IOGREditableLayerSynchronizer
40 virtual ~IOGREditableLayerSynchronizer();
46 class CPL_DLL OGREditableLayer :
public OGRLayerDecorator
52 IOGREditableLayerSynchronizer *m_poSynchronizer;
53 bool m_bTakeOwnershipSynchronizer;
56 std::set<
GIntBig> m_oSetCreated;
58 std::set<
GIntBig> m_oSetDeleted;
59 std::set<
GIntBig>::iterator m_oIter;
62 bool m_bStructureModified;
63 bool m_bSupportsCreateGeomField;
64 bool m_bSupportsCurveGeometries;
68 bool bCanStealSrcFeature,
69 bool bHideDeletedFields);
71 int GetSrcGeomFieldIndex(
int iGeomField);
75 OGREditableLayer(
OGRLayer* poDecoratedLayer,
76 bool bTakeOwnershipDecoratedLayer,
77 IOGREditableLayerSynchronizer* poSynchronizer,
78 bool bTakeOwnershipSynchronizer);
79 virtual ~OGREditableLayer();
81 void SetNextFID(
GIntBig nNextFID);
82 void SetSupportsCreateGeomField(
bool SupportsCreateGeomField);
83 void SetSupportsCurveGeometries(
bool bSupportsCurveGeometries);
86 virtual
void SetSpatialFilter(
OGRGeometry * ) override;
87 virtual
void SetSpatialFilterRect(
double dfMinX,
double dfMinY,
88 double dfMaxX,
double dfMaxY ) override;
89 virtual
void SetSpatialFilter(
int iGeomField,
OGRGeometry * ) override;
90 virtual
void SetSpatialFilterRect(
int iGeomField,
double dfMinX,
double dfMinY,
91 double dfMaxX,
double dfMaxY ) override;
93 virtual
OGRErr SetAttributeFilter( const
char * ) override;
95 virtual
void ResetReading() override;
108 virtual
GIntBig GetFeatureCount(
int bForce = TRUE ) override;
109 virtual
OGRErr GetExtent(
int iGeomField, OGREnvelope *psExtent,
int bForce = TRUE) override;
110 virtual
OGRErr GetExtent(OGREnvelope *psExtent,
int bForce = TRUE) override;
112 virtual
int TestCapability( const
char * ) override;
115 int bApproxOK = TRUE ) override;
116 virtual
OGRErr DeleteField(
int iField ) override;
117 virtual
OGRErr ReorderFields(
int* panMap ) override;
118 virtual
OGRErr AlterFieldDefn(
int iField,
OGRFieldDefn* poNewFieldDefn,
int nFlags ) override;
121 int bApproxOK = TRUE ) override;
123 virtual
OGRErr SyncToDisk() override;
125 virtual
OGRErr StartTransaction() override;
126 virtual
OGRErr CommitTransaction() override;
127 virtual
OGRErr RollbackTransaction() override;
129 virtual const
char *GetGeometryColumn() override;
133 #endif // OGREDITABLELAYER_H_INCLUDED
Definition of a geometry field of an OGRFeatureDefn.
Definition: ogr_feature.h:182
Convenient string class based on std::string.
Definition: cpl_string.h:336
Definition of a feature class or feature layer.
Definition: ogr_feature.h:259
Definition of an attribute of an OGRFeatureDefn.
Definition: ogr_feature.h:92
OGRwkbGeometryType
List of well known binary geometry types.
Definition: ogr_core.h:317
Abstract base class for all geometry classes.
Definition: ogr_geometry.h:286
This class represents an OpenGIS Spatial Reference System, and contains methods for converting betwee...
Definition: ogr_spatialref.h:145
This class represents a layer of simple features, with access methods.
Definition: ogrsf_frmts.h:70
A simple feature, including geometry and attributes.
Definition: ogr_feature.h:353
long long GIntBig
Large signed integer type (generally 64-bit integer type).
Definition: cpl_port.h:246
int OGRErr
Simple container for a bounding region.
Definition: ogr_core.h:290
#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:987