gpx icon indicating copy to clipboard operation
gpx copied to clipboard

Accept StringIO and TempFile

Open Qwertie- opened this issue 6 years ago • 1 comments

This line checks if the input is of the the type File. It would be helpful if it also accepted Tempfile and StringIO so you could give it the result of open-uri to load gpx files from http.

Qwertie- avatar Dec 30 '18 09:12 Qwertie-

This issue is resolved here.

To read a GPX file from a string, use :gpx_data.
gpx_file = GPXFile.new(:gpx_data => '<xml ...><gpx>...</gpx>')

The Readme should be updated to reflect this.

tyrauber avatar Feb 18 '21 17:02 tyrauber