Skip to content
Snippets Groups Projects
Commit 8d1e23c6 authored by Thomas Feuvrier's avatar Thomas Feuvrier
Browse files

WRG: Remove warning.

parent 471209e8
Branches
Tags
No related merge requests found
...@@ -66,4 +66,4 @@ public: ...@@ -66,4 +66,4 @@ public:
} }
#endif #endif
\ No newline at end of file
...@@ -111,7 +111,7 @@ public: ...@@ -111,7 +111,7 @@ public:
virtual std::string GetOGRStrConnection() const {return 0;}; virtual std::string GetOGRStrConnection() const {return 0;};
/** Add an alpha numeric column to the table */ /** Add an alpha numeric column to the table */
virtual const std::string AddVarCharColumn(unsigned int size) {}; virtual const std::string AddVarCharColumn(unsigned int size) {return 0;};
/** Insert Alpha Numeric Data in the Car char column */ /** Insert Alpha Numeric Data in the Car char column */
virtual void AddStrDataToVarCharColumn(std::string data) {}; virtual void AddStrDataToVarCharColumn(std::string data) {};
......
...@@ -105,4 +105,4 @@ class ITK_EXPORT VectorDataProperties : public itk::DataObject ...@@ -105,4 +105,4 @@ class ITK_EXPORT VectorDataProperties : public itk::DataObject
#include "otbVectorDataProperties.txx" #include "otbVectorDataProperties.txx"
#endif #endif
#endif #endif
\ No newline at end of file
...@@ -111,7 +111,6 @@ VectorDataToLabelMapFilter<TVectorData, TLabelMap > ...@@ -111,7 +111,6 @@ VectorDataToLabelMapFilter<TVectorData, TLabelMap >
// we can't call the superclass method here. // we can't call the superclass method here.
// get pointers to the input and output // get pointers to the input and output
const InputVectorDataType * input = this->GetInput();
OutputLabelMapType * outputPtr = this->GetOutput(); OutputLabelMapType * outputPtr = this->GetOutput();
if ( !outputPtr ) if ( !outputPtr )
...@@ -219,8 +218,6 @@ void ...@@ -219,8 +218,6 @@ void
OutputLabelMapType * output = this->GetOutput(); OutputLabelMapType * output = this->GetOutput();
const InputVectorDataType * input = this->GetInput();
//For each input //For each input
for (unsigned int idx = 0; idx < this->GetNumberOfInputs(); ++idx) for (unsigned int idx = 0; idx < this->GetNumberOfInputs(); ++idx)
{ {
...@@ -301,9 +298,11 @@ VectorDataToLabelMapFilter< TVectorData, TLabelMap > ...@@ -301,9 +298,11 @@ VectorDataToLabelMapFilter< TVectorData, TLabelMap >
PolygonPointerType correctPolygonExtRing = correct( dataNode->GetPolygonExteriorRing() ); PolygonPointerType correctPolygonExtRing = correct( dataNode->GetPolygonExteriorRing() );
typedef typename DataNodeType::PolygonType PolygonType; typedef typename DataNodeType::PolygonType PolygonType;
typedef typename PolygonType::RegionType RegionType; typedef typename PolygonType::RegionType RegionType;
typedef typename PolygonType::VertexType VertexType; typedef typename PolygonType::VertexType VertexType;
typedef typename IndexType::IndexValueType IndexValueType;
typedef typename VertexType::ValueType VertexValueType;
RegionType polygonExtRingBoundReg = correctPolygonExtRing->GetBoundingRegion(); RegionType polygonExtRingBoundReg = correctPolygonExtRing->GetBoundingRegion();
...@@ -313,18 +312,18 @@ VectorDataToLabelMapFilter< TVectorData, TLabelMap > ...@@ -313,18 +312,18 @@ VectorDataToLabelMapFilter< TVectorData, TLabelMap >
std::cout << "spacing " << this->GetOutput()->GetSpacing()<< std::endl; std::cout << "spacing " << this->GetOutput()->GetSpacing()<< std::endl;
// For each position in the bounding region of the polygon // For each position in the bounding region of the polygon
for (int i = polygonExtRingBoundReg.GetOrigin(0);i < polygonExtRingBoundReg.GetOrigin(0) + polygonExtRingBoundReg.GetSize(0) ;i+=this->GetOutput()->GetSpacing()[0]) for (unsigned int i = polygonExtRingBoundReg.GetOrigin(0);i < polygonExtRingBoundReg.GetOrigin(0) + polygonExtRingBoundReg.GetSize(0) ;i+=this->GetOutput()->GetSpacing()[0])
{ {
vertex[0] = i ; vertex[0] = static_cast<VertexValueType>(i) ;
for (int j = polygonExtRingBoundReg.GetOrigin(1);j<polygonExtRingBoundReg.GetOrigin(1) + polygonExtRingBoundReg.GetSize(1) ;j+=this->GetOutput()->GetSpacing()[1]) for (unsigned int j = polygonExtRingBoundReg.GetOrigin(1);j<polygonExtRingBoundReg.GetOrigin(1) + polygonExtRingBoundReg.GetSize(1) ;j+=this->GetOutput()->GetSpacing()[1])
{ {
vertex[1] = j ; vertex[1] = static_cast<VertexValueType>(j) ;
if (correctPolygonExtRing->IsInside(vertex) || correctPolygonExtRing->IsOnEdge (vertex)) if (correctPolygonExtRing->IsInside(vertex) || correctPolygonExtRing->IsOnEdge (vertex))
{ {
IndexType index; IndexType index;
index[0] = vertex[0] - polygonExtRingBoundReg.GetOrigin(0); index[0] = static_cast<IndexValueType>(vertex[0] - polygonExtRingBoundReg.GetOrigin(0));
index[1] = vertex[1] - polygonExtRingBoundReg.GetOrigin(1); index[1] = static_cast<IndexValueType>(vertex[1] - polygonExtRingBoundReg.GetOrigin(1));
// index[0] += this->GetOutput()->GetOrigin()[0]; // index[0] += this->GetOutput()->GetOrigin()[0];
// index[1] += this->GetOutput()->GetOrigin()[1]; // index[1] += this->GetOutput()->GetOrigin()[1];
// std::cout << "index " << index << std::endl; // std::cout << "index " << index << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment