Commit d6eb1551 authored by OTB Bot's avatar OTB Bot

STYLE

parent 08a0a698
......@@ -110,7 +110,7 @@ public:
typedef TransformType::OutputPointType OutputPointType;
// Cast Image Filter
typedef itk::CastImageFilter<InputImageType,
typedef itk::CastImageFilter<InputImageType,
VectorImage<OutputPixelType> > CastFilterType;
// std::pair description <-> legend (image)
......
......@@ -932,8 +932,8 @@ KmzProductWriter<TInputImage>
template <class TInputImage>
void
KmzProductWriter<TInputImage>
::GenerateKML(const std::string& pathname, int depth,
int x, int y, double north, double south,
::GenerateKML(const std::string& pathname, int depth,
int x, int y, double north, double south,
double east, double west)
{
std::ostringstream kmlname;
......
......@@ -63,10 +63,10 @@ public:
OGRLayer * ogrCurrentLayer,
OGRSpatialReference * oSRS);
// typedef enum { UNKNOWN, FLOAT, DOUBLE } VectorDataComponentType;//unused (yet?)
// typedef enum { UNKNOWN, FLOAT, DOUBLE } VectorDataComponentType; //unused (yet?)
// itkSetEnumMacro(ComponentType, VectorDataComponentType);//unused (yet?)
// itkGetEnumMacro(ComponentType, VectorDataComponentType);//unused (yet?)
// itkSetEnumMacro(ComponentType, VectorDataComponentType); //unused (yet?)
// itkGetEnumMacro(ComponentType, VectorDataComponentType); //unused (yet?)
protected:
......
......@@ -47,7 +47,6 @@
#include "otbKmzProductWriter.h"
#include "otbMapFileProductWriter.h"
#include "otbGCPsToRPCSensorModelImageFilter.h"
// Software Guide : EndCodeSnippet
//
......@@ -56,7 +55,7 @@ int main(int argc, char* argv[])
if (argc < 6)
{
std::cerr << "Usage: " << argv[0]
std::cerr << "Usage: " << argv[0]
<< " infname outfname kmzFileName "
<<"a1x a1y b1x b1y b1z ... aNx aNy aNz bNx bNy bNz" << std::endl;
return EXIT_FAILURE;
......@@ -79,7 +78,6 @@ int main(int argc, char* argv[])
ReaderType::Pointer reader = ReaderType::New();
reader->SetFileName(argv[1]);
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
......
......@@ -43,7 +43,7 @@ int otbKmzProductWriter(int argc, char* argv[])
if (argc < 3)
{
std::cerr << "Usage: " << argv[0] << " infname demPath kmzFileName "
<<"a1x a1y b1x b1y b1z ... aNx aNy aNz bNx bNy bNz"
<<"a1x a1y b1x b1y b1z ... aNx aNy aNz bNx bNy bNz"
<< std::endl;
return EXIT_FAILURE;
}
......
......@@ -107,7 +107,7 @@ int otbGCPsToRPCSensorModelImageFilterCheckRpcModel(int argc, char* argv[])
// Instancicate a GenericRSTransform in order to transform the
// indexes, using the rpcModel estimated, into geographical
// coordiantes.
// coordiantes.
// The test will check for nan coordinates, and the distance between
// geographical coordinates.
......@@ -122,7 +122,7 @@ int otbGCPsToRPCSensorModelImageFilterCheckRpcModel(int argc, char* argv[])
}
grsTrasnform->InstanciateTransform();
// Test
// Test
GeoDistanceType::Pointer geoDistance = GeoDistanceType::New();
bool isErrorDetected = false;
......@@ -144,21 +144,21 @@ int otbGCPsToRPCSensorModelImageFilterCheckRpcModel(int argc, char* argv[])
// Search for nans
if ( vnl_math_isnan(transformedPoint[0]) || vnl_math_isnan(transformedPoint[1]) )
{
std::cout << "Reference : "<< geoPoint
<<" --> Result of the reprojection using the estimated RpcModel "<< transformedPoint
std::cout << "Reference : "<< geoPoint
<<" --> Result of the reprojection using the estimated RpcModel "<< transformedPoint
<< std::endl;
std::cout<<"The result of the projection is nan, there is a problem with the estimated RpcModel "
<< std::endl<<std::endl;
isErrorDetected = true;
isErrorDetected = true;
}
// Search for wrong projection results
double residual = geoDistance->Evaluate(geoPoint, transformedPoint);
if( residual > parseResult->GetParameterFloat("--ErrorAllowed"))
{
std::cout << "Reference : "<< geoPoint
std::cout << "Reference : "<< geoPoint
<<" --> Result of the reprojection using the estimated RpcModel "
<< grsTrasnform->TransformPoint(point)
<< grsTrasnform->TransformPoint(point)
<< std::endl
<< " Residual ["<< residual << "] is higher than the tolerance ["
<< parseResult->GetParameterFloat("--ErrorAllowed")
......@@ -168,7 +168,7 @@ int otbGCPsToRPCSensorModelImageFilterCheckRpcModel(int argc, char* argv[])
}
}
// Is there an error
// Is there an error
if ( isErrorDetected )
return EXIT_FAILURE;
......
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