OTB  9.0.0
Orfeo Toolbox
Public Types | List of all members
otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage > Class Template Reference

#include <otbRasterizeVectorDataFilter.h>

+ Inheritance diagram for otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >:
+ Collaboration diagram for otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::SmartPointer< SelfPointer
 
typedef RasterizeVectorDataFilter Self
 
typedef itk::CastImageFilter< TInputImage, TOutputImage > Superclass
 
typedef TInputImage InputImageType
 
typedef InputImageType::ConstPointer InputImagePointer
 
typedef InputImageType::RegionType InputImageRegionType
 
typedef InputImageType::PixelType InputImagePixelType
 
typedef InputImageType::IndexType InputIndexType
 
typedef InputImageType::PointType InputPointType
 
typedef TOutputImage OutputImageType
 
typedef OutputImageType::Pointer OutputImagePointer
 
typedef OutputImageType::RegionType OutputImageRegionType
 
typedef OutputImageType::PixelType OutputImagePixelType
 
typedef OutputImageType::InternalPixelType OutputImageInternalPixelType
 
typedef TVectorData VectorDataType
 
typedef VectorDataType::DataTreeType DataTreeType
 
typedef DataTreeType::TreeNodeType InternalTreeNodeType
 
typedef DataTreeType::Pointer DataTreePointerType
 
typedef DataTreeType::ConstPointer DataTreeConstPointerType
 
typedef itk::DataObject DataObjectType
 
GDALDataset * m_OGRDataSourcePointer
 
std::vector< OGRLayerH > m_SrcDataSetLayers
 
std::vector< double > m_BurnValues
 
std::vector< double > m_FullBurnValues
 
std::vector< int > m_BandsToBurn
 
bool m_AllTouchedMode
 
virtual const char * GetNameOfClass () const
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual void SetAllTouchedMode (bool _arg)
 
virtual const bool & GetAllTouchedMode () const
 
virtual void AllTouchedModeOn ()
 
virtual void AllTouchedModeOff ()
 
const InputImageTypeGetInput ()
 
const DataObjectTypeGetInput (unsigned int idx)
 
virtual void AddVectorData (const VectorDataType *vd)
 
void AddColor (const OutputImagePixelType &burnValuesPix)
 
static Pointer New ()
 
void GenerateData () override
 
 RasterizeVectorDataFilter ()
 
 ~RasterizeVectorDataFilter () override
 
void GenerateOutputInformation () override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
 RasterizeVectorDataFilter (const Self &)=delete
 
void operator= (const Self &)=delete
 

Detailed Description

template<class TVectorData, class TInputImage, class TOutputImage = TInputImage>
class otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >

Burn geometries from the specified VectorData into raster.

This class handles burning several input VectorDatas into the input raster. It handles producing the output in any pixel type supported by OTB since this class inherits itk::CastImageFilter.

An explicit list of burn values for each layer for each band must be passed in, if not, the burn vector set by the user will be duplicated to fit this condition.

The user can set an OutputPixelType as a burn vector via AddBurnValue(OutputImagePixelType burnValuesPix). To have a different color for each VectorData, use this method with different burnValuesPix as many times as VectorDatas set. Again, the color will be duplicated if only one burnValuesPix is set.

Note : The VectorDatas and the input raster must be in the same projectionRef. Nothing is done in this class to reproject the VectorData into the image coordinate system.

Definition at line 63 of file otbRasterizeVectorDataFilter.h.

Member Typedef Documentation

◆ ConstPointer

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
typedef itk::SmartPointer<const Self> otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::ConstPointer

Definition at line 70 of file otbRasterizeVectorDataFilter.h.

◆ DataObjectType

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
typedef itk::DataObject otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::DataObjectType

VectorData typedefs

Definition at line 100 of file otbRasterizeVectorDataFilter.h.

◆ DataTreeConstPointerType

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
typedef DataTreeType::ConstPointer otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::DataTreeConstPointerType

VectorData typedefs

Definition at line 98 of file otbRasterizeVectorDataFilter.h.

◆ DataTreePointerType

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
typedef DataTreeType::Pointer otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::DataTreePointerType

VectorData typedefs

Definition at line 97 of file otbRasterizeVectorDataFilter.h.

◆ DataTreeType

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
typedef VectorDataType::DataTreeType otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::DataTreeType

VectorData typedefs

Definition at line 95 of file otbRasterizeVectorDataFilter.h.

◆ InputImagePixelType

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
typedef InputImageType::PixelType otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::InputImagePixelType

VectorData typedefs

Definition at line 83 of file otbRasterizeVectorDataFilter.h.

◆ InputImagePointer

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
typedef InputImageType::ConstPointer otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::InputImagePointer

VectorData typedefs

Definition at line 81 of file otbRasterizeVectorDataFilter.h.

◆ InputImageRegionType

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
typedef InputImageType::RegionType otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::InputImageRegionType

VectorData typedefs

Definition at line 82 of file otbRasterizeVectorDataFilter.h.

◆ InputImageType

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
typedef TInputImage otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::InputImageType

VectorData typedefs

Definition at line 78 of file otbRasterizeVectorDataFilter.h.

◆ InputIndexType

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
typedef InputImageType::IndexType otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::InputIndexType

VectorData typedefs

Definition at line 84 of file otbRasterizeVectorDataFilter.h.

◆ InputPointType

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
typedef InputImageType::PointType otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::InputPointType

VectorData typedefs

Definition at line 85 of file otbRasterizeVectorDataFilter.h.

◆ InternalTreeNodeType

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
typedef DataTreeType::TreeNodeType otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::InternalTreeNodeType

VectorData typedefs

Definition at line 96 of file otbRasterizeVectorDataFilter.h.

◆ OutputImageInternalPixelType

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
typedef OutputImageType::InternalPixelType otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::OutputImageInternalPixelType

VectorData typedefs

Definition at line 91 of file otbRasterizeVectorDataFilter.h.

◆ OutputImagePixelType

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
typedef OutputImageType::PixelType otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::OutputImagePixelType

VectorData typedefs

Definition at line 90 of file otbRasterizeVectorDataFilter.h.

◆ OutputImagePointer

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
typedef OutputImageType::Pointer otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::OutputImagePointer

VectorData typedefs

Definition at line 88 of file otbRasterizeVectorDataFilter.h.

◆ OutputImageRegionType

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
typedef OutputImageType::RegionType otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::OutputImageRegionType

VectorData typedefs

Definition at line 89 of file otbRasterizeVectorDataFilter.h.

◆ OutputImageType

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
typedef TOutputImage otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::OutputImageType

VectorData typedefs

Definition at line 87 of file otbRasterizeVectorDataFilter.h.

◆ Pointer

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
typedef itk::SmartPointer<Self> otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::Pointer

Definition at line 69 of file otbRasterizeVectorDataFilter.h.

◆ Self

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
typedef RasterizeVectorDataFilter otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::Self

Standard class typedefs

Definition at line 67 of file otbRasterizeVectorDataFilter.h.

◆ Superclass

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
typedef itk::CastImageFilter<TInputImage, TOutputImage> otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::Superclass

Definition at line 68 of file otbRasterizeVectorDataFilter.h.

◆ VectorDataType

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
typedef TVectorData otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::VectorDataType

VectorData typedefs

Definition at line 94 of file otbRasterizeVectorDataFilter.h.

Constructor & Destructor Documentation

◆ RasterizeVectorDataFilter() [1/2]

template<class TVectorData , class TInputImage , class TOutputImage >
otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::RasterizeVectorDataFilter
protected

VectorData typedefs

Definition at line 31 of file otbRasterizeVectorDataFilter.hxx.

◆ ~RasterizeVectorDataFilter()

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::~RasterizeVectorDataFilter ( )
inlineoverrideprotected

VectorData typedefs

Definition at line 149 of file otbRasterizeVectorDataFilter.h.

◆ RasterizeVectorDataFilter() [2/2]

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::RasterizeVectorDataFilter ( const Self )
privatedelete

VectorData typedefs

Member Function Documentation

◆ AddColor()

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
void otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::AddColor ( const OutputImagePixelType burnValuesPix)
inline

Set the burn values using the output pixel type; all the bands will be burned

Definition at line 118 of file otbRasterizeVectorDataFilter.h.

◆ AddVectorData()

template<class TVectorData , class TInputImage , class TOutputImage >
void otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::AddVectorData ( const VectorDataType vd)
virtual

Add VectorData Input

Definition at line 37 of file otbRasterizeVectorDataFilter.hxx.

◆ AllTouchedModeOff()

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
virtual void otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::AllTouchedModeOff ( )
virtual

VectorData typedefs

◆ AllTouchedModeOn()

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
virtual void otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::AllTouchedModeOn ( )
virtual

VectorData typedefs

◆ CreateAnother()

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
virtual::itk::LightObject::Pointer otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::CreateAnother ( void  ) const

VectorData typedefs

◆ GenerateData()

template<class TVectorData , class TInputImage , class TOutputImage >
void otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::GenerateData
overrideprotected

VectorData typedefs

Definition at line 132 of file otbRasterizeVectorDataFilter.hxx.

◆ GenerateOutputInformation()

template<class TVectorData , class TInputImage , class TOutputImage >
void otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::GenerateOutputInformation
overrideprotected

VectorData typedefs

Definition at line 53 of file otbRasterizeVectorDataFilter.hxx.

References otb::OGRIOHelper::New(), and otbMsgDevMacro.

◆ GetAllTouchedMode()

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
virtual const bool& otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::GetAllTouchedMode ( ) const
virtual

VectorData typedefs

◆ GetInput() [1/2]

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
const InputImageType* otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::GetInput ( )

VectorData typedefs

◆ GetInput() [2/2]

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
const DataObjectType* otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::GetInput ( unsigned int  idx)

VectorData typedefs

◆ GetNameOfClass()

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
virtual const char* otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

◆ New()

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
static Pointer otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::New ( )
static

Method for creation through the object factory.

◆ operator=()

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
void otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::operator= ( const Self )
privatedelete

VectorData typedefs

◆ PrintSelf()

template<class TVectorData , class TInputImage , class TOutputImage >
void otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotected

VectorData typedefs

Definition at line 200 of file otbRasterizeVectorDataFilter.hxx.

◆ SetAllTouchedMode()

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
virtual void otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::SetAllTouchedMode ( bool  _arg)
virtual

Set/Get the AllTouchedMode flag

Member Data Documentation

◆ m_AllTouchedMode

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
bool otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::m_AllTouchedMode
private

VectorData typedefs

Definition at line 173 of file otbRasterizeVectorDataFilter.h.

◆ m_BandsToBurn

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
std::vector<int> otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::m_BandsToBurn
private

VectorData typedefs

Definition at line 172 of file otbRasterizeVectorDataFilter.h.

◆ m_BurnValues

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
std::vector<double> otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::m_BurnValues
private

VectorData typedefs

Definition at line 170 of file otbRasterizeVectorDataFilter.h.

◆ m_FullBurnValues

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
std::vector<double> otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::m_FullBurnValues
private

VectorData typedefs

Definition at line 171 of file otbRasterizeVectorDataFilter.h.

◆ m_OGRDataSourcePointer

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
GDALDataset* otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::m_OGRDataSourcePointer
private

VectorData typedefs

Definition at line 165 of file otbRasterizeVectorDataFilter.h.

◆ m_SrcDataSetLayers

template<class TVectorData , class TInputImage , class TOutputImage = TInputImage>
std::vector<OGRLayerH> otb::RasterizeVectorDataFilter< TVectorData, TInputImage, TOutputImage >::m_SrcDataSetLayers
private

VectorData typedefs

Definition at line 168 of file otbRasterizeVectorDataFilter.h.


The documentation for this class was generated from the following files: