[OSM-talk] need advice for clever query or script

Richard Z. ricoz.osm at gmail.com
Sun Aug 31 12:11:49 UTC 2014


On Sat, Aug 30, 2014 at 02:09:34AM +0200, Imre Samu wrote:
> > I have got one problem, some of the queries with most bridges do
> > not load into JOSM. Josm says "contacting the server" and thats all.
> 
> strange ... :(
> maybe timeout when generate JOSM data?

my impression was that the problem was on the overpass website as it also
generated a very strange "shorturl" for sharing.

> 
> *#2. You can split the   big query-s - to smaller ones ..*

yes, thats what I was doing. Is actually nicer to edit in smaller batches
and the problem is triggered only for the 3 or 4 most frequent contributors.

> *Other solution - >   Filter in JOSM*
> 
> *  JOSM  "File" / "Open location"  :
> http://www.overpass-api.de/api/xapi_meta?way[bridge=swing]
> *   and after open the Filter menu (   Windows→Filter from the menu, or
> Alt+Shift+F from the keyboard)
> 
> https://wiki.openstreetmap.org/wiki/JOSM/Search_function
> 
> https://www.mapbox.com/blog/2012-08-15-using-filters-josm/
> 
> * and copy the query  ( without the "global"  keyword ( ..maybe... )   )
> 
> but I am not perfect in JOSM ...   so if you find th correct JOSM filtering
> please share with me ...  :)

yes that also works, I actually use the "Download from Overpass API" 
with 
  [timeout:600];way[bridge=swing];(._;>;);out meta;
and in JOSM use the plain search to select the subset that I want.
  bridge=swing  and ( id:50483896 or id:51513287 or id:51831532 or id:52209220 or id:59430361 or id:88300946 or id:88863770 or id:99211716 )

Never looked at filters yet, it might be that they would hide the nodes?


Richard



More information about the talk mailing list