30#ifndef OGRUNIONLAYER_H_INCLUDED
31#define OGRUNIONLAYER_H_INCLUDED
44 int bGeomTypeSet =
false;
50 explicit OGRUnionLayerGeomFieldDefn(
51 const OGRUnionLayerGeomFieldDefn *poSrc);
52 ~OGRUnionLayerGeomFieldDefn();
61 FIELD_FROM_FIRST_LAYER,
62 FIELD_UNION_ALL_LAYERS,
63 FIELD_INTERSECTION_ALL_LAYERS,
67class CPL_DLL OGRUnionLayer final :
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);
108 const char *pszName,
int nSrcLayers,
112 int bTakeLayerOwnership);
114 virtual ~OGRUnionLayer();
120 FieldUnionStrategy eFieldStrategy,
int nFields,
123 OGRUnionLayerGeomFieldDefn *
125 void SetSourceLayerFieldName(
const char *pszSourceLayerFieldName);
126 void SetPreserveSrcFID(
int bPreserveSrcFID);
127 void SetFeatureCount(
int nFeatureCount);
128 virtual const char *GetName()
override
130 return osName.c_str();
134 virtual void ResetReading()
override;
135 virtual OGRFeature *GetNextFeature()
override;
149 virtual GIntBig GetFeatureCount(
int)
override;
151 virtual OGRErr SetAttributeFilter(
const char *)
override;
153 virtual int TestCapability(
const char *)
override;
156 int bForce = TRUE)
override;
159 virtual void SetSpatialFilter(
OGRGeometry *poGeomIn)
override;
160 virtual void SetSpatialFilter(
int iGeomField,
OGRGeometry *)
override;
162 virtual OGRErr SetIgnoredFields(
const char **papszFields)
override;
164 virtual OGRErr SyncToDisk()
override;
Convenient string class based on std::string.
Definition cpl_string.h:312
Simple container for a bounding region (rectangle)
Definition ogr_core.h:58
Definition of a feature class or feature layer.
Definition ogr_feature.h:364
A simple feature, including geometry and attributes.
Definition ogr_feature.h:497
Definition of an attribute of an OGRFeatureDefn.
Definition ogr_feature.h:104
Definition of a geometry field of an OGRFeatureDefn.
Definition ogr_feature.h:265
virtual OGRSpatialReference * GetSpatialRef() const
Fetch spatial reference system of this field.
Definition ogrgeomfielddefn.cpp:433
Abstract base class for all geometry classes.
Definition ogr_geometry.h:335
This class represents a layer of simple features, with access methods.
Definition ogrsf_frmts.h:73
This class represents an OpenGIS Spatial Reference System, and contains methods for converting betwee...
Definition ogr_spatialref.h:167
#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:1049
long long GIntBig
Large signed integer type (generally 64-bit integer type).
Definition cpl_port.h:233
OGRwkbGeometryType
List of well known binary geometry types.
Definition ogr_core.h:407
int OGRErr
Type for a OGR error.
Definition ogr_core.h:378
Classes related to registration of format support, and opening datasets.