I want to take the XML output of a Xapi query and display it using leaflet or polymaps. How can I do that? Is there an easy way to convert XML to geojson
Convert OSM XML to GeoJSON – How to Convert in Leaflet or Polymaps
geojsonleafletopenstreetmappolymapsxml
Best Answer
You can convert OSM XML to GeoJson with ogr2ogr. To convert to GeoJSON without getting the following error:
You can use one of the following commands or all of them: