Commit fe9b02fa authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

WRG: remove unused variables

parent fcff8608
......@@ -20,9 +20,6 @@
#include "otbGISTableToLabelMapFilter.h"
#include "itkNumericTraits.h"
//#include "itkProgressReporter.h"
//#include "itkImageRegionConstIteratorWithIndex.h"
//#include "otbGISTable.h"
namespace otb {
......@@ -146,11 +143,11 @@ GISTableToLabelMapFilter<TGISTable, TLabelMap>
{
// Allocate the output
this->AllocateOutputs();
const InputGISTableType * input = this->GetInput();
// std::cout << input->GetConnection()->GetDBName()<< std::endl;
// std::cout << input->GetTableName() << std::endl;
m_GISTableToVectorDataFilter->SetInput(this->GetInput());
//With set background to numericTrait::max() //TODO use the alue setted by the user
//With set background to numericTrait::max() //TODO use the value set by the user
m_BackgroundValue = itk::NumericTraits<OutputLabelMapPixelType>::max();
m_VectorDataToLabelMapFilter->SetBackgroundValue( this->GetBackgroundValue() );
......
......@@ -33,23 +33,17 @@ unsigned int
ImageRegionTileMapSplitter<VImageDimension>
::GetNumberOfSplits(const RegionType &region, unsigned int requestedNumber)
{
int splitAxis;
const SizeType &regionSize = region.GetSize();
const IndexType &regionIndex = region.GetIndex();
// requested number of splits per dimension
unsigned int numPieces = 1;
// split on the outermost dimension available
splitAxis = VImageDimension - 1;
// determine the actual number of pieces that will be generated
for (unsigned int j = VImageDimension; j > 0; --j)
{
// otbMsgDevMacro(<< "*** Dimension: " << j-1);
SizeValueType range = regionSize[j - 1];
unsigned long int remainingToDo = vcl_ceil((double) requestedNumber / numPieces);
// unsigned long int remainingToDo = requestedNumber - numPieces;
unsigned int maxPieces = (regionIndex[j - 1] + regionSize[j - 1] - 1) / m_AlignStep - regionIndex[j - 1]
/ m_AlignStep + 1;
unsigned int stepPerPiece = 1;
......@@ -80,7 +74,6 @@ itk::ImageRegion<VImageDimension>
ImageRegionTileMapSplitter<VImageDimension>
::GetSplit(unsigned int i, unsigned int numberOfPieces, const RegionType &region)
{
int splitAxis;
RegionType splitRegion;
IndexType splitIndex, regionIndex;
SizeType splitSize, regionSize;
......@@ -135,8 +128,6 @@ ImageRegionTileMapSplitter<VImageDimension>
splitRegion.SetIndex(splitIndex);
splitRegion.SetSize(splitSize);
itkDebugMacro(" Split Piece: " << splitRegion );
return splitRegion;
}
......
......@@ -207,9 +207,6 @@ void TileMapImageIO::Read(void* buffer)
void TileMapImageIO::GenerateTileInfo(double x, double y, int numTileX, int numTileY)
{
std::ostringstream quad2;
double xorig=x;
double yorig=y;
XYToQuadTree2(x, y, quad2);
std::ostringstream filename;
......
......@@ -17,17 +17,12 @@
=========================================================================*/
#include "otbVectorDataFileWriter.h"
//#include "otbImageFileWriter.h"
#include "otbVectorData.h"
//#include "otbVectorDataProjectionFilter.h"
//#include "otbVectorDataExtractROI.h"
#include <fstream>
#include <iostream>
//#include "itkRGBAPixel.h"
#include "otbPostGISTable.h"
#include "otbGISTableToVectorDataFilter.h"
//#include "itkAttributeLabelObject.h"
#include "otbPostGISConnectionImplementation.h"
int otbGISTableToVectorDataFilter(int argc, char * argv[])
......@@ -50,12 +45,9 @@ int otbGISTableToVectorDataFilter(int argc, char * argv[])
typedef unsigned char PType;
typedef otb::VectorData<double, dim> VectorDataType;
typedef otb::PostGISConnectionImplementation GISConnectionType;
typedef GISConnectionType::Pointer GISConnectionPointerType;
typedef otb::PostGISTable<GISConnectionType, double, dim> GISTableType;
//Instantiation
......
......@@ -16,30 +16,19 @@
=========================================================================*/
//#include "otbVectorDataFileReader.h"
//#include "otbImageFileWriter.h"
#include "otbVectorData.h"
//#include "otbVectorDataProjectionFilter.h"
//#include "otbVectorDataExtractROI.h"
#include <fstream>
#include <iostream>
//#include "itkRGBAPixel.h"
//#include "otbImage.h"
#include "otbGISTableToVectorDataFilter.h"
//#include "itkAttributeLabelObject.h"
#include "otbPostGISConnectionImplementation.h"
int otbGISTableToVectorDataFilterNew(int argc, char * argv[])
{
const int dim = 2;
typedef unsigned char PType;
typedef otb::VectorData<> VectorDataType;
typedef otb::PostGISConnectionImplementation GISConnectionType;
typedef otb::GISTable<GISConnectionType, double, 2> GISTableType;
//Instantiation
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment