This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Overpass Turbo out:csv add empty row

1

A short question: is it possible to enter a user-specific row using Overpass Turbo with out:csv? For example, an empty row? That would help structuring the csv output.

Here, an example where I added out:count here and there to get something close to an empty row.

Thanks in advance!

asked 08 Sep '21, 15:27

G%C3%A5seborg's gravatar image

Gåseborg
31171016
accept rate: 50%


One Answer:

2

You'll probably have to post process it, but you may be able to develop this:

[bbox:{{bbox}}]
[out:csv(name,NewL;false)];
way[leisure]; 
for (t["leisure"])
{
 make stat
  name=_.val,
  NewL='\n\n';
 out tags;
}

https://overpass-turbo.eu/s/1b1E

answered 09 Sep '21, 14:29

DaveF's gravatar image

DaveF
3.3k8498133
accept rate: 16%

Thanks for the workaround! I adapted it slightly to make it easier, just using "make ooo ::id="0"; out tags;" see example on https://overpass-turbo.eu/s/1b3V

(10 Sep '21, 14:41) Gåseborg

Good. BTW - if you want all of those mapped entities change 'node' to 'nwr'

(10 Sep '21, 15:49) DaveF

Source code available on GitHub .