Aimsun Next Scripting
22
|
Public Member Functions | |
GKCoordinateTranslator (GKModel &model) | |
~GKCoordinateTranslator () | |
GKPoint | toDegrees (const GKPoint &p) |
GKPoint | toMeters (GK::SizeUnits units, const GKPoint &p, const QString &fromCS) |
GKPoint | toMeters (const QString &fromCS, const GKPoint &p) |
GKPoint | toMeters (const GKPoint &p) |
GKPoint | convert (const QString &fromCS, const QString &toCS, const GKPoint &p) |
GKCoordinateTranslator::GKCoordinateTranslator | ( | GKModel & | model | ) |
GKCoordinateTranslator::~GKCoordinateTranslator | ( | ) |
GKPoint GKCoordinateTranslator::convert | ( | const QString & | fromCS, |
const QString & | toCS, | ||
const GKPoint & | p | ||
) |
Converts a point from a CS to another.
Converts a point in m to longitude (X) and latitude (Y) using the model coordinate system
Converts a point from the default degree CS ("EPSG:4326") to the model coordinate system. The point to be converted should be defined as GKPoint( latitude, longitude ).
Converts a point from a CS to the model coordinate system.
GKPoint GKCoordinateTranslator::toMeters | ( | GK::SizeUnits | units, |
const GKPoint & | p, | ||
const QString & | fromCS | ||
) |
Converts a point from "units" to m. Entry point is in fromCS coordinate system. The destination coordinate system is the one defined in the model.