30 #ifndef OGRUNIONLAYER_H_INCLUDED 31 #define OGRUNIONLAYER_H_INCLUDED 45 int bGeomTypeSet =
false;
47 OGREnvelope sStaticEnvelope{};
51 explicit OGRUnionLayerGeomFieldDefn(OGRUnionLayerGeomFieldDefn* poSrc);
52 ~OGRUnionLayerGeomFieldDefn();
61 FIELD_FROM_FIRST_LAYER,
62 FIELD_UNION_ALL_LAYERS,
63 FIELD_INTERSECTION_ALL_LAYERS,
67 class OGRUnionLayer :
public OGRLayer 75 int bHasLayerOwnership;
81 OGRUnionLayerGeomFieldDefn **papoGeomFields;
82 FieldUnionStrategy eFieldStrategy;
90 char *pszAttributeFilter;
93 char **papszIgnoredFields;
94 int bAttrFilterPassThroughValue;
95 int *pabModifiedLayers;
96 int *pabCheckIfAutoWrap;
99 void AutoWarpLayerIfNecessary(
int iSubLayer);
101 void ApplyAttributeFilterToSrcLayer(
int iSubLayer);
102 int GetAttrFilterPassThroughValue();
103 void ConfigureActiveLayer();
104 void SetSpatialFilterToSourceLayer(
OGRLayer* poSrcLayer);
107 OGRUnionLayer(
const char* pszName,
110 int bTakeLayerOwnership);
112 virtual ~OGRUnionLayer();
116 void SetFields(FieldUnionStrategy eFieldStrategy,
120 OGRUnionLayerGeomFieldDefn** papoGeomFields );
121 void SetSourceLayerFieldName(
const char* pszSourceLayerFieldName);
122 void SetPreserveSrcFID(
int bPreserveSrcFID);
123 void SetFeatureCount(
int nFeatureCount);
124 virtual const char *GetName()
override {
return osName.c_str(); }
127 virtual void ResetReading()
override;
128 virtual OGRFeature *GetNextFeature()
override;
140 virtual GIntBig GetFeatureCount(
int )
override;
142 virtual OGRErr SetAttributeFilter(
const char * )
override;
144 virtual int TestCapability(
const char * )
override;
146 virtual OGRErr GetExtent(
int iGeomField, OGREnvelope *psExtent,
int bForce = TRUE)
override;
147 virtual OGRErr GetExtent( OGREnvelope *psExtent,
int bForce )
override;
149 virtual void SetSpatialFilter(
OGRGeometry * poGeomIn )
override;
150 virtual void SetSpatialFilter(
int iGeomField,
OGRGeometry * )
override;
152 virtual OGRErr SetIgnoredFields(
const char **papszFields )
override;
154 virtual OGRErr SyncToDisk()
override;
159 #endif // OGRUNIONLAYER_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:329
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
Classes related to registration of format support, and opening datasets.
This class represents an OpenGIS Spatial Reference System, and contains methods for converting betwee...
Definition: ogr_spatialref.h:147
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:354
long long GIntBig
Large signed integer type (generally 64-bit integer type).
Definition: cpl_port.h:248
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:989