30 #ifndef OGREDITABLELAYER_H_INCLUDED 31 #define OGREDITABLELAYER_H_INCLUDED 33 #include "ogrlayerdecorator.h" 41 virtual OGRErr EditableSyncToDisk(
OGRLayer* poEditableLayer,
50 bool m_bTakeOwnershipSynchronizer;
53 std::set<GIntBig> m_oSetCreated;
54 std::set<GIntBig> m_oSetEdited;
55 std::set<GIntBig> m_oSetDeleted;
56 std::set<GIntBig>::iterator m_oIter;
57 std::set<CPLString> m_oSetDeletedFields;
59 bool m_bStructureModified;
60 bool m_bSupportsCreateGeomField;
61 bool m_bSupportsCurveGeometries;
65 bool bCanStealSrcFeature,
66 bool bHideDeletedFields);
68 int GetSrcGeomFieldIndex(
int iGeomField);
73 bool bTakeOwnershipDecoratedLayer,
75 bool bTakeOwnershipSynchronizer);
78 void SetNextFID(GIntBig nNextFID);
79 void SetSupportsCreateGeomField(
bool SupportsCreateGeomField);
80 void SetSupportsCurveGeometries(
bool bSupportsCurveGeometries);
85 double dfMaxX,
double dfMaxY );
88 double dfMaxX,
double dfMaxY );
112 int bApproxOK = TRUE );
118 int bApproxOK = TRUE );
122 virtual OGRErr StartTransaction();
123 virtual OGRErr CommitTransaction();
124 virtual OGRErr RollbackTransaction();
129 #endif // OGREDITABLELAYER_H_INCLUDED virtual void SetSpatialFilterRect(double dfMinX, double dfMinY, double dfMaxX, double dfMaxY)
Set a new rectangular spatial filter.
Definition: ogrlayerdecorator.cpp:68
Definition: ogreditablelayer.h:45
virtual void ResetReading()
Reset feature reading to start on the first feature.
Definition: ogrlayerdecorator.cpp:88
virtual OGRErr SetNextByIndex(GIntBig nIndex)
Move read cursor to the nIndex'th feature in the current resultset.
Definition: ogrlayerdecorator.cpp:100
virtual OGRErr DeleteFeature(GIntBig nFID)
Delete feature from layer.
Definition: ogrlayerdecorator.cpp:124
virtual OGRErr GetExtent(int iGeomField, OGREnvelope *psExtent, int bForce=TRUE)
Fetch the extent of this layer, on the specified geometry field.
Definition: ogrlayerdecorator.cpp:166
virtual int TestCapability(const char *)
Test if this layer supported the named capability.
Definition: ogrlayerdecorator.cpp:172
Definition of a geometry field of an OGRFeatureDefn.
Definition: ogr_feature.h:143
virtual OGRSpatialReference * GetSpatialRef()
Fetch the spatial reference system for this layer.
Definition: ogrlayerdecorator.cpp:148
virtual OGRErr CreateField(OGRFieldDefn *poField, int bApproxOK=TRUE)
Create a new field on a layer.
Definition: ogrlayerdecorator.cpp:178
virtual OGRErr CreateGeomField(OGRGeomFieldDefn *poField, int bApproxOK=TRUE)
Create a new geometry field on a layer.
Definition: ogrlayerdecorator.cpp:203
Definition: ogrlayerdecorator.h:35
virtual OGRFeature * GetFeature(GIntBig nFID)
Fetch a feature by its identifier.
Definition: ogrlayerdecorator.cpp:106
Definition of a feature class or feature layer.
Definition: ogr_feature.h:206
Definition: ogreditablelayer.h:36
Definition of an attribute of an OGRFeatureDefn.
Definition: ogr_feature.h:62
virtual OGRErr DeleteField(int iField)
Delete an existing field on a layer.
Definition: ogrlayerdecorator.cpp:185
virtual OGRFeatureDefn * GetLayerDefn()
Fetch the schema information for this layer.
Definition: ogrlayerdecorator.cpp:142
OGRwkbGeometryType
List of well known binary geometry types.
Definition: ogr_core.h:333
Abstract base class for all geometry classes.
Definition: ogr_geometry.h:104
virtual OGRErr AlterFieldDefn(int iField, OGRFieldDefn *poNewFieldDefn, int nFlags)
Alter the definition of an existing field on a layer.
Definition: ogrlayerdecorator.cpp:197
virtual GIntBig GetFeatureCount(int bForce=TRUE)
Fetch the feature count in this layer.
Definition: ogrlayerdecorator.cpp:154
virtual const char * GetGeometryColumn()
This method returns the name of the underlying database column being used as the geometry column...
Definition: ogrlayerdecorator.cpp:258
virtual OGRErr ReorderFields(int *panMap)
Reorder all the fields of a layer.
Definition: ogrlayerdecorator.cpp:191
This class represents an OpenGIS Spatial Reference System, and contains methods for converting betwee...
Definition: ogr_spatialref.h:129
virtual OGRFeature * GetNextFeature()
Fetch the next available feature from this layer.
Definition: ogrlayerdecorator.cpp:94
Simple container for a bounding region.
Definition: ogr_core.h:48
virtual OGRErr ICreateFeature(OGRFeature *poFeature)
Create and write a new feature within a layer.
Definition: ogrlayerdecorator.cpp:118
This class represents a layer of simple features, with access methods.
Definition: ogrsf_frmts.h:66
A simple feature, including geometry and attributes.
Definition: ogr_feature.h:274
virtual OGRwkbGeometryType GetGeomType()
Return the layer geometry type.
Definition: ogrlayerdecorator.cpp:136
virtual OGRErr SetAttributeFilter(const char *)
Set a new attribute query.
Definition: ogrlayerdecorator.cpp:82
virtual OGRGeometry * GetSpatialFilter()
This method returns the current spatial filter for this layer.
Definition: ogrlayerdecorator.cpp:50
virtual OGRErr ISetFeature(OGRFeature *poFeature)
Rewrite an existing feature.
Definition: ogrlayerdecorator.cpp:112
virtual OGRErr SyncToDisk()
Flush pending changes to disk.
Definition: ogrlayerdecorator.cpp:210
virtual void SetSpatialFilter(OGRGeometry *)
Set a new spatial filter.
Definition: ogrlayerdecorator.cpp:56