14#ifndef OGRWARPEDLAYER_H_INCLUDED
15#define OGRWARPEDLAYER_H_INCLUDED
19#include "ogrlayerdecorator.h"
26class CPL_DLL OGRWarpedLayer :
public OGRLayerDecorator
40 static int ReprojectEnvelope(
OGREnvelope *psEnvelope,
43 std::unique_ptr<OGRFeature>
44 SrcFeatureToWarpedFeature(std::unique_ptr<OGRFeature> poFeature);
45 std::unique_ptr<OGRFeature>
46 WarpedFeatureToSrcFeature(std::unique_ptr<OGRFeature> poFeature);
50 OGRLayer *poDecoratedLayer,
int iGeomField,
int bTakeOwnership,
55 virtual ~OGRWarpedLayer();
57 void SetExtent(
double dfXMin,
double dfYMin,
double dfXMax,
double dfYMax);
59 virtual void SetSpatialFilter(
OGRGeometry *)
override;
60 virtual void SetSpatialFilterRect(
double dfMinX,
double dfMinY,
61 double dfMaxX,
double dfMaxY)
override;
62 virtual void SetSpatialFilter(
int iGeomField,
OGRGeometry *)
override;
63 virtual void SetSpatialFilterRect(
int iGeomField,
double dfMinX,
64 double dfMinY,
double dfMaxX,
65 double dfMaxY)
override;
73 const int *panUpdatedFieldsIdx,
74 int nUpdatedGeomFieldsCount,
75 const int *panUpdatedGeomFieldsIdx,
76 bool bUpdateStyleString)
override;
82 virtual GIntBig GetFeatureCount(
int bForce = TRUE)
override;
84 int bForce = TRUE)
override;
87 virtual int TestCapability(
const char *)
override;
Simple container for a bounding region (rectangle)
Definition: ogr_core.h:45
Definition of a feature class or feature layer.
Definition: ogr_feature.h:501
A simple feature, including geometry and attributes.
Definition: ogr_feature.h:877
Abstract base class for all geometry classes.
Definition: ogr_geometry.h:361
This class represents a layer of simple features, with access methods.
Definition: ogrsf_frmts.h:58
This class represents an OpenGIS Spatial Reference System, and contains methods for converting betwee...
Definition: ogr_spatialref.h:153
#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:1030
long long GIntBig
Large signed integer type (generally 64-bit integer type).
Definition: cpl_port.h:199
int OGRErr
Type for a OGR error.
Definition: ogr_core.h:371