diff --git a/Projections/otbConvertCartoToGeoPoint.cxx b/Projections/otbConvertCartoToGeoPoint.cxx
index 839d443d43d416fa047794ec64fccba6dc07989d..2d204d3eac8ae65aec63ca40629bb38818c0bd47 100644
--- a/Projections/otbConvertCartoToGeoPoint.cxx
+++ b/Projections/otbConvertCartoToGeoPoint.cxx
@@ -44,7 +44,6 @@ int generic_main(int argc, char* argv[], TMapProjection* mapProjection, otb::Com
     { 
 		
 				typedef TMapProjection MapProjectionType;
-				typename MapProjectionType::Pointer mapProjection = MapProjectionType::New();
 				
 				typename MapProjectionType::InputPointType cartoPoint;
 				typename MapProjectionType::OutputPointType geoPoint;
@@ -134,7 +133,7 @@ try
 						
 					utmProjection->SetZone(numZone);
 					utmProjection->SetHemisphere(hemisphere);
-						
+					
 					return generic_main<UtmProjectionType>(argc,argv, utmProjection, parseResult);
 				}
 				else