tyrasd / overpass-turbo

A web based data mining tool for OpenStreetMap using the Overpass API.
https://overpass-turbo.eu
Other
913 stars 128 forks source link

out:pbf #273

Open DaveF63 opened 7 years ago

DaveF63 commented 7 years ago

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": []
}
tyrasd commented 7 years ago

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

that's a bug.

mmd-osm commented 7 years ago

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

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.

tyrasd commented 7 years ago

@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.

DaveF63 commented 7 years ago

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

Self #facepalm. Apologies for not reading accurately.

VitalyVaryvdin commented 6 months ago

Sorry for bumping this issue Are there any updates?