![]() |
API Documentation
|
Stores Coordinate Projections See https://ndevr.org/coordinate-projection/. More...
#include <CoordinateProjectionManager.h>
Public Member Functions | |
| void | addProjection (const CoordinateProjection &projection) |
| Buffer< UUID > | bestProjectionsLatLon (const Vertex< 2, fltp08 > &lat_lon) const |
| UUID | bestUTMProjectionLatLon (const Vertex< 2, fltp08 > &lat_lon) const |
| UUID | bestUTMProjectionMeters (const Vertex< 2, fltp08 > &lat_lon) const |
| void | cleanup () |
| 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 > | convertFromWGS84 (UUID from_id, const Vertex< 3, fltp08 > &location) const |
| Bounds< 2, fltp08 > | convertToWGS84 (UUID from_id, const Bounds< 3, 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 |
| Vertex< 3, fltp08 > | convertToWGS84 (UUID from_id, const Vertex< 3, fltp08 > &location) const |
| void | createUTMCoordinateProjections () |
| String | createWKTString (UUID id, const UnitManager &manager) const |
| 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 |
| UUID | getProjection (const String &name) const |
| Buffer< UUID > | getProjections (const String &search_string=String()) const |
| bool | hasDownloader () const |
| bool | hasProjection (UUID projection_id) const |
| void | processJSON (CoordinateProjection &projection, JSONNode &json) |
| void | processWKT (CoordinateProjection &projection, Scanner &scan) |
| const Dictionary< UUID, CoordinateProjection > & | projections () const |
| void | readCoordinateFile (File &file) |
| void | readDirectoryStructure (File &top_dir) |
| void | readDirectoryStructure (File &top_dir, File &save_as) |
| void | setCoordinateFile (File &file) |
| void | setDownloader (std::function< void(const String &, std::function< void(const String &)>)> downloader) |
| CoordinateConverter * | wgs84Converter (UUID from_id) const |
| UUID | wgs84Projection () const |
| ConstPointer< Unit > | wGS84Unit (UUID from_id) |
| ConstPointer< UnitOption > | wGS84UnitOption () |
| void | writeCoordinateFile (File &file) const |
Static Public Member Functions | |
| static CoordinateProjection & | BestUTMProjectionInfo () |
| static CoordinateProjectionManager & | DefaultInstance () |
| static bool | HasEngine () |
| static UUID | UseBestUTMProjectionID () |
Protected Member Functions | |
| ConstPointer< Unit > | unitFromString (const String &unit) |
Protected Attributes | |
| File | m_coordinate_file |
| std::function< void(const String &, std::function< void(const String &)>)> | m_downloader |
| Dictionary< UUID, CoordinateProjection > | m_projections |
| Dictionary< String, ConstPointer< Unit > > | m_units |
| Buffer< UUID > | m_utm_projections |
| UUID | m_wgs84_id = Constant<UUID>::Invalid |
| Dictionary< UUID, CoordinateConverter * > | m_wgs_84_converter |
Stores Coordinate Projections See https://ndevr.org/coordinate-projection/.
| 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 |