org.openstreetmap.josm.io
Class BoundingBoxDownloader
java.lang.Object
org.openstreetmap.josm.io.OsmConnection
org.openstreetmap.josm.io.OsmServerReader
org.openstreetmap.josm.io.BoundingBoxDownloader
public class BoundingBoxDownloader
- extends OsmServerReader
Field Summary |
protected boolean |
crosses180th
|
protected double |
lat1
The boundings of the desired map data. |
protected double |
lat2
|
protected double |
lon1
|
protected double |
lon2
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lat1
protected final double lat1
- The boundings of the desired map data.
lon1
protected final double lon1
lat2
protected final double lat2
lon2
protected final double lon2
crosses180th
protected final boolean crosses180th
BoundingBoxDownloader
public BoundingBoxDownloader(Bounds downloadArea)
downloadRawGps
private GpxData downloadRawGps(java.lang.String url,
ProgressMonitor progressMonitor)
throws java.io.IOException,
OsmTransferException,
org.xml.sax.SAXException
- Throws:
java.io.IOException
OsmTransferException
org.xml.sax.SAXException
parseRawGps
public GpxData parseRawGps(ProgressMonitor progressMonitor)
throws OsmTransferException
- Retrieve raw gps waypoints from the server API.
- Overrides:
parseRawGps
in class OsmServerReader
- Returns:
- A list of all primitives retrieved. Currently, the list of lists
contain only one list, since the server cannot distinguish between
ways.
- Throws:
OsmTransferException
getRequestForBbox
protected java.lang.String getRequestForBbox(double lon1,
double lat1,
double lon2,
double lat2)
parseOsm
public DataSet parseOsm(ProgressMonitor progressMonitor)
throws OsmTransferException
- Read the data from the osm server address.
- Specified by:
parseOsm
in class OsmServerReader
- Returns:
- A data set containing all data retrieved from that url
- Throws:
OsmTransferException
JOSM