|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cm.osm2po.routing.TouchPoint
public class TouchPoint
Diese Klasse repraesentiert einen geografischen Punkt auf dem Graphen. Dies kann sowohl ein Vertex als auch ein beliebiger Punkt auf einer Linie einer Edge sein.
Constructor Summary | |
---|---|
protected |
TouchPoint(int id,
int edgeIdx,
long coord,
int pointIdx)
Interner Hilfskonstruktor. |
Method Summary | |
---|---|
int |
compareTo(TouchPoint that)
|
static TouchPoint |
create(Graph graph,
float lat,
float lon)
Findet die dichteste Edge zu einer Koordinate und liefert diese als TouchPoint -Objekt zurueck. |
static TouchPoint |
create(Graph graph,
float lat,
float lon,
int minCount)
Findet die dichteste Edge zu einer Koordinate und liefert diese als TouchPoint -Objekt zurueck. |
static TouchPoint |
create(Graph graph,
int vertexId)
Erstellt einen kuenstlichen TouchPoint aufgrund eines
bereits bekannten, uebergebenen Vertex. |
static TouchPoint |
create(Graph graph,
de.cm.osm2po.model.LatLon latLon)
Findet die dichteste Edge zu einer Koordinate und liefert diese als TouchPoint -Objekt zurueck. |
java.util.Map<java.lang.Integer,Section> |
findIncomingEdges(Graph graph)
Liefert die ankommenden Sektionen / Kanten eines Touchpoints. |
java.util.Map<java.lang.Integer,Section> |
findOutgoingEdges(Graph graph)
Liefert die abgehenden Sektionen / Kanten eines Touchpoints. |
int |
getEdgeIdx()
|
int |
getEdgePointIdx()
|
de.cm.osm2po.model.LatLons |
getGeometryIn()
|
de.cm.osm2po.model.LatLons |
getGeometryOut()
|
int |
getId()
|
double |
getLat()
|
double |
getLon()
|
double |
getRatio()
|
int |
getVertexId()
|
boolean |
isPoint()
|
boolean |
isVertex()
|
void |
setId(int id)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected TouchPoint(int id, int edgeIdx, long coord, int pointIdx)
edgeIdx
- int Index der Original-Edge.coord
- long Koordinate in gepackter Form.pointIdx
- Index des virtuellen Stuetzpunktes.Method Detail |
---|
public void setId(int id)
public int getId()
public boolean isVertex()
public int getVertexId()
public int getEdgeIdx()
public int getEdgePointIdx()
public boolean isPoint()
public double getLat()
public double getLon()
public double getRatio()
public de.cm.osm2po.model.LatLons getGeometryIn()
public de.cm.osm2po.model.LatLons getGeometryOut()
public int compareTo(TouchPoint that)
compareTo
in interface java.lang.Comparable<TouchPoint>
public static TouchPoint create(Graph graph, float lat, float lon, int minCount)
TouchPoint
-Objekt zurueck.
graph
- Graph
lat
- float Latitude (Breitengrad)lon
- float Longitude (Laengengrad)minCount
- grobe minimale Anzahl zurueckgelieferter Edges.
TouchPoint
oder null.public static TouchPoint create(Graph graph, float lat, float lon)
TouchPoint
-Objekt zurueck.
Ruft intern create(Graph, float, float, int)
mit einer Minimalanzahl von 100.
graph
- Graph
lat
- float Latitude (Breitengrad)lon
- float Longitude (Laengengrad)
TouchPoint
oder null.public static TouchPoint create(Graph graph, de.cm.osm2po.model.LatLon latLon)
TouchPoint
-Objekt zurueck.
Ruft intern create(Graph, float, float)
auf.
graph
- Graph
latLon
- LatLon
TouchPoint
oder null.public static TouchPoint create(Graph graph, int vertexId)
TouchPoint
aufgrund eines
bereits bekannten, uebergebenen Vertex.
graph
- Graph
vertexId
- int Id des Vertex >= 0
TouchPoint
oder null.public java.util.Map<java.lang.Integer,Section> findOutgoingEdges(Graph graph)
graph
- Graph
public java.util.Map<java.lang.Integer,Section> findIncomingEdges(Graph graph)
graph
- Graph
public java.lang.String toString()
toString
in class java.lang.Object
|
osm2po-core-4.8.8 (c) 2012 Carsten Moeller - info@osm2po.de | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |