Go to the documentation of this file.
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 bool convert(
const double xIn,
const double yIn,
double &xOut,
double &yOut)
const;
164 bool invert(
double *xIn,
double *yIn,
double *xOut,
double* yOut,
long numCoord,
int coordOffset=1)
const;
174 bool invert(
double *x,
double* y,
long numCoord,
int coordOffset=1)
const;
184 bool invert(
const double xIn,
const double yIn,
double &xOut,
double &yOut)
const;
222 typedef std::unique_ptr<Converter> ConverterPtr;
226 #endif // __TERRALIB_SRS_INTERNAL_CONVERTER_H
Converter()
Default empty constructor.
bool convert(double &x, double &y) const
Converts a coordinate from source SRS to target SRS.
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 getTargetSRID() const
Gets target SRS identifier.
void setTargetSRID(int targetSRID)
Sets the target SRS identifier.
bool invert(double &x, double &y) const
Inverts a coordinate from target SRS to source SRS.
Converter(int sourceSRID, int targetSRID)
Constructor with parameters.
bool convertToGeographic(double &x, double &y, int SRID) const
Converts a coordinate from a projected SRS to its underlying geographic SRS (same Datum).
#define TESRSEXPORT
You can use this macro in order to export/import classes and functions from this module.
bool convertToProjected(double &lon, double &lat, int SRID) const
Converts a coordinate from a geographic SRS to a projected SRS based on the same Datum.
int getSourceSRID() const
Gets source SRS identifier.
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.
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.
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.
void * m_sourcePj4Handler
void setTargetPJ4txt(const std::string &pj4txt)
Sets the target SRS PROJ4 description.
void setSourcePJ4txt(const std::string &pj4txt)
Sets the source SRS PROJ4 description.
void setSourceSRID(int sourceSRID)
Sets the source SRS identifier.
Proxy configuration file for TerraView (see terraview_config.h).
bool invert(const double xIn, const double yIn, double &xOut, double &yOut) const
Inverts 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.