libosmscout
0.1
|
#include <Point.h>
Public Member Functions | |
void | ClearSerial () |
const GeoCoord & | GetCoord () const |
Id | GetId () const |
Returns a fast calculable unique id for the coordinate under consideration that different OSM nodes with the same coordinate will have different ids if the identity of the node is important - else the serial id will be 0. More... | |
double | GetLat () const |
double | GetLon () const |
uint8_t | GetSerial () const |
bool | IsEqual (const Point &other) const |
Same semantics as IsSame(), implement for template compatibility with GeoCoord. More... | |
bool | IsIdentical (const Point &other) const |
Compare this and the other point for identity. More... | |
bool | IsRelevant () const |
bool | IsSame (const Point &other) const |
Compare this and the other point for "sameness". More... | |
bool | operator< (const Point &other) const |
While we do not want to compare using operator== we at least want to manage points in containers. More... | |
Point ()=default | |
Point (uint8_t serial, const GeoCoord &coords) | |
void | Set (uint8_t serial, const GeoCoord &coords) |
void | SetCoord (const GeoCoord &coords) |
void | SetSerial (uint8_t serial) |
Static Public Member Functions | |
static GeoCoord | GetCoordFromId (Id id) |
A point is a identifiable (has an id) geo-coordinate.
|
default |
|
inline |
|
inline |
|
inline |
References osmscout::latConversionFactor, and osmscout::lonConversionFactor.
Referenced by osmscout::RouteNodeDataFile::Get().
Id osmscout::Point::GetId | ( | ) | const |
Returns a fast calculable unique id for the coordinate under consideration that different OSM nodes with the same coordinate will have different ids if the identity of the node is important - else the serial id will be 0.
The id does not have any semantics regarding sorting. Coordinates with close ids do not need to be close in location.
References osmscout::GeoCoord::GetLat(), osmscout::GeoCoord::GetLon(), osmscout::latConversionFactor, and osmscout::lonConversionFactor.
Referenced by osmscout::PolygonMerger::AddPolygon(), and osmscout::RouteNode::GetId().
|
inline |
References osmscout::GeoCoord::GetLat().
Referenced by osmscout::getCentroidCell(), osmscout::getSegDistSq(), and osmscout::Triangulate::TriangulateWithHoles().
|
inline |
References osmscout::GeoCoord::GetLon().
Referenced by osmscout::getCentroidCell(), osmscout::getSegDistSq(), and osmscout::Triangulate::TriangulateWithHoles().
|
inline |
Referenced by osmscout::RouteNode::Write().
|
inline |
|
inline |
Compare this and the other point for identity.
Identity is defined as have the same coordinates and the same serial id per coordinate.
other | Other point to compare against |
Referenced by osmscout::LocationDescriptionService::DescribeLocationByCrossing().
|
inline |
|
inline |
Compare this and the other point for "sameness".
Sameness is defined as having the same coordinate but not necessarily the same serial id. This means, that both points have the same location but are not necessarily identical.
other | Other point to compare against |
|
inline |
While we do not want to compare using operator== we at least want to manage points in containers.
So we need to implement operator<.
other | Other point to compare to |
References GetCoord().
|
inline |
Referenced by osmscout::RouteNode::Read().
|
inline |
|
inline |