|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cm.osm2po.sd.routing.SdGraph
public class SdGraph
Provides all needed methods to deal with a SdGraph
-File.
Important:
Methods of this class are not thread-safe!
Field Summary | |
---|---|
static int |
COMPAT_FILE_TYPE
|
static int |
COMPAT_VERSION
|
Constructor Summary | |
---|---|
SdGraph(java.io.File graphFile)
CTOR. |
Method Summary | |
---|---|
void |
clearMem()
|
void |
close()
|
int[] |
findCloseEdgeIdxs(float lat,
float lon)
Finds close edges. |
int |
findFirstSiblingEdgeIdx(int edgeIdx)
Finds the first Edge-Index for a link / crossing. |
int |
findReverseEdgeIdx(int edgeIdx)
Finds the reverse edge. |
int |
findSiblingEdges(int edgeIdx,
SdEdge[] edges)
Deserializes the given an all subsequent edges of the same link into the given Edge-Array. |
SdEdge[] |
getEdgesBuffer()
Returns the internal buffer of already instanciated SdEdge s. |
int |
getId()
|
double |
getLevel1CellSize()
|
long |
getMaxCoord()
|
long |
getMinCoord()
|
int |
getNumberOfEdges()
|
long[] |
lookupGeometry(int edgeIdx)
Returns the Geometrie for one Edge. |
byte |
peekFlags(int edgeIdx)
Reads the FlagsByte of an edge without complete deserialization = faster. |
byte |
peekMetaByte(int edgeIdx)
Reads the MetaByte of an edge without complete deserialization = faster. |
java.lang.String |
peekStreetName(int edgeIdx)
Returns the StreetName of an edge. |
SdEdge |
readEdge(int edgeIdx,
SdEdge edge)
Deserializes data into a given edge object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int COMPAT_FILE_TYPE
public static final int COMPAT_VERSION
Constructor Detail |
---|
public SdGraph(java.io.File graphFile)
graphFile
- File
(*.gpt)Method Detail |
---|
public void close()
public void clearMem()
public int getId()
public long getMinCoord()
public long getMaxCoord()
public int getNumberOfEdges()
public double getLevel1CellSize()
public SdEdge[] getEdgesBuffer()
SdEdge
s.
SdEdge
[] Array.public SdEdge readEdge(int edgeIdx, SdEdge edge)
edgeIdx
- Index of edge.edge
- SdEdge
NOT NULL.
public byte peekMetaByte(int edgeIdx)
edgeIdx
- int Index of edge in adjacency list
public byte peekFlags(int edgeIdx)
edgeIdx
- int Index of edge in adjacency list
public java.lang.String peekStreetName(int edgeIdx)
edgeIdx
- int Index of Edge
public int findFirstSiblingEdgeIdx(int edgeIdx)
edgeIdx
- int Index of arbitrary edge.
findSiblingEdges(int, SdEdge[])
public int findSiblingEdges(int edgeIdx, SdEdge[] edges)
edgeIdx
- int Index of first edge.edges
- Array of SdEdge
ELEMENTS NOT NULL.
public int findReverseEdgeIdx(int edgeIdx)
edgeIdx
- int edge-Index.
public final int[] findCloseEdgeIdxs(float lat, float lon)
lat
- float Latitudelon
- float Longitude
public long[] lookupGeometry(int edgeIdx)
edgeIdx
- int Index of Edge
|
osm2po-sd-5.0.0 (c) December 24 2014 Carsten Moeller - info@osm2po.de | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |