#include <OSMVertex.h>
Class that hold Open Street Map vertices.
Class that holds Open Street Map vertices from https://openstreetmap.org Objects from this class are typically not created by the user but contained in the OsmData object returned by bridges::DataSource::getOSMData()
- See also
- Check out how to use OSM data at: https://bridgesuncc.github.io/tutorials/Data_OSM.html
- Author
- Erik Saule, Kalpathi Subramanian
- Date
- 2/14/19, 12/28/20
◆ OSMVertexID
◆ OSMVertex() [1/3]
bridges::dataset::OSMVertex::OSMVertex |
( |
| ) |
|
|
inline |
◆ OSMVertex() [2/3]
bridges::dataset::OSMVertex::OSMVertex |
( |
OSMVertexID |
vid, |
|
|
double |
latit, |
|
|
double |
longit |
|
) |
| |
|
inline |
Constructor
- Parameters
-
vid | id of vertex |
latit | latitude position of vertex |
longit | longitude position of vertex |
◆ OSMVertex() [3/3]
bridges::dataset::OSMVertex::OSMVertex |
( |
const OSMVertex * |
vert | ) |
|
|
inline |
Constructor
- Parameters
-
vert | vertex whose attributes copied into this object |
◆ getCartesianCoords()
void bridges::dataset::OSMVertex::getCartesianCoords |
( |
double * |
coords | ) |
const |
|
inline |
get Cartesian coords of provided lat/long position
- Parameters
-
[out] | coords | cartesian coordinate coords[0] is x, coords[1] is y |
◆ getLatitude()
double bridges::dataset::OSMVertex::getLatitude |
( |
| ) |
const |
|
inline |
get latitude of node
- Returns
- latitude of the vertex
◆ getLongitude()
double bridges::dataset::OSMVertex::getLongitude |
( |
| ) |
const |
|
inline |
get longitude of vertex
- Returns
- longitude of node
◆ getVertexID()
OSMVertexID bridges::dataset::OSMVertex::getVertexID |
( |
| ) |
const |
|
inline |
get id of this vertex
- Returns
- id of this vertex
◆ setLatitude()
void bridges::dataset::OSMVertex::setLatitude |
( |
double |
latit | ) |
|
|
inline |
set latitude of quake location
- Parameters
-
latit | latitude of node to set |
◆ setLongitude()
void bridges::dataset::OSMVertex::setLongitude |
( |
double |
longit | ) |
|
|
inline |
set longitude of vertex
- Parameters
-
longit | longitude to be set |
◆ setVertexID()
void bridges::dataset::OSMVertex::setVertexID |
( |
OSMVertexID |
vid | ) |
|
|
inline |
set id of this vertex
- Parameters
-
vid | vertex id to be used for this vertex |
The documentation for this class was generated from the following file:
- /home/erik/work/bridges/bridges-cxx/src/data_src/OSMVertex.h