21 #ifndef otbGeometriesProjectionFilter_h
22 #define otbGeometriesProjectionFilter_h
27 #include "itkTransform.h"
31 #include "OTBProjectionExport.h"
34 class OGRCoordinateTransformation;
64 template <
typename TGeometry>
80 template <
typename TGeometry>
81 void operator()(TGeometry* inout)
const;
89 void apply_inplace(OGRGeometry* inout)
const;
106 void do_transform(OGRPoint& g)
const;
114 void do_transform(OGRLineString& g)
const;
122 void do_transform(OGRPolygon& g)
const;
124 void do_transform(OGRSurface & g)
const;
125 void do_transform(OGRMultiLineString & g)
const;
126 void do_transform(OGRMultiPoint & g)
const;
127 void do_transform(OGRMultiPolygon & g)
const;
135 void do_transform(OGRGeometryCollection& g)
const;
211 OGRSpatialReference* DoDefineNewLayerSpatialReference(
ogr::Layer const& source)
const override;
231 void DoFinalizeInitialization()
override;
253 void GenerateOutputInformation(
void)
override;
258 void SetInputSpacing(ImageReference::SpacingType
const& spacing);
259 void SetOutputSpacing(ImageReference::SpacingType
const& spacing);
260 void SetInputOrigin(ImageReference::OriginType
const& origin);
261 void SetOutputOrigin(ImageReference::OriginType
const& origin);
269 return m_InputImageMetadata;
274 m_InputImageMetadata = imd;
280 return m_OutputImageMetadata;
284 m_OutputImageMetadata = imd;
295 itkSetStringMacro(OutputProjectionRef);
296 itkGetStringMacro(OutputProjectionRef);
330 #ifndef OTB_MANUAL_INSTANTIATION
334 #endif // otbGeometriesProjectionFilter_h