[josm-dev] downloading data along a gpx track
Petr Nejedly
Petr.Nejedly at Sun.COM
Fri Jul 11 21:13:31 BST 2008
mariner napsal(a):
> Hi there,
>
> There is one feature I am really missing in JOSM. It's the ability to
> donwload the data of OSM near a gpx track.
>
> I would like to place a feature request here on the list.
>
> It would be great to get only the data from JOSM, which is really
> important. This is mostly beside a track. Maybe 100 meters on each side
> around the logpoints. Would something like this be possible? I would
> like to help, but have no idea where to start...
You'd have to tile your cover area with rectangles and then ask the
server for each such a rectangle separately (as the OSM API only supports
asking for one rectangle at a time) and merge the resultant datasets.
It might end up being much faster to actually download the big rectangle
over all your GPX data (unless you cross the server request limit, of course).
Now, depending on your motivation, it might be enough to take that big
rectangle and filter it locally.
If your concern is JOSM responsiveness/memory consumption, local filtering
might work well.
If your concern is the server limit, cutting the coverage into pieces
digestible to the server is the only way. It would be useful
addition anyway, as it could support other use cases too.
--
Petr "Nenik" Nejedly, NetBeans/Sun Microsystems, http://www.netbeans.org
355/113 -- Not the famous irrational number PI, but an incredible simulation!
More information about the josm-dev
mailing list