OTB
9.0.0
Orfeo Toolbox
|
#include <otbOGRLayerStreamStitchingFilter.h>
Classes | |
struct | FeatureStruct |
struct | FusionStruct |
struct | SortFeatureStruct |
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef InputImageType::IndexType | IndexType |
typedef TInputImage | InputImageType |
typedef InputImageType::IndexType | InputIndexType |
typedef InputImageType::PixelType | InputPixelType |
typedef ogr::Feature | OGRFeatureType |
typedef ogr::Layer | OGRLayerType |
typedef InputImageType::PointType | OriginType |
typedef itk::SmartPointer< Self > | Pointer |
typedef InputImageType::RegionType | RegionType |
typedef OGRLayerStreamStitchingFilter | Self |
typedef InputImageType::SizeType | SizeType |
typedef InputImageType::SpacingType | SpacingType |
typedef itk::ProcessObject | Superclass |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
void | GenerateData () override |
virtual const InputImageType * | GetInput (void) |
virtual const char * | GetNameOfClass () const |
const OGRLayerType & | GetOGRLayer (void) const |
virtual SizeType | GetStreamSize () |
virtual void | SetInput (const InputImageType *input) |
void | SetOGRLayer (const OGRLayerType &ogrLayer) |
virtual void | SetStreamSize (SizeType _arg) |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
double | GetLengthOGRGeometryCollection (OGRGeometryCollection *intersection) |
OGRLayerStreamStitchingFilter () | |
~OGRLayerStreamStitchingFilter () override | |
void | ProcessStreamingLine (bool line, itk::ProgressReporter &progress) |
Protected Attributes | |
struct otb::OGRLayerStreamStitchingFilter::SortFeatureStruct | SortFeature |
Private Member Functions | |
OGRLayerStreamStitchingFilter (const Self &)=delete | |
void | operator= (const Self &)=delete |
Private Attributes | |
OGRLayerType | m_OGRLayer |
unsigned int | m_Radius |
SizeType | m_StreamSize {0,0} |
This filter fusion the geometries in a layer (OGRLayer
) along streaming lines. It is a in-line filter which means that the result of the fusion overwrites the input layer. The strategy for merging polygons is quite simple. A polygon P1 is merge with a polygon P2 if:
SetStreamSize()
method allows retrieving the number of streams in row and column, and their pixel coordinates. The input image is used to transform pixel coordinates of the streaming lines into coordinate system of the image, which must be the same as the one in the OGR input file. This filter is intended to be used after StreamingVectorizedSegmentationOGR
. Definition at line 55 of file otbOGRLayerStreamStitchingFilter.h.
typedef itk::SmartPointer<const Self> otb::OGRLayerStreamStitchingFilter< TInputImage >::ConstPointer |
Definition at line 62 of file otbOGRLayerStreamStitchingFilter.h.
typedef InputImageType::IndexType otb::OGRLayerStreamStitchingFilter< TInputImage >::IndexType |
Definition at line 72 of file otbOGRLayerStreamStitchingFilter.h.
typedef TInputImage otb::OGRLayerStreamStitchingFilter< TInputImage >::InputImageType |
Definition of the input image
Definition at line 65 of file otbOGRLayerStreamStitchingFilter.h.
typedef InputImageType::IndexType otb::OGRLayerStreamStitchingFilter< TInputImage >::InputIndexType |
Definition at line 67 of file otbOGRLayerStreamStitchingFilter.h.
typedef InputImageType::PixelType otb::OGRLayerStreamStitchingFilter< TInputImage >::InputPixelType |
Definition at line 66 of file otbOGRLayerStreamStitchingFilter.h.
typedef ogr::Feature otb::OGRLayerStreamStitchingFilter< TInputImage >::OGRFeatureType |
Definition at line 75 of file otbOGRLayerStreamStitchingFilter.h.
typedef ogr::Layer otb::OGRLayerStreamStitchingFilter< TInputImage >::OGRLayerType |
Definition at line 74 of file otbOGRLayerStreamStitchingFilter.h.
typedef InputImageType::PointType otb::OGRLayerStreamStitchingFilter< TInputImage >::OriginType |
Definition at line 71 of file otbOGRLayerStreamStitchingFilter.h.
typedef itk::SmartPointer<Self> otb::OGRLayerStreamStitchingFilter< TInputImage >::Pointer |
Definition at line 61 of file otbOGRLayerStreamStitchingFilter.h.
typedef InputImageType::RegionType otb::OGRLayerStreamStitchingFilter< TInputImage >::RegionType |
Definition at line 69 of file otbOGRLayerStreamStitchingFilter.h.
typedef OGRLayerStreamStitchingFilter otb::OGRLayerStreamStitchingFilter< TInputImage >::Self |
typedef for the classes standards.
Definition at line 59 of file otbOGRLayerStreamStitchingFilter.h.
typedef InputImageType::SizeType otb::OGRLayerStreamStitchingFilter< TInputImage >::SizeType |
Definition at line 68 of file otbOGRLayerStreamStitchingFilter.h.
typedef InputImageType::SpacingType otb::OGRLayerStreamStitchingFilter< TInputImage >::SpacingType |
Definition at line 70 of file otbOGRLayerStreamStitchingFilter.h.
typedef itk::ProcessObject otb::OGRLayerStreamStitchingFilter< TInputImage >::Superclass |
Definition at line 60 of file otbOGRLayerStreamStitchingFilter.h.
|
protected |
Definition at line 35 of file otbOGRLayerStreamStitchingFilter.hxx.
References otb::OGRLayerStreamStitchingFilter< TInputImage >::m_StreamSize.
|
inlineoverrideprotected |
Definition at line 110 of file otbOGRLayerStreamStitchingFilter.h.
|
privatedelete |
virtual::itk::LightObject::Pointer otb::OGRLayerStreamStitchingFilter< TInputImage >::CreateAnother | ( | void | ) | const |
|
override |
Generate Data method. This method must be called explicitly (not through the Update
method).
Definition at line 351 of file otbOGRLayerStreamStitchingFilter.hxx.
|
virtual |
Get the input image.
Definition at line 47 of file otbOGRLayerStreamStitchingFilter.hxx.
|
protected |
get length in case of OGRGeometryCollection. This function recodes the get_lenght method available since gdal 1.8.0 in the case of OGRGeometryCollection. The aim is to allow accessing polygon stiching functionalities with gdal 1.6.
Definition at line 71 of file otbOGRLayerStreamStitchingFilter.hxx.
|
virtual |
Return the name of the class.
const OGRLayerStreamStitchingFilter< TInputImage >::OGRLayerType & otb::OGRLayerStreamStitchingFilter< TInputImage >::GetOGRLayer | ( | void | ) | const |
Get the input OGRLayer
Definition at line 65 of file otbOGRLayerStreamStitchingFilter.hxx.
|
virtual |
Get stream size
|
static |
Method for management of the object factory.
|
privatedelete |
|
protected |
Main computation method. if line is true process row part, else process column part.
-Wunused-variable long upperFID = upper.feat.GetFID(); long lowerFID = lower.feat.GetFID();
Definition at line 93 of file otbOGRLayerStreamStitchingFilter.hxx.
References otb::OGRLayerStreamStitchingFilter< TInputImage >::FeatureStruct::feat, otb::OGRLayerStreamStitchingFilter< TInputImage >::FeatureStruct::fusioned, otb::ogr::Feature::GetFID(), otb::ogr::Feature::GetGeometry(), otb::ogr::Field::GetType(), otb::ogr::Field::GetValue(), otb::OGRLayerStreamStitchingFilter< TInputImage >::FusionStruct::indStream1, otb::OGRLayerStreamStitchingFilter< TInputImage >::FusionStruct::indStream2, otb::ogr::Intersection(), otb::ogr::Intersects(), otbWarningMacro, otb::OGRLayerStreamStitchingFilter< TInputImage >::FusionStruct::overlap, otb::ogr::Feature::SetGeometry(), and otb::ogr::Union().
|
virtual |
Definition at line 41 of file otbOGRLayerStreamStitchingFilter.hxx.
void otb::OGRLayerStreamStitchingFilter< TInputImage >::SetOGRLayer | ( | const OGRLayerType & | ogrLayer | ) |
Set the input OGRLayer
Definition at line 58 of file otbOGRLayerStreamStitchingFilter.hxx.
|
virtual |
Set the stream size. As this filter is intended to be used right after the StreamingVectorizedSegmentation
, use the GetStreamSize()
method on it to get the correct stream size.
|
private |
Definition at line 154 of file otbOGRLayerStreamStitchingFilter.h.
|
private |
Definition at line 153 of file otbOGRLayerStreamStitchingFilter.h.
|
private |
Definition at line 152 of file otbOGRLayerStreamStitchingFilter.h.
Referenced by otb::OGRLayerStreamStitchingFilter< TInputImage >::OGRLayerStreamStitchingFilter().
|
protected |