30 #ifndef OGRUNIONLAYER_H_INCLUDED
31 #define OGRUNIONLAYER_H_INCLUDED
59 FIELD_FROM_FIRST_LAYER,
60 FIELD_UNION_ALL_LAYERS,
61 FIELD_INTERSECTION_ALL_LAYERS,
71 int bHasLayerOwnership;
78 FieldUnionStrategy eFieldStrategy;
83 GIntBig nFeatureCount;
86 char *pszAttributeFilter;
89 char **papszIgnoredFields;
90 int bAttrFilterPassThroughValue;
91 int *pabModifiedLayers;
92 int *pabCheckIfAutoWrap;
95 void AutoWarpLayerIfNecessary(
int iSubLayer);
97 void ApplyAttributeFilterToSrcLayer(
int iSubLayer);
98 int GetAttrFilterPassThroughValue();
99 void ConfigureActiveLayer();
100 void SetSpatialFilterToSourceLayer(
OGRLayer* poSrcLayer);
106 int bTakeLayerOwnership);
112 void SetFields(FieldUnionStrategy eFieldStrategy,
117 void SetSourceLayerFieldName(
const char* pszSourceLayerFieldName);
118 void SetPreserveSrcFID(
int bPreserveSrcFID);
119 void SetFeatureCount(
int nFeatureCount);
120 virtual const char *
GetName() {
return osName.c_str(); }
153 #endif // OGRUNIONLAYER_H_INCLUDED
Definition: ogrunionlayer.h:65
Definition of a geometry field of an OGRFeatureDefn.
Definition: ogr_feature.h:143
virtual OGRErr ICreateFeature(OGRFeature *poFeature)
Create and write a new feature within a layer.
Definition: ogrunionlayer.cpp:769
virtual OGRFeatureDefn * GetLayerDefn()
Fetch the schema information for this layer.
Definition: ogrunionlayer.cpp:254
Convenient string class based on std::string.
Definition: cpl_string.h:283
virtual const char * GetName()
Return the layer name.
Definition: ogrunionlayer.h:120
virtual OGRErr SyncToDisk()
Flush pending changes to disk.
Definition: ogrunionlayer.cpp:1277
Definition of a feature class or feature layer.
Definition: ogr_feature.h:206
virtual OGRSpatialReference * GetSpatialRef()
Fetch the spatial reference system for this layer.
Definition: ogrunionlayer.cpp:879
Definition of an attribute of an OGRFeatureDefn.
Definition: ogr_feature.h:62
virtual GIntBig GetFeatureCount(int)
Fetch the feature count in this layer.
Definition: ogrunionlayer.cpp:962
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
Classes related to registration of format support, and opening datasets.
virtual OGRErr GetExtent(int iGeomField, OGREnvelope *psExtent, int bForce=TRUE)
Fetch the extent of this layer, on the specified geometry field.
Definition: ogrunionlayer.cpp:1130
virtual void ResetReading()
Reset feature reading to start on the first feature.
Definition: ogrunionlayer.cpp:608
This class represents an OpenGIS Spatial Reference System, and contains methods for converting betwee...
Definition: ogr_spatialref.h:129
virtual OGRErr SetIgnoredFields(const char **papszFields)
Set which fields can be omitted when retrieving features from the layer.
Definition: ogrunionlayer.cpp:1261
virtual OGRErr SetAttributeFilter(const char *)
Set a new attribute query.
Definition: ogrunionlayer.cpp:989
virtual int TestCapability(const char *)
Test if this layer supported the named capability.
Definition: ogrunionlayer.cpp:1019
Simple container for a bounding region.
Definition: ogr_core.h:48
virtual OGRErr ISetFeature(OGRFeature *poFeature)
Rewrite an existing feature.
Definition: ogrunionlayer.cpp:821
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 void SetSpatialFilter(OGRGeometry *poGeomIn)
Set a new spatial filter.
Definition: ogrunionlayer.cpp:1185
Definition: ogrunionlayer.h:39
virtual OGRwkbGeometryType GetGeomType()
Return the layer geometry type.
Definition: ogrunionlayer.cpp:462
virtual OGRFeature * GetFeature(GIntBig nFeatureId)
Fetch a feature by its identifier.
Definition: ogrunionlayer.cpp:726
virtual OGRFeature * GetNextFeature()
Fetch the next available feature from this layer.
Definition: ogrunionlayer.cpp:682