Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
273
Issues
273
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
3a848554
Commit
3a848554
authored
Feb 27, 2008
by
Emmanuel Christophe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajout lambert 2 Etendu. Correction dans map projection pour WGS84 par défaut
parent
75c9f6d3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
143 additions
and
1 deletion
+143
-1
Code/Projections/otbLambert2EtenduProjection.h
Code/Projections/otbLambert2EtenduProjection.h
+69
-0
Code/Projections/otbLambert2EtenduProjection.txx
Code/Projections/otbLambert2EtenduProjection.txx
+68
-0
Code/Projections/otbLambertConformalConicMapProjection.h
Code/Projections/otbLambertConformalConicMapProjection.h
+1
-1
Code/Projections/otbMapProjection.txx
Code/Projections/otbMapProjection.txx
+1
-0
Code/Projections/otbMapProjections.h
Code/Projections/otbMapProjections.h
+4
-0
No files found.
Code/Projections/otbLambert2EtenduProjection.h
0 → 100644
View file @
3a848554
/*=========================================================================
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 __otbLambert2EtenduProjection_h
#define __otbLambert2EtenduProjection_h
#include "projection/ossimMapProjection.h"
#include "projection/ossimLambertConformalConicProjection.h"
#include "otbMapProjection.h"
namespace
otb
{
/** \class Lambert2EtenduProjection
* \brief This class implements the Lambert 2 Etendu map projection.
* It converts coordinates in longitude,latitude to Lambert 2 Etendu map coordinates.
*
*/
template
<
InverseOrForwardTransformationEnum
transform
>
class
ITK_EXPORT
Lambert2EtenduProjection
:
public
LambertConformalConicMapProjection
<
transform
>
{
public
:
/** Standard class typedefs. */
typedef
Lambert2EtenduProjection
Self
;
typedef
LambertConformalConicMapProjection
<
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
(
Lambert2EtenduProjection
,
MapProjection
);
protected:
Lambert2EtenduProjection
();
virtual
~
Lambert2EtenduProjection
();
private
:
Lambert2EtenduProjection
(
const
Self
&
);
//purposely not implemented
void
operator
=
(
const
Self
&
);
//purposely not implemented
};
}
// namespace otb
#ifndef OTB_MANUAL_INSTANTIATION
#include "otbLambert2EtenduProjection.txx"
#endif
#endif
Code/Projections/otbLambert2EtenduProjection.txx
0 → 100644
View file @
3a848554
/*=========================================================================
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 __otbLambert2EtenduProjection_txx
#define __otbLambert2EtenduProjection_txx
#include "otbLambert2EtenduProjection.h"
namespace otb
{
template <InverseOrForwardTransformationEnum transform>
Lambert2EtenduProjection<transform>
::Lambert2EtenduProjection()
{
itk::Point<double,2> origin;
origin[0]=2.33722778;
origin[1]=46.8;
std::string datum = "NTF";
double parall1=45.89891944;
double parall2=47.69601389;
double falseEasting=600000;
double falseNorthing=2200000;
std::string ellipsoid = "CE";
// typedef otb::LambertConformalConicForwardProjection LambertProjectionType;
// LambertProjectionType::Pointer lambertProjection = LambertProjectionType::New();
// lambertProjection->SetParameters(parall1, parall2, falseEasting, falseNorthing);
// lambertProjection->SetOrigin(oriPoint, datum);
// lambertProjection->SetEllipsoid(ellipsoid);
//
// this->m_MapProjection->setEllipsoid(ellipsoid);
// this->m_MapProjection->setOrigin(origin);
// this->m_MapProjection->setOrigin(datum);
// this->m_MapProjection->setParametersparall1, parall2, falseEasting, falseNorthing);
this->SetOrigin(origin, datum);
this->SetEllipsoid(ellipsoid);
this->SetParameters(parall1, parall2, falseEasting, falseNorthing);
}
template <InverseOrForwardTransformationEnum transform>
Lambert2EtenduProjection<transform>
::~Lambert2EtenduProjection()
{
}
} // namespace otb
#endif
Code/Projections/otbLambertConformalConicMapProjection.h
View file @
3a848554
...
...
@@ -25,7 +25,7 @@ PURPOSE. See the above copyright notices for more information.
namespace
otb
{
/** \class LambertConformalConicMapProjection
* \brief This class implements the Lambert Conforma
t
l Conic map projection.
* \brief This class implements the Lambert Conformal Conic map projection.
* It converts coordinates in longitude,latitude to Lambert Conformal Conic map coordinates.
*
*/
...
...
Code/Projections/otbMapProjection.txx
View file @
3a848554
...
...
@@ -94,6 +94,7 @@ namespace otb
//map projection
ossimGpt ossimGPoint;
ossimGPoint=m_MapProjection->inverse(ossimDPoint);
ossimGPoint.changeDatum(ossimDatumFactory::instance()->wgs84() );
// otbGenericMsgDebugMacro(<< "Inverse : " << std::endl << m_MapProjection->print(std::cout));
outputPoint[0]=ossimGPoint.lon;
...
...
Code/Projections/otbMapProjections.h
View file @
3a848554
...
...
@@ -49,11 +49,13 @@ PURPOSE. See the above copyright notices for more information.
#include "projection/ossimVanDerGrintenProjection.h"
#include "otbUtmMapProjection.h"
#include "otbLambertConformalConicMapProjection.h"
#include "otbLambert2EtenduProjection.h"
#include "otbEckert4MapProjection.h"
#include "otbTransMercatorMapProjection.h"
#include "otbSinusoidalMapProjection.h"
#include "otbMollweidMapProjection.h"
namespace
otb
{
...
...
@@ -79,6 +81,8 @@ namespace otb
typedef
MapProjection
<
ossimGnomonicProjection
,
FORWARD
>
GnomonicForwardProjection
;
typedef
LambertConformalConicMapProjection
<
INVERSE
>
LambertConformalConicInverseProjection
;
typedef
LambertConformalConicMapProjection
<
FORWARD
>
LambertConformalConicForwardProjection
;
typedef
Lambert2EtenduProjection
<
INVERSE
>
Lambert2EtenduInverseProjection
;
typedef
Lambert2EtenduProjection
<
FORWARD
>
Lambert2EtenduForwardProjection
;
typedef
MapProjection
<
ossimLlxyProjection
,
INVERSE
>
LlxyInverseProjection
;
typedef
MapProjection
<
ossimLlxyProjection
,
FORWARD
>
LlxyForwardProjection
;
typedef
MapProjection
<
ossimEquDistCylProjection
,
INVERSE
>
EquDistCylInverseProjection
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment