<commit_before>/*=========================================================================

Program:   ORFEO Toolbox
Language:  C++
Date:      $Date$
Version:   $Revision$


Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.


This software is distributed WITHOUT ANY WARRANTY; without even 
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE.  See the above copyright notices for more information.

=========================================================================*/
#ifndef __otbUtmMapProjection_h
#define __otbUtmMapProjection_h

#include "projection/ossimMapProjection.h"
#include "projection/ossimUtmProjection.h"
#include "otbMapProjection.h"

namespace otb
{ 
  /** \class UtmMapProjection
   *  \brief This class implements the UTM map projection.
   * It converts coordinates in longitude,latitude to UTM map coordinates.
   */
	template <InverseOrForwardTransformationEnum transform>
  class ITK_EXPORT UtmMapProjection : public MapProjection<ossimUtmProjection,transform> 
    {
      public :
	
	/** Standard class typedefs. */
	typedef UtmMapProjection                Self;
      typedef MapProjection<ossimUtmProjection,transform> Superclass;
      typedef itk::SmartPointer<Self>           Pointer;
      typedef itk::SmartPointer<const Self>     ConstPointer;
      
      typedef typename Superclass::ScalarType 		ScalarType;
      typedef itk::Point<ScalarType,2>   	InputPointType;
      typedef itk::Point<ScalarType,2>  	OutputPointType;     

      /** Method for creation through the object factory. */
      itkNewMacro( Self );
      
      /** Run-time type information (and related methods). */
      itkTypeMacro( UtmMapProjection, MapProjection );
      
      virtual void SetZone(long zone);
      virtual void SetZone(const InputPointType &ground); 
      virtual void SetHemisphere(char hemisphere);
      virtual long GetZone();
      virtual const char GetHemisphere() const;
			
			virtual void PrintMap() const;

//			virtual unsigned char GetZoneFromGeoPoint(const InputPointType& geoPoint);
      
    protected:
      UtmMapProjection(); 
      virtual ~UtmMapProjection();
			
        
    private:
      UtmMapProjection(const Self&); //purposely not implemented
      void operator=(const Self&);   //purposely not implemented
     };

} // namespace otb


} // namespace otb

#ifndef OTB_MANUAL_INSTANTIATION
#include "otbUtmMapProjection.txx"
#endif

#endif
<commit_msg>nomsg<commit_after>/*=========================================================================

Program:   ORFEO Toolbox
Language:  C++
Date:      $Date$
Version:   $Revision$


Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.


This software is distributed WITHOUT ANY WARRANTY; without even 
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE.  See the above copyright notices for more information.

=========================================================================*/
#ifndef __otbUtmMapProjection_h
#define __otbUtmMapProjection_h

#include "projection/ossimMapProjection.h"
#include "projection/ossimUtmProjection.h"
#include "otbMapProjection.h"

namespace otb
{ 
  /** \class UtmMapProjection
   *  \brief This class implements the UTM map projection.
   * It converts coordinates in longitude,latitude to UTM map coordinates.
   */
	template <InverseOrForwardTransformationEnum transform>
  class ITK_EXPORT UtmMapProjection : public MapProjection<ossimUtmProjection,transform> 
    {
      public :
	
	/** Standard class typedefs. */
	typedef UtmMapProjection                Self;
      typedef MapProjection<ossimUtmProjection,transform> Superclass;
      typedef itk::SmartPointer<Self>           Pointer;
      typedef itk::SmartPointer<const Self>     ConstPointer;
      
      typedef typename Superclass::ScalarType 		ScalarType;
      typedef itk::Point<ScalarType,2>   	InputPointType;
      typedef itk::Point<ScalarType,2>  	OutputPointType;     

      /** Method for creation through the object factory. */
      itkNewMacro( Self );
      
      /** Run-time type information (and related methods). */
      itkTypeMacro( UtmMapProjection, MapProjection );
      
      virtual void SetZone(long zone);
      virtual void SetZone(const InputPointType &ground); 
      virtual void SetHemisphere(char hemisphere);
      virtual long GetZone();
      virtual const char GetHemisphere() const;
			
			virtual void PrintMap() const;

//			virtual unsigned char GetZoneFromGeoPoint(const InputPointType& geoPoint);
      
    protected:
      UtmMapProjection(); 
      virtual ~UtmMapProjection();
			
        
    private:
      UtmMapProjection(const Self&); //purposely not implemented
      void operator=(const Self&);   //purposely not implemented
     };

} // namespace otb


#ifndef OTB_MANUAL_INSTANTIATION
#include "otbUtmMapProjection.txx"
#endif

#endif

{'fraction_non_alphanumeric': 0.13198071514664525, 'fraction_numerical': 0.0008035355564483728, 'mean_word_length': 3.6707317073170733, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3089773', 'n_tokens_mistral': 1437, 'n_tokens_neox': 1347, 'n_words': 382}