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: ogr_feature.h:140
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:236
virtual const char * GetName()
Return the layer name.
Definition: ogrunionlayer.h:120
Definition: ogr_feature.h:200
Definition: ogr_feature.h:62
OGRwkbGeometryType
Definition: ogr_core.h:309
Definition: ogr_geometry.h:104
Definition: ogr_spatialref.h:129
Definition: ogr_core.h:48
Definition: ogrsf_frmts.h:66
Definition: ogr_feature.h:265
Definition: ogrunionlayer.h:39