drolbr / Overpass-API

A database engine to query the OpenStreetMap data.
http://overpass-api.de
GNU Affero General Public License v3.0
730 stars 91 forks source link

Make XML Response deserializable with OsmSharp #533

Closed blackboxlogic closed 5 years ago

blackboxlogic commented 5 years ago

OsmSharp can't parse XML responses from Overpass-API because of the "note", "meta" or any other XmlElements which are not part of the OsmApi's XML format.

Could there be (or is there already) a feature to either

Related: https://github.com/OsmSharp/core/issues/76

mmd-osm commented 5 years ago

As of now, there's no option to remove those extra tags. At least for the copyright notice, I doubt that this kind of information could be easily dropped without further discussion.

Let’s see if this could be possibly fixed in OsmSharp, as this turns out to be the only tool affected by this issue. By the way, those extra tags are documented here: http://overpass-api.de/output_formats.html

blackboxlogic commented 5 years ago

Yep, looks like I solve this by changing how I use osmSharp or my making a pull request there.