|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectopenlr.map.sqlite.impl.LineImpl
public final class LineImpl
Implementation of the OpenLR Line interface for use with a
TomTom digital map in SQLite format.
OpenLR is a trade mark of TomTom International B.V.
email: software@openlr.org
| Constructor Summary | |
|---|---|
LineImpl(openlr.map.MapDatabase mapDB,
long idValue,
long startNode,
long endNode,
openlr.map.FormOfWay fow,
openlr.map.FunctionalRoadClass frc,
com.vividsolutions.jts.geom.LineString lineS,
int lengthValue,
Map<Locale,List<String>> roadNames)
Creates an instance of this class representing a Line
feature with a given ID in the network managed by the given |
|
| Method Summary | |
|---|---|
int |
distanceToPoint(double longitude,
double latitude)
|
boolean |
equals(Object other)
|
openlr.map.Node |
getEndNode()
|
openlr.map.FormOfWay |
getFOW()
|
openlr.map.FunctionalRoadClass |
getFRC()
|
long |
getID()
|
int |
getLineLength()
|
Map<Locale,List<String>> |
getNames()
|
Iterator<? extends openlr.map.Line> |
getNextLines()
|
Point2D.Double |
getPointAlongLine(int distance)
|
Iterator<? extends openlr.map.Line> |
getPrevLines()
|
Path2D.Double |
getShape()
|
openlr.map.Node |
getStartNode()
|
int |
hashCode()
|
int |
measureAlongLine(double longitude,
double latitude)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LineImpl(openlr.map.MapDatabase mapDB,
long idValue,
long startNode,
long endNode,
openlr.map.FormOfWay fow,
openlr.map.FunctionalRoadClass frc,
com.vividsolutions.jts.geom.LineString lineS,
int lengthValue,
Map<Locale,List<String>> roadNames)
Line
feature with a given ID in the network managed by the given
mapDB - the MapDatabase this feature is managed by.idValue - the unique ID of this Line.startNode - the start node idendNode - the end node idfow - the FormOfWay attribute value.frc - the FunctionalRoadClass attribute value.lineS - the geometry object which represents this object spatially.lengthValue - the length of this line in meters.roadNames - the naming information for the road which is represented by
this Line.
MapDatabase instance.| Method Detail |
|---|
public int distanceToPoint(double longitude,
double latitude)
distanceToPoint in interface openlr.map.Linepublic boolean equals(Object other)
equals in interface openlr.map.Lineequals in class Objectpublic openlr.map.Node getEndNode()
getEndNode in interface openlr.map.Linepublic openlr.map.FormOfWay getFOW()
getFOW in interface openlr.map.Linepublic openlr.map.FunctionalRoadClass getFRC()
getFRC in interface openlr.map.Linepublic long getID()
getID in interface openlr.map.Linepublic int getLineLength()
getLineLength in interface openlr.map.Linepublic Map<Locale,List<String>> getNames()
getNames in interface openlr.map.Linepublic Iterator<? extends openlr.map.Line> getNextLines()
getNextLines in interface openlr.map.Linepublic Point2D.Double getPointAlongLine(int distance)
getPointAlongLine in interface openlr.map.Linepublic Iterator<? extends openlr.map.Line> getPrevLines()
getPrevLines in interface openlr.map.Linepublic Path2D.Double getShape()
getShape in interface openlr.map.Linepublic openlr.map.Node getStartNode()
getStartNode in interface openlr.map.Linepublic int hashCode()
hashCode in interface openlr.map.LinehashCode in class Object
public int measureAlongLine(double longitude,
double latitude)
measureAlongLine in interface openlr.map.Linepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||