pszufe / OpenStreetMapX.jl

OpenStreetMap (*.osm) support for Julia 1.0 and up
MIT License
123 stars 24 forks source link

overpassquery #4

Open salbert83 opened 6 years ago

salbert83 commented 6 years ago

Is there a plan to add to your API something similar to overpassquery as was available in OpenStreetMap2? Thanks,

pszufe commented 6 years ago

We use the library for numerical simulations on maps (rather then general map data processing). However, a pull request would be always welcome. The easiest way to achieve it would be to use contents of io.jl from OpenStreetMap2 and modify it to store output of the overpassquery to an osm file and subsequently load the file OpenStreetMapX.parseOSM() method. In this way overpassquery could be also independent from the OpenStreetMapX.

It would be nicer to do it on streams (rather than saving a file) - this however requires submitting a stream support pull request for JuliaIO/LibExpat.jl library (this actually would be very easy to do - just LibExpat.parsefile() method that opens a stream in its third line anyway needs a new parsestream() version ).