Class that hold Open Street Map vertices.
This class holds Open Street Map data, from https://openstreetmap.org
Objects from this class are typically not created by the user but retruned by bridges::connect::DataSource::getOsmData()
Check out how to use OSM data at: https://bridgesuncc.github.io/tutorials/Data_OSM.html
- Author
- Kalpathi Subramanian, Erik Saule
- Date
- 2/16/19, 12/26/20
◆ OsmData() [1/2]
bridges.data_src_dependent.OsmData.OsmData |
( |
| ) |
|
◆ OsmData() [2/2]
bridges.data_src_dependent.OsmData.OsmData |
( |
OsmVertex[] |
vertices, |
|
|
OsmEdge[] |
edges, |
|
|
String |
name |
|
) |
| |
Constructor
- Parameters
-
vertices | nodes of the map (array of OsmVertex) |
edges | links between nodes (array of OsmEdge) |
name | dataset name (string) |
◆ getCartesianRangeX()
double [] bridges.data_src_dependent.OsmData.getCartesianRangeX |
( |
| ) |
|
get range of the x cartesian coordinates of vertex locations
- Returns
- double[]: {min_x, max_x}
◆ getCartesianRangeY()
double [] bridges.data_src_dependent.OsmData.getCartesianRangeY |
( |
| ) |
|
get range of the y cartesian coordinates of vertex locations
- Returns
- double[]: {min_y, max_y}
◆ getEdges()
OsmEdge [] bridges.data_src_dependent.OsmData.getEdges |
( |
| ) |
|
◆ getGraph()
Construct a graph out of the vertex and edge data of the OSM object. The graph will associate the length of the edge to the graph edge. No data is bound to the vertices.
The vertices of the graph will be located at the location given in the data set converted to cartesian coordinate.
◆ getLatitudeRange()
double [] bridges.data_src_dependent.OsmData.getLatitudeRange |
( |
| ) |
|
get range of the latitude of vertex locations
- Returns
- double[]: {min_latitude, max_latitude}
◆ getLatLongRange()
void bridges.data_src_dependent.OsmData.getLatLongRange |
( |
double[] |
latr, |
|
|
double[] |
lonr |
|
) |
| |
get the range of dataset in Cartesian coords
- Parameters
-
latr | double[2] |
lonr | double[2] |
- Returns
- none
◆ getLongitudeRange()
double [] bridges.data_src_dependent.OsmData.getLongitudeRange |
( |
| ) |
|
get range of longitude of vertex locations
- Returns
- double[]: {min_longitude, max_longitude}
◆ getName()
String bridges.data_src_dependent.OsmData.getName |
( |
| ) |
|
◆ getVertices()
OsmVertex [] bridges.data_src_dependent.OsmData.getVertices |
( |
| ) |
|
Gets the nodes of the dataset
- Returns
- the nodes of the dataset (array of OsmVertex)
◆ setEdges()
void bridges.data_src_dependent.OsmData.setEdges |
( |
OsmEdge[] |
edges | ) |
|
◆ setName()
void bridges.data_src_dependent.OsmData.setName |
( |
String |
name | ) |
|
◆ setVertices()
void bridges.data_src_dependent.OsmData.setVertices |
( |
OsmVertex[] |
vertices | ) |
|
Sets the nodes of the map
- Parameters
-
◆ cartesian_range_x
double [] bridges.data_src_dependent.OsmData.cartesian_range_x |
|
package |
◆ cartesian_range_y
double [] bridges.data_src_dependent.OsmData.cartesian_range_y |
|
package |
◆ longitude_range
double [] bridges.data_src_dependent.OsmData.longitude_range |
|
package |
The documentation for this class was generated from the following file:
- /home/erik/work/bridges/bridges-java/src/main/java/bridges/data_src_dependent/OsmData.java