GDAL

ogrlayerwithtranslatefeature.h
1/******************************************************************************
2 *
3 * Project: OpenGIS Simple Features Reference Implementation
4 * Purpose: Defines OGRLayerWithTranslateFeature class
5 * Author: Even Rouault, even dot rouault at spatialys.com
6 *
7 ******************************************************************************
8 * Copyright (c) 2025, Even Rouault <even dot rouault at spatialys.com>
9 *
10 * SPDX-License-Identifier: MIT
11 ****************************************************************************/
12
13#ifndef OGRLAYERWITHTRANSLATEFEATURE_H_INCLUDED
14#define OGRLAYERWITHTRANSLATEFEATURE_H_INCLUDED
15
16#ifndef DOXYGEN_SKIP
17
18#include "ogrsf_frmts.h"
19
23 class OGRLayerWithTranslateFeature /* non final */ : virtual public OGRLayer
24{
25 public:
26 ~OGRLayerWithTranslateFeature() override;
27
29 virtual void TranslateFeature(
30 std::unique_ptr<OGRFeature> poSrcFeature,
31 std::vector<std::unique_ptr<OGRFeature>> &apoOutFeatures) = 0;
32};
33
34#endif /* DOXYGEN_SKIP */
35
36#endif /* OGRLAYERWITHTRANSLATEFEATURE_H_INCLUDED */
OGRLayer
This class represents a layer of simple features, with access methods.
Definition ogrsf_frmts.h:61
ogrsf_frmts.h
Classes related to registration of format support, and opening datasets.