| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvanetsim.map.OSM.OSMLoader
public final class OSMLoader
A class including functionality to import streets from the OpenStreetMap project. Implemented as Singleton.
| Method Summary | |
|---|---|
| static OSMLoader | getInstance()Gets the single instance of OSM_Loader. | 
|  void | loadOSM(java.io.File file)Function to load in an OSM map in OSM Protocol version 0.5. | 
|  boolean | WGS84toUTM(double[] result,
           double longitude,
           double latitude,
           boolean calculateZone,
           double longitudeMiddle,
           boolean highPrecision)Convert a WGS84 coordinate to the Universal Transverse Mercator coordinate system. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static OSMLoader getInstance()
public void loadOSM(java.io.File file)
file - the file to import
public boolean WGS84toUTM(double[] result,
                          double longitude,
                          double latitude,
                          boolean calculateZone,
                          double longitudeMiddle,
                          boolean highPrecision)
result - an array which can be used to store the results. The array must consist of at least two elements. The x coordinate will be stored in 
                                                        result[0], the y coordinate in result[1] (both have meters as scale)latitude - the latitude in the WGS84 systemlongitude - the longitude in the WGS84 systemcalculateZone - true if the zone should be calculated, false if you want to set your own longitudeOriginlongitudeMiddle - used to set your own longitude as the middle of the UTM zone (only used if calculateZone=false!). Note that using this gives results 
                                                        which are not conforming to UTM anymore.highPrecision - If some higher order terms for calculation should be used. Setting to true needs more performance but gives more precision in the 
                                                        sub-millimeter-range.false should be fine!
true if calculation succeeded, else false (error in your input!)| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||