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;
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: ogr_feature.h:112
virtual OGRFeatureDefn * GetLayerDefn()
Fetch the schema information for this layer.
Definition: ogrunionlayer.cpp:246
Convenient string class based on std::string.
Definition: cpl_string.h:226
virtual const char * GetName()
Return the layer name.
Definition: ogrunionlayer.h:120
virtual int GetFeatureCount(int)
Fetch the feature count in this layer.
Definition: ogrunionlayer.cpp:946
virtual OGRErr SyncToDisk()
Flush pending changes to disk.
Definition: ogrunionlayer.cpp:1258
Definition: ogr_feature.h:167
virtual OGRFeature * GetFeature(long nFeatureId)
Fetch a feature by its identifier.
Definition: ogrunionlayer.cpp:710
virtual OGRSpatialReference * GetSpatialRef()
Fetch the spatial reference system for this layer.
Definition: ogrunionlayer.cpp:863
Definition: ogr_feature.h:52
OGRwkbGeometryType
Definition: ogr_core.h:308
Definition: ogr_geometry.h:79
virtual OGRErr GetExtent(int iGeomField, OGREnvelope *psExtent, int bForce=TRUE)
Fetch the extent of this layer, on the specified geometry field.
Definition: ogrunionlayer.cpp:1111
virtual void ResetReading()
Reset feature reading to start on the first feature.
Definition: ogrunionlayer.cpp:600
Definition: ogr_spatialref.h:129
virtual OGRErr CreateFeature(OGRFeature *poFeature)
Create and write a new feature within a layer.
Definition: ogrunionlayer.cpp:753
virtual OGRErr SetIgnoredFields(const char **papszFields)
Set which fields can be omitted when retrieving features from the layer.
Definition: ogrunionlayer.cpp:1242
virtual OGRErr SetAttributeFilter(const char *)
Set a new attribute query.
Definition: ogrunionlayer.cpp:973
virtual int TestCapability(const char *)
Test if this layer supported the named capability.
Definition: ogrunionlayer.cpp:1003
Definition: ogr_core.h:48
virtual OGRErr SetFeature(OGRFeature *poFeature)
Rewrite an existing feature.
Definition: ogrunionlayer.cpp:805
Definition: ogrsf_frmts.h:59
Definition: ogr_feature.h:232
virtual void SetSpatialFilter(OGRGeometry *poGeomIn)
Set a new spatial filter.
Definition: ogrunionlayer.cpp:1166
Definition: ogrunionlayer.h:39
virtual OGRwkbGeometryType GetGeomType()
Return the layer geometry type.
Definition: ogrunionlayer.cpp:454
virtual OGRFeature * GetNextFeature()
Fetch the next available feature from this layer.
Definition: ogrunionlayer.cpp:666