Skip to content

Commit

Permalink
gdal vector clip: fix taking into account attribute and spatial filte…
Browse files Browse the repository at this point in the history
…r on result layer
  • Loading branch information
rouault committed Feb 6, 2025
1 parent 0d9d874 commit 4b09e61
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions apps/gdalalg_vector_clip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,13 @@ class GDALVectorClipAlgorithmDataset final : public GDALDataset
}
};

class GDALVectorClipAlgorithmLayer final : public OGRLayer
class GDALVectorClipAlgorithmLayer final
: public OGRLayer,
public OGRGetNextFeatureThroughRaw<GDALVectorClipAlgorithmLayer>
{

DEFINE_GET_NEXT_FEATURE_THROUGH_RAW(GDALVectorClipAlgorithmLayer)

public:
GDALVectorClipAlgorithmLayer(OGRLayer *poSrcLayer,
std::unique_ptr<OGRGeometry> poClipGeom)
Expand All @@ -117,7 +122,7 @@ class GDALVectorClipAlgorithmLayer final : public OGRLayer
m_idxInCurGeomColl = 0;
}

OGRFeature *GetNextFeature() override
OGRFeature *GetNextRawFeature()
{
if (m_poSrcFeature && m_poCurGeomColl)
{
Expand Down

0 comments on commit 4b09e61

Please sign in to comment.