overpass-turbo icon indicating copy to clipboard operation
overpass-turbo copied to clipboard

out:pbf

Open DaveF63 opened this issue 8 years ago • 5 comments

I'm trying to use pbf output as per: http://gis.19327.n8.nabble.com/PBF-output-prototype-available-for-testing-td5884534.html

Using the example: http://overpass-turbo.eu/s/jpK I'm unable to get it to work.

Could someone clarify what is meant by 'click on Export -> raw data directly from Overpass API'?

I'm unsure what to click on. Isn't the API command line operated? In Turbo I can only click Export>raw after it's run. By that time it appears I've already obtained 'garbled output'.

Step by Step: Run example Obtain garble under 'Data' tab:

gobbledygook

Click Export>raw data & obtain this:

{
  "elements": []
}

DaveF63 avatar Nov 10 '16 18:11 DaveF63

Click Export>raw data & obtain this: […]

~~that's a bug.~~

tyrasd avatar Nov 10 '16 19:11 tyrasd

It sounds like you're clicking on the wrong link. In the Export popup, there are two very similar links:

  • raw data
  • raw data directly from Overpass API

You should click the second one, yielding the following download link: link

Please keep in mind that this is a prototype only, it is not yet available in the official release yet.

mmd-osm avatar Nov 10 '16 20:11 mmd-osm

@mmd-osm right, but it should still be possible to download the data from overpass-turbo via export -> raw data once it's loaded in.

It turns out to be relatively tricky to fix, though. The main issue is that overpass turbo's code still builds directly on top of some jQuery features, but jQuery's ajax utility doesn't allow one to fetch binary data. It's probably best to replace it with a raw XMLHttpRequest (or fetch) based solution, but that would require a bit of work.

For the time being, I've created a prototype on the pbf branch (deployed at http://overpass-turbo.eu/pbf/) which can only parse pbf output. Here's the example from above.

tyrasd avatar Nov 14 '16 10:11 tyrasd

It sounds like you're clicking on the wrong link.

Self #facepalm. Apologies for not reading accurately.

DaveF63 avatar Nov 14 '16 11:11 DaveF63

Sorry for bumping this issue Are there any updates?

VitalyVaryvdin avatar Feb 29 '24 14:02 VitalyVaryvdin