30 #ifndef _OGRUNIONLAYER_H_INCLUDED
31 #define _OGRUNIONLAYER_H_INCLUDED
41 FIELD_FROM_FIRST_LAYER,
42 FIELD_UNION_ALL_LAYERS,
43 FIELD_INTERSECTION_ALL_LAYERS,
49 GEOMTYPE_FROM_FIRST_LAYER,
50 GEOMTYPE_UNION_ALL_LAYERS,
52 } GeometryTypeUnionStrategy;
60 int bHasLayerOwnership;
65 FieldUnionStrategy eFieldStrategy;
69 GeometryTypeUnionStrategy eGeometryTypeStrategy;
80 char *pszAttributeFilter;
83 char **papszIgnoredFields;
84 int bAttrFilterPassThroughValue;
85 int *pabModifiedLayers;
86 int *pabCheckIfAutoWrap;
88 void AutoWarpLayerIfNecessary(
int iSubLayer);
90 void ApplyAttributeFilterToSrcLayer(
int iSubLayer);
91 int GetAttrFilterPassThroughValue();
92 void ConfigureActiveLayer();
98 int bTakeLayerOwnership);
105 void SetFields(FieldUnionStrategy eFieldStrategy,
108 void SetGeometryType(GeometryTypeUnionStrategy eGeometryTypeStrategy,
110 void SetSourceLayerFieldName(
const char* pszSourceLayerFieldName);
111 void SetPreserveSrcFID(
int bPreserveSrcFID);
112 void SetFeatureCount(
int nFeatureCount);
113 void SetExtent(
double dfXMin,
double dfYMin,
double dfXMax,
double dfYMax);
115 virtual const char *
GetName() {
return osName.c_str(); }
146 #endif // _OGRUNIONLAYER_H_INCLUDED
Definition: ogrunionlayer.h:54
virtual OGRFeatureDefn * GetLayerDefn()
Fetch the schema information for this layer.
Definition: ogrunionlayer.cpp:237
Convenient string class based on std::string.
Definition: cpl_string.h:224
virtual const char * GetName()
Return the layer name.
Definition: ogrunionlayer.h:115
virtual int GetFeatureCount(int)
Fetch the feature count in this layer.
Definition: ogrunionlayer.cpp:746
virtual OGRErr SyncToDisk()
Flush pending changes to disk.
Definition: ogrunionlayer.cpp:1005
Definition: ogr_feature.h:120
virtual OGRFeature * GetFeature(long nFeatureId)
Fetch a feature by its identifier.
Definition: ogrunionlayer.cpp:533
virtual OGRSpatialReference * GetSpatialRef()
Fetch the spatial reference system for this layer.
Definition: ogrunionlayer.cpp:672
Definition: ogr_feature.h:51
OGRwkbGeometryType
Definition: ogr_core.h:297
Definition: ogr_geometry.h:77
virtual OGRErr GetExtent(OGREnvelope *psExtent, int bForce)
Fetch the extent of this layer.
Definition: ogrunionlayer.cpp:910
virtual void ResetReading()
Reset feature reading to start on the first feature.
Definition: ogrunionlayer.cpp:435
Definition: ogr_spatialref.h:128
virtual OGRErr CreateFeature(OGRFeature *poFeature)
Create and write a new feature within a layer.
Definition: ogrunionlayer.cpp:562
virtual OGRErr SetIgnoredFields(const char **papszFields)
Set which fields can be omitted when retrieving features from the layer.
Definition: ogrunionlayer.cpp:989
virtual OGRErr SetAttributeFilter(const char *)
Set a new attribute query.
Definition: ogrunionlayer.cpp:773
virtual int TestCapability(const char *)
Test if this layer supported the named capability.
Definition: ogrunionlayer.cpp:803
Definition: ogr_core.h:47
virtual OGRErr SetFeature(OGRFeature *poFeature)
Rewrite an existing feature.
Definition: ogrunionlayer.cpp:614
Definition: ogrsf_frmts.h:58
Definition: ogr_feature.h:178
virtual void SetSpatialFilter(OGRGeometry *poGeomIn)
Set a new spatial filter.
Definition: ogrunionlayer.cpp:943
virtual OGRwkbGeometryType GetGeomType()
Return the layer geometry type.
Definition: ogrunionlayer.cpp:330
virtual OGRFeature * GetNextFeature()
Fetch the next available feature from this layer.
Definition: ogrunionlayer.cpp:489