diff --git a/Code/Projections/otbMapProjection.h b/Code/Projections/otbMapProjection.h index 788fbe1d9a45bb45da7d429da9958c31263ec9f9..e532a5aa9311e5250cb8fe2e6fe44067088ab5f9 100644 --- a/Code/Projections/otbMapProjection.h +++ b/Code/Projections/otbMapProjection.h @@ -64,17 +64,19 @@ public : typedef itk::SmartPointer<Self> Pointer; typedef itk::SmartPointer<const Self> ConstPointer; - typedef typename Superclass::ScalarType ScalarType; - typedef TOssimMapProjection OssimMapProjectionType; + typedef typename Superclass::ScalarType ScalarType; + typedef TOssimMapProjection OssimMapProjectionType; typedef itk::Point<ScalarType,NInputDimensions > InputPointType; typedef itk::Point<ScalarType,NOutputDimensions > OutputPointType; /** Method for creation through the object factory. */ - itkNewMacro( Self ); +itkNewMacro( Self ); /** Run-time type information (and related methods). */ itkTypeMacro( MapProjection, Transform ); + + itkStaticConstMacro(DirectionOfMapping,InverseOrForwardTransformationEnum,transform); itkStaticConstMacro(InputSpaceDimension, unsigned int, NInputDimensions); itkStaticConstMacro(OutputSpaceDimension, unsigned int, NOutputDimensions); itkStaticConstMacro(SpaceDimension, unsigned int, NInputDimensions); diff --git a/Code/Projections/otbMapProjection.txx b/Code/Projections/otbMapProjection.txx index 140a84e570a6c5ebf66fe1032ce205d561102e7f..cb6384661e3a5aee859227bc566f687feb86b990 100644 --- a/Code/Projections/otbMapProjection.txx +++ b/Code/Projections/otbMapProjection.txx @@ -136,7 +136,7 @@ MapProjection<TOssimMapProjection, TScalarType, NInputDimensions, NOutputDimensi { OutputPointType outputPoint; - if (Transform == INVERSE) + if (DirectionOfMapping == INVERSE) { //On transforme le type "itk::point" en type "ossim::ossimDpt" ossimDpt ossimDPoint(point[0], point[1]); @@ -148,7 +148,7 @@ MapProjection<TOssimMapProjection, TScalarType, NInputDimensions, NOutputDimensi outputPoint[0]=ossimGPoint.lat; outputPoint[1]=ossimGPoint.lon; } - else if (Transform == FORWARD) + else if (DirectionOfMapping == FORWARD) { //On transforme le type "itk::point" en type "ossim::ossimGpt" ossimGpt ossimGPoint(point[0], point[1]);