Class XmlDownloader

java.lang.Object
org.openstreetmap.osmosis.xml.v0_6.XmlDownloader
All Implemented Interfaces:
Runnable, org.openstreetmap.osmosis.core.task.common.Task, org.openstreetmap.osmosis.core.task.v0_6.RunnableSource, org.openstreetmap.osmosis.core.task.v0_6.Source

public class XmlDownloader extends Object implements org.openstreetmap.osmosis.core.task.v0_6.RunnableSource
An OSM data source reading from an osm-xml file from the OpenStreetMap-server.
  • Constructor Summary

    Constructors
    Constructor
    Description
    XmlDownloader(double left, double right, double top, double bottom, String baseUrl)
    Creates a new instance with the specified geographical coordinates.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run()
    Reads all data from the server and send it to the Sink.
    void
    setSink(org.openstreetmap.osmosis.core.task.v0_6.Sink aSink)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • XmlDownloader

      public XmlDownloader(double left, double right, double top, double bottom, String baseUrl)
      Creates a new instance with the specified geographical coordinates.
      Parameters:
      left - The longitude marking the left edge of the bounding box.
      right - The longitude marking the right edge of the bounding box.
      top - The latitude marking the top edge of the bounding box.
      bottom - The latitude marking the bottom edge of the bounding box.
      baseUrl - (optional) The base url of the server (eg. http://www.openstreetmap.org/api/0.5).
  • Method Details

    • setSink

      public void setSink(org.openstreetmap.osmosis.core.task.v0_6.Sink aSink)
      Specified by:
      setSink in interface org.openstreetmap.osmosis.core.task.v0_6.Source
    • run

      public void run()
      Reads all data from the server and send it to the Sink.
      Specified by:
      run in interface Runnable