API Documentation
|
#include <CoordinateProjectionManager.h>
Public Member Functions | |
void | setCoordinateFile (File &file) |
void | readCoordinateFile (File &file) |
void | writeCoordinateFile (File &file) const |
void | readDirectoryStructure (File &top_dir, File &save_as) |
void | readDirectoryStructure (File &top_dir) |
void | addProjection (const CoordinateProjection &projection) |
void | createUTMCoordinateProjections () |
void | cleanup () |
void | processWKT (CoordinateProjection &projection, Scanner &scan) |
void | processJSON (CoordinateProjection &projection, JSONNode &json) |
void | setDownloader (std::function< void(const String &, std::function< void(const String &)>)> downloader) |
bool | hasDownloader () const |
void | downloadAllProjections () |
bool | downloadEPSGProjection (uint04 epsg_code, std::function< void(uint04 code, UUID projection)> finished_callback, bool force_download=false) |
UUID | getProjection (const String &name) const |
UUID | wgs84Projection () const |
Buffer< UUID > | getProjections (const String &search_string=String()) const |
const CoordinateProjection & | get (UUID id) const |
bool | hasProjection (UUID projection_id) const |
UUID | bestUTMProjectionLatLon (const Vertex< 2, fltp08 > &lat_lon) const |
Buffer< UUID > | bestProjectionsLatLon (const Vertex< 2, fltp08 > &lat_lon) const |
UUID | bestUTMProjectionMeters (const Vertex< 2, fltp08 > &lat_lon) const |
CoordinateConverter * | wgs84Converter (UUID from_id) const |
Bounds< 2, fltp08 > | convertToWGS84 (UUID from_id, const Bounds< 3, fltp08 > &bounds) const |
Bounds< 2, fltp08 > | convertFromWGS84 (UUID from_id, const Bounds< 2, Angle< fltp08 > > &bounds) const |
Bounds< 2, fltp08 > | convertFromWGS84 (UUID from_id, const Bounds< 2, fltp08 > &bounds) const |
Bounds< 2, fltp08 > | convertFromWGS84 (UUID from_id, const Bounds< 3, fltp08 > &bounds) const |
Vertex< 3, fltp08 > | convertToWGS84 (UUID from_id, const Vertex< 3, fltp08 > &location) const |
Vertex< 3, fltp08 > | convertFromWGS84 (UUID from_id, const Vertex< 3, fltp08 > &location) const |
Buffer< Vertex< 2, fltp08 > > | convertToWGS84 (UUID from_id, const Buffer< Vertex< 2, fltp08 > > &locations) const |
LineSegment< 2, fltp08 > | convertToWGS84 (UUID from_id, const LineSegment< 2, fltp08 > &segment) const |
Polyline< 2, fltp08, Vertex< 2, fltp08 > > | convertToWGS84 (UUID from_id, const Polyline< 2, fltp08, Vertex< 2, fltp08 > > &segment) const |
const Dictionary< UUID, CoordinateProjection > & | projections () const |
ConstPointer< Unit > | wGS84Unit (UUID from_id) |
ConstPointer< UnitOption > | wGS84UnitOption () |
String | createWKTString (UUID id, const UnitManager &manager) const |
Static Public Member Functions | |
static CoordinateProjectionManager & | DefaultInstance () |
static bool | HasEngine () |
static UUID | UseBestUTMProjectionID () |
static CoordinateProjection & | BestUTMProjectionInfo () |
Protected Member Functions | |
ConstPointer< Unit > | unitFromString (const String &unit) |
Protected Attributes | |
Dictionary< UUID, CoordinateConverter * > | m_wgs_84_converter |
Buffer< UUID > | m_utm_projections |
std::function< void(const String &, std::function< void(const String &)>)> | m_downloader |
Dictionary< UUID, CoordinateProjection > | m_projections |
UUID | m_wgs84_id = Constant<UUID>::NaN |
Dictionary< String, ConstPointer< Unit > > | m_units |
File | m_coordinate_file |
void addProjection | ( | const CoordinateProjection & | projection | ) |
|
static |
void cleanup | ( | ) |
Bounds< 2, fltp08 > convertFromWGS84 | ( | UUID | from_id, |
const Bounds< 2, Angle< fltp08 > > & | bounds ) const |
Buffer< Vertex< 2, fltp08 > > convertToWGS84 | ( | UUID | from_id, |
const Buffer< Vertex< 2, fltp08 > > & | locations ) const |
LineSegment< 2, fltp08 > convertToWGS84 | ( | UUID | from_id, |
const LineSegment< 2, fltp08 > & | segment ) const |
Polyline< 2, fltp08, Vertex< 2, fltp08 > > convertToWGS84 | ( | UUID | from_id, |
const Polyline< 2, fltp08, Vertex< 2, fltp08 > > & | segment ) const |
void createUTMCoordinateProjections | ( | ) |
String createWKTString | ( | UUID | id, |
const UnitManager & | manager ) const |
|
static |
void downloadAllProjections | ( | ) |
bool downloadEPSGProjection | ( | uint04 | epsg_code, |
std::function< void(uint04 code, UUID projection)> | finished_callback, | ||
bool | force_download = false ) |
const CoordinateProjection & get | ( | UUID | id | ) | const |
bool hasDownloader | ( | ) | const |
|
static |
bool hasProjection | ( | UUID | projection_id | ) | const |
void processJSON | ( | CoordinateProjection & | projection, |
JSONNode & | json ) |
void processWKT | ( | CoordinateProjection & | projection, |
Scanner & | scan ) |
|
inline |
void readCoordinateFile | ( | File & | file | ) |
void readDirectoryStructure | ( | File & | top_dir | ) |
void setCoordinateFile | ( | File & | file | ) |
void setDownloader | ( | std::function< void(const String &, std::function< void(const String &)>)> | downloader | ) |
|
protected |
|
static |
CoordinateConverter * wgs84Converter | ( | UUID | from_id | ) | const |
UUID wgs84Projection | ( | ) | const |
ConstPointer< Unit > wGS84Unit | ( | UUID | from_id | ) |
ConstPointer< UnitOption > wGS84UnitOption | ( | ) |
void writeCoordinateFile | ( | File & | file | ) | const |
|
protected |
|
protected |
|
protected |
|
mutableprotected |