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(); }
123 virtual void ResetReading();
126 virtual OGRFeature *GetFeature( GIntBig nFeatureId );
128 virtual OGRErr ICreateFeature(
OGRFeature* poFeature );
130 virtual OGRErr ISetFeature(
OGRFeature* poFeature );
136 virtual GIntBig GetFeatureCount(
int );
138 virtual OGRErr SetAttributeFilter(
const char * );
140 virtual int TestCapability(
const char * );
142 virtual OGRErr GetExtent(
int iGeomField,
OGREnvelope *psExtent,
int bForce = TRUE);
143 virtual OGRErr GetExtent(
OGREnvelope *psExtent,
int bForce );
145 virtual void SetSpatialFilter(
OGRGeometry * poGeomIn );
146 virtual void SetSpatialFilter(
int iGeomField,
OGRGeometry * );
148 virtual OGRErr SetIgnoredFields(
const char **papszFields );
150 virtual OGRErr SyncToDisk();
153 #endif // OGRUNIONLAYER_H_INCLUDED Definition: ogrunionlayer.h:65
Definition of a geometry field of an OGRFeatureDefn.
Definition: ogr_feature.h:143
virtual OGRSpatialReference * GetSpatialRef()
Fetch spatial reference system of this field.
Definition: ogrgeomfielddefn.cpp:415
Convenient string class based on std::string.
Definition: cpl_string.h:283
virtual const char * GetName()
Return the layer name.
Definition: ogrunionlayer.h:120
Definition of a feature class or feature layer.
Definition: ogr_feature.h:206
Definition of an attribute of an OGRFeatureDefn.
Definition: ogr_feature.h:62
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.
This class represents an OpenGIS Spatial Reference System, and contains methods for converting betwee...
Definition: ogr_spatialref.h:129
Simple container for a bounding region.
Definition: ogr_core.h:48
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
Definition: ogrunionlayer.h:39