26#ifndef __TERRALIB_SRS_INTERNAL_CONVERTER_H
27#define __TERRALIB_SRS_INTERNAL_CONVERTER_H
120 bool convert(
double *xIn,
double *yIn,
double *xOut,
double* yOut,
long numCoord,
int coordOffset=1)
const;
130 bool convert(
double *x,
double* y,
long numCoord,
int coordOffset=1)
const;
140 inline bool convert(
const double& xIn,
const double& yIn,
double &xOut,
double &yOut)
const
144 return convert( xOut, yOut );
169 bool invert(
double *xIn,
double *yIn,
double *xOut,
double* yOut,
long numCoord,
int coordOffset=1)
const;
179 bool invert(
double *x,
double* y,
long numCoord,
int coordOffset=1)
const;
189 inline bool invert(
const double& xIn,
const double& yIn,
double &xOut,
double &yOut)
const
193 return invert( xOut, yOut );
263 typedef std::unique_ptr<Converter> ConverterPtr;
A Converter is responsible for the conversion of coordinates between different Coordinate Systems (CS...
bool convert(double *x, double *y, long numCoord, int coordOffset=1) const
Converts a vector of coordinates from source SRS to target SRS.
void setSourceSRID(int sourceSRID)
Sets the source SRS identifier.
bool invert(double *xIn, double *yIn, double *xOut, double *yOut, long numCoord, int coordOffset=1) const
Inverts a vector of coordinates from target SRS to dource SRS.
bool invert(double &x, double &y) const
Inverts a coordinate from target SRS to source SRS.
void * m_nonNormalizedTransfPjHandler
Converter * clone() const
Creates a clone of this instance.
bool convert(double &x, double &y) const
Converts a coordinate from source SRS to target SRS.
bool convert(const double &xIn, const double &yIn, double &xOut, double &yOut) const
Converts a single coordinate from source SRS to target SRS.
void setTargetPJ4txt(const std::string &pj4txt)
Sets the target SRS PROJ4 description.
void setSourcePJ4txt(const std::string &pj4txt)
Sets the source SRS PROJ4 description.
bool update(std::string &errorString)
Update the internal state following the current source/target CRS strings.
static bool convertToProjected(double &lon, double &lat, int SRID)
Converts a coordinate from a geographic SRS to a projected SRS based on the same Datum.
bool invert(const double &xIn, const double &yIn, double &xOut, double &yOut) const
Inverts a coordinate from source SRS to target SRS.
bool convert(double *xIn, double *yIn, double *xOut, double *yOut, long numCoord, int coordOffset=1) const
Converts a vector of coordinates from source SRS to target SRS.
int getTargetSRID() const
Gets target SRS identifier.
Converter()
Default empty constructor.
Converter(int sourceSRID, int targetSRID)
Constructor with parameters.
void setTargetSRID(int targetSRID)
Sets the target SRS identifier.
void * m_transfThreadContextHandler
void * m_targetPj4Handler
bool invert(double *x, double *y, long numCoord, int coordOffset=1) const
Inverts a vector of coordinates from target SRS to source SRS.
int getSourceSRID() const
Gets source SRS identifier.
static bool convertToGeographic(double &x, double &y, int SRID)
Converts a coordinate from a projected SRS to its underlying geographic SRS (same Datum).
void * m_sourcePj4Handler
#define TESRSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Proxy configuration file for TerraView (see terraview_config.h).