﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
14653	Overpass Download - PBF format	mmd.osm+josm@…	Don-vip	"==== What steps will reproduce the problem?
1. Set Overpass API instance to http://dev.overpass-api.de/api_mmd/ 
2. Install PBF plugin
3. Download data from Overpass API using the following query

{{{
[out:pbf][timeout:25][bbox:{{bbox}}];
(
  node[""amenity""=""pharmacy""];
  way[""amenity""=""pharmacy""];
  relation[""amenity""=""pharmacy""];
);
(._;>;);
out meta;
}}}


==== What is the expected result?

PBF format is automatically recognized by PBF plugin and data processed accordingly, like opening an .osm.pbf file from the local file system or a remote location.

==== What happens instead?

JOSM tries to parse PBF result via XML parser, throwing an error message.

==== Please provide any additional information below. Attach a screenshot if possible.

{{{
URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2017-04-02 01:45:00 +0200 (Sun, 02 Apr 2017)
Build-Date:2017-04-02 01:34:50
Revision:11826
Relative:URL: ^/trunk

Identification: JOSM/1.5 (11826 de) Linux Ubuntu 16.04.2 LTS
Memory Usage: 871 MB / 3484 MB (670 MB allocated, but free)
Java version: 1.8.0_91-b14, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: :0.0 1920x1080
Maximum Screen Size: 1920x1080
VM arguments: [-Djava.security.policy=file:${JAVA_HOME}/jre/lib/security/javaws.policy, -DtrustProxy=true, -Djnlpx.home=${JAVA_HOME}/jre/bin, -Djava.security.manager, -Djnlpx.origFilenameArg=${HOME}/.java/deployment/cache/6.0/56/1ee8cfb8-110faae6, -Djnlpx.remove=false, -Dsun.awt.warmup=true, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.splashport=46196, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp, -Djnlpx.jvm=${JAVA_HOME}/jre/bin/java]

Plugins:
+ Mapillary (v1.5.0)
+ apache-commons (32994)
+ apache-http (32699)
+ continuosDownload (53)
+ contourmerge (1030)
+ pbf (33165)
+ poly (33004)
+ reverter (33088)
+ scripting (30764)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/MountainbikeTrails&preset&zip=1

Map paint styles:
- http://josm.openstreetmap.de/browser/josm/trunk/styles/standard/elemstyles.mapcss?rev=7374&format=txt

Last errors/warnings:
- E: org.openstreetmap.josm.io.OsmTransferException: org.openstreetmap.josm.io.IllegalDataException: Zeile 1 Spalte 1: Content ist nicht zulässig in Prolog.. Ursache: org.openstreetmap.josm.io.IllegalDataException: Zeile 1 Spalte 1: Content ist nicht zulässig in Prolog.. Ursache: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
- E: Ungültige Daten - <html>Daten herunterladen fehlgeschlagen. Das Format ist nicht unterstützt, unzulässig strukturiert und/oder inkonsistent.<br><br>Details (nicht übersetzt): Zeile 1 Spalte 1: Content ist nicht zulässig in Prolog.</html>
}}}


Note: PBF output for Overpass API is still in prototype status, that's why I have flagged this as enhancement.
"	enhancement	closed	normal		Plugin pbf		fixed	template_report	
