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:140
virtual OGRErr ICreateFeature(OGRFeature *poFeature)
Create and write a new feature within a layer.
Definition: ogrunionlayer.cpp:766
virtual OGRFeatureDefn * GetLayerDefn()
Fetch the schema information for this layer.
Definition: ogrunionlayer.cpp:259
Convenient string class based on std::string.
Definition: cpl_string.h:236
virtual const char * GetName()
Return the layer name.
Definition: ogrunionlayer.h:120
virtual OGRErr SyncToDisk()
Flush pending changes to disk.
Definition: ogrunionlayer.cpp:1274
Definition of a feature class or feature layer.
Definition: ogr_feature.h:200
virtual OGRSpatialReference * GetSpatialRef()
Fetch the spatial reference system for this layer.
Definition: ogrunionlayer.cpp:876
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:959
OGRwkbGeometryType
List of well known binary geometry types.
Definition: ogr_core.h:309
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:1127
virtual void ResetReading()
Reset feature reading to start on the first feature.
Definition: ogrunionlayer.cpp:613
This class respresents a 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:1258
virtual OGRErr SetAttributeFilter(const char *)
Set a new attribute query.
Definition: ogrunionlayer.cpp:986
virtual int TestCapability(const char *)
Test if this layer supported the named capability.
Definition: ogrunionlayer.cpp:1016
Simple container for a bounding region.
Definition: ogr_core.h:48
virtual OGRErr ISetFeature(OGRFeature *poFeature)
Rewrite an existing feature.
Definition: ogrunionlayer.cpp:818
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:265
virtual void SetSpatialFilter(OGRGeometry *poGeomIn)
Set a new spatial filter.
Definition: ogrunionlayer.cpp:1182
Definition: ogrunionlayer.h:39
virtual OGRwkbGeometryType GetGeomType()
Return the layer geometry type.
Definition: ogrunionlayer.cpp:467
virtual OGRFeature * GetFeature(GIntBig nFeatureId)
Fetch a feature by its identifier.
Definition: ogrunionlayer.cpp:723
virtual OGRFeature * GetNextFeature()
Fetch the next available feature from this layer.
Definition: ogrunionlayer.cpp:679