[OSM-talk] OSMXAPI returning points outside bounding box

David Dean ddean at ieee.org
Mon Mar 17 12:16:40 GMT 2008


Hi,

I seem to be having some problems with a OSMXAPI request that has worked
perfectly in the past. In particular, a bunch of extra nodes seem to be
collected that are not within the bounding box I specified in the url.

I'm using the following command to download the xml file:

wget -O greater-brisbane.osm
http://www.informationfreeway.org/api/0.5/*[bbox=152,-28,154,-26]

But, there are a bunch of nodes in the XML file outside that bounding box:

<?xml version='1.0' standalone='no'?>
<osm version='0.5' generator='osmxapi: OSM Extended API'
xmlns:osmxapi='http://www.informationfreeway.org/osmxapi/0.5'
osmxapi:uri='/api/0.5/*%5bbbox=152,-28,154,-26%5d'
osmxapi:planetDate='200803171104' osmxapi:copyright='2008 OpenStreetMap
contributors' osmxapi:instance='zappy2'>
  <node id='248054' lat='50.9600002' lon='-0.8673246'
timestamp='2008-02-28T10:10:28Z'>
  </node>
  <node id='248136' lat='50.9591974' lon='-0.8707903'
timestamp='2008-02-28T10:10:22Z'>
  </node>
  <node id='249381' lat='50.9601963' lon='-0.8867872'
timestamp='2008-02-28T10:10:21Z'>
  </node>
  <node id='249501' lat='50.9558023' lon='-0.8364412'
timestamp='2008-02-28T10:10:28Z'>
  </node>
  <node id='249815' lat='50.9602984' lon='-0.8861724'
timestamp='2008-02-28T10:10:25Z'>
  </node>
  <node id='249816' lat='50.9601979' lon='-0.8831842'
timestamp='2008-02-28T10:10:22Z'>
  </node>
  <node id='249817' lat='50.9593969' lon='-0.8821780'
timestamp='2008-02-28T10:10:22Z'>
  </node>
  <node id='249818' lat='50.9590028' lon='-0.8804786'
timestamp='2008-02-28T10:10:25Z'>
  </node>
  <node id='249819' lat='50.9573042' lon='-0.8777854'
timestamp='2008-02-28T10:10:22Z'>
  </node>
  <node id='249820' lat='50.9575977' lon='-0.8746455'
timestamp='2008-02-28T10:10:22Z'>
  </node>

...


After a bit of that, the reset of the xml file seems ok, but something weird is
clearly happening here.

Any ideas?

Thanks,

David





More information about the talk mailing list