#include <otbGeometriesToGeometriesFilter.h>
Root abstract class for all geometry to geometry filters.
- Since
- OTB v 3.14.0
Definition at line 58 of file otbGeometriesToGeometriesFilter.h.
◆ ConstPointer
◆ InputGeometriesType
◆ OutputGeometriesType
◆ Pointer
◆ Self
◆ Superclass
◆ GeometriesToGeometriesFilter()
otb::GeometriesToGeometriesFilter::GeometriesToGeometriesFilter |
( |
| ) |
|
|
protected |
Default constructor. Does nothing.
◆ ~GeometriesToGeometriesFilter()
otb::GeometriesToGeometriesFilter::~GeometriesToGeometriesFilter |
( |
| ) |
|
|
overrideprotected |
Destructor. Does nothing.
◆ DoDefineNewLayerFields()
virtual void otb::GeometriesToGeometriesFilter::DoDefineNewLayerFields |
( |
ogr::Layer const & |
source, |
|
|
ogr::Layer & |
dest |
|
) |
| const |
|
privatepure virtual |
◆ DoDefineNewLayerGeometryType()
virtual OGRwkbGeometryType otb::GeometriesToGeometriesFilter::DoDefineNewLayerGeometryType |
( |
ogr::Layer const & |
source | ) |
const |
|
privatevirtual |
Hook used to determine the type of the new layer.
- Parameters
-
- Returns
- by default the same type as the one from the
source
Layer
.
◆ DoDefineNewLayerOptions()
virtual std::vector<std::string> otb::GeometriesToGeometriesFilter::DoDefineNewLayerOptions |
( |
ogr::Layer const & |
source | ) |
const |
|
privatevirtual |
Hook used to determine the options for creating a new layer.
- Parameters
-
[in] | source | source Layer for reference (in case it has relevant information). |
- Returns
- nothing by default.
◆ DoDefineNewLayerSpatialReference()
virtual OGRSpatialReference* otb::GeometriesToGeometriesFilter::DoDefineNewLayerSpatialReference |
( |
ogr::Layer const & |
source | ) |
const |
|
privatevirtual |
Hook used to determine the OGRSpatialReference
when creating a new layer.
- Parameters
-
[in] | source | source Layer for reference (in case it has relevant information). |
- Returns
- a new
OGRSpatialReference
that the client code shall release with the appropriate OGR function.
-
0 by default.
- Todo:
- Return a
unique_ptr<OGRSpatialReference>
.
Reimplemented in otb::GeometriesProjectionFilter.
◆ DoFinalizeInitialization()
virtual void otb::GeometriesToGeometriesFilter::DoFinalizeInitialization |
( |
| ) |
|
|
inlineprivatevirtual |
Hook used to conclude the initialization phase. As ITK doesn't follow a the constructor set the object in a final, and ready to be used, state, this step is required to do that once all filter attributes have been set.
The default implementation does nothing.
Reimplemented in otb::GeometriesProjectionFilter.
Definition at line 181 of file otbGeometriesToGeometriesFilter.h.
◆ DoProcessLayer()
virtual void otb::GeometriesToGeometriesFilter::DoProcessLayer |
( |
ogr::Layer const & |
source, |
|
|
ogr::Layer & |
destination |
|
) |
| const |
|
privatepure virtual |
◆ GenerateData()
void otb::GeometriesToGeometriesFilter::GenerateData |
( |
void |
| ) |
|
|
overrideprotected |
Processes the input to fill the output. This is the main processing function. It either works in-place or by copying the transformed input Feature
s into the output.
◆ GetInput()
Default constructor. Does nothing.
◆ GetNameOfClass()
virtual const char* otb::GeometriesToGeometriesFilter::GetNameOfClass |
( |
| ) |
const |
|
virtual |
◆ Process() [1/2]
By-copy processing function.
- Parameters
-
[in] | source | the geometries set to transform |
[out] | destination | the resulting geometries set. |
- Precondition
- The filter must have been initialized
-
The
destination
must be ready to receive a result.
◆ Process() [2/2]
In-place processing function.
- Parameters
-
[in,out] | inout | the geometries set that'll be modified by the filter. |
- Precondition
- The filter must have been initialized
◆ SetInput()
Default constructor. Does nothing.
◆ otb::internal::ProcessVisitor
friend struct otb::internal::ProcessVisitor |
|
friend |
Hook that actually filters an OGR Layer
.
- Parameters
-
[in] | source | Input layer |
[in,out] | destination | Output layer |
- Note
- When
source == destination
, it means this is an inplace filter.
Definition at line 186 of file otbGeometriesToGeometriesFilter.h.
The documentation for this class was generated from the following file: