Author Topic: Should I include controls in GPS file?  (Read 3714 times)

Re: Should I include controls in GPS file?
« Reply #25 on: September 04, 2017, 05:09:14 pm »
If anyone could double check this I'd be much obliged.
https://drive.google.com/open?id=0B9N-QE1V7uI4eUxNVUx6UzNTQW8

Didn't work for me.
html files won't open in the various software I use for looking at GPX files.
I tried manually renaming the file (changing the extension) & tried in a couple of different websites.
One failed to load, the other gave error msg: "XML error: Reserved XML Name at line 1"

Messing about editing an xml file seems like a bad idea on the face of it - far too much chance of a syntax error rendering the whole file unuseable.

There are various tools you can use to do this.
Mapsource is one (if you have it installed from the days when it was Garmin's current tool)
or among the online tools:
gpxeditor.co.uk (if you can get to grips with the slightly obscure UI)

doubtless there are others...

telstarbox

  • Loving the lanes
Re: Should I include controls in GPS file?
« Reply #26 on: September 04, 2017, 05:18:58 pm »
I think that's because Google Drive is displaying the text of the file in the browser via HTML, but if you click the download button at top-right it should download the actual GPX ?
2017 - R500 ✅ | 2018 - R1000 ✅ | 2019 - ?

Re: Should I include controls in GPS file?
« Reply #27 on: September 04, 2017, 05:24:22 pm »
If anyone could double check this I'd be much obliged.
https://drive.google.com/open?id=0B9N-QE1V7uI4eUxNVUx6UzNTQW8

Didn't work for me.
html files won't open in the various software I use for looking at GPX files.
I tried manually renaming the file (changing the extension) & tried in a couple of different websites.
One failed to load, the other gave error msg: "XML error: Reserved XML Name at line 1"

Messing about editing an xml file seems like a bad idea on the face of it - far too much chance of a syntax error rendering the whole file unuseable.

There are various tools you can use to do this.
Mapsource is one (if you have it installed from the days when it was Garmin's current tool)
or among the online tools:
gpxeditor.co.uk (if you can get to grips with the slightly obscure UI)

doubtless there are others...

I copied/pasted the text and renamed it without spaces.  Works fine for me. 

Re: Should I include controls in GPS file?
« Reply #28 on: September 04, 2017, 06:47:17 pm »
I think that's because Google Drive is displaying the text of the file in the browser via HTML, but if you click the download button at top-right it should download the actual GPX ?

Ah - that works.  I blame lack of familiarity with Google Drive
(or sheer bloody incompetence on my part)

telstarbox

  • Loving the lanes
Re: Should I include controls in GPS file?
« Reply #29 on: September 04, 2017, 07:08:31 pm »
Not at all. Thanks for checking :)
2017 - R500 ✅ | 2018 - R1000 ✅ | 2019 - ?

Kim

  • Timelord
Re: Should I include controls in GPS file?
« Reply #30 on: September 04, 2017, 09:19:43 pm »
I think that's because Google Drive is displaying the text of the file in the browser via HTML, but if you click the download button at top-right it should download the actual GPX ?

Indeed.  Used to be that you could just stick a file on a web server and then arse about with apache configs to get the mime type correct so it would download rather than display.

Such is progress.
To ride the Windcheetah, first, you must embrace the cantilever...

Phil W

Re: Should I include controls in GPS file?
« Reply #31 on: September 04, 2017, 10:52:43 pm »
I think that's because Google Drive is displaying the text of the file in the browser via HTML, but if you click the download button at top-right it should download the actual GPX ?

Indeed.  Used to be that you could just stick a file on a web server and then arse about with apache configs to get the mime type correct so it would download rather than display.

Such is progress.

Html5 you just include a download attribute and optional file name override. Somewhat easier than needing to arse about with web server config.

https://www.w3schools.com/TAGS/att_a_download.asp

Kim

  • Timelord
Re: Should I include controls in GPS file?
« Reply #32 on: September 04, 2017, 11:04:03 pm »
Html5 you just include a download attribute and optional file name override. Somewhat easier than needing to arse about with web server config.

https://www.w3schools.com/TAGS/att_a_download.asp

That's handy (though does of course require you have an HTML page to link to it).  *files away for future reference*
To ride the Windcheetah, first, you must embrace the cantilever...

Phil W

Re: Should I include controls in GPS file?
« Reply #33 on: September 05, 2017, 01:44:03 pm »
Html5 you just include a download attribute and optional file name override. Somewhat easier than needing to arse about with web server config.

https://www.w3schools.com/TAGS/att_a_download.asp

That's handy (though does of course require you have an HTML page to link to it).  *files away for future reference*

Well I was kind of thinking you already had a few html pages since you were running a http server.  If you just wanted a basic index of files well you could just use FTP in which case you wouldn't be arsing about with MIME as FTP has no concept of that.

Kim

  • Timelord
Re: Should I include controls in GPS file?
« Reply #34 on: September 05, 2017, 03:37:55 pm »
Well I was kind of thinking you already had a few html pages since you were running a http server.  If you just wanted a basic index of files well you could just use FTP in which case you wouldn't be arsing about with MIME as FTP has no concept of that.

I was thinking in terms of making a direct link from someone else's CMS where you don't have full control of the HTML.  YACF for example.
To ride the Windcheetah, first, you must embrace the cantilever...

Phil W

Re: Should I include controls in GPS file?
« Reply #35 on: September 05, 2017, 03:42:39 pm »
Well I was kind of thinking you already had a few html pages since you were running a http server.  If you just wanted a basic index of files well you could just use FTP in which case you wouldn't be arsing about with MIME as FTP has no concept of that.

I was thinking in terms of making a direct link from someone else's CMS where you don't have full control of the HTML.  YACF for example.

But surely if you were arsing about with MIME settings on your Apache Server you had full control of the HTML as well?

Kim

  • Timelord
Re: Should I include controls in GPS file?
« Reply #36 on: September 05, 2017, 03:46:37 pm »
Well I was kind of thinking you already had a few html pages since you were running a http server.  If you just wanted a basic index of files well you could just use FTP in which case you wouldn't be arsing about with MIME as FTP has no concept of that.

I was thinking in terms of making a direct link from someone else's CMS where you don't have full control of the HTML.  YACF for example.

But surely if you were arsing about with MIME settings on your Apache Server you had full control of the HTML as well?

Not on YACF I don't.
To ride the Windcheetah, first, you must embrace the cantilever...

Phil W

Re: Should I include controls in GPS file?
« Reply #37 on: September 05, 2017, 04:13:22 pm »
Well I was kind of thinking you already had a few html pages since you were running a http server.  If you just wanted a basic index of files well you could just use FTP in which case you wouldn't be arsing about with MIME as FTP has no concept of that.

I was thinking in terms of making a direct link from someone else's CMS where you don't have full control of the HTML.  YACF for example.

But surely if you were arsing about with MIME settings on your Apache Server you had full control of the HTML as well?

Not on YACF I don't.

Yes, but we weren't talking about YACF up to that point, we were talking about your need to arse about with mime setting on your Apache server..

Kim

  • Timelord
Re: Should I include controls in GPS file?
« Reply #38 on: September 05, 2017, 04:14:47 pm »
I thought we were talking about putting GPX files up somewhere to be downloaded (as telstarbox did above, prompting this discussion).  Last time I did that, it was so I could link to it from YACF, so that people doing my ride knew the route.  This required appropriate MIME settings so the file would download rather than be displayed in the browser.

I've now learned that I could have created an intermediate HTML5 page with a link that forces a download.  That's useful, but less elegant in that particular case.

*shrug*
 
To ride the Windcheetah, first, you must embrace the cantilever...

telstarbox

  • Loving the lanes
Re: Should I include controls in GPS file?
« Reply #39 on: September 05, 2017, 04:26:35 pm »
I will tell my prospective rides to ensure that they download the actual GPX rather than saving as an HTML file, which won't be of much use.
2017 - R500 ✅ | 2018 - R1000 ✅ | 2019 - ?

frankly frankie

  • I kid you not
    • Fuchsiaphile
Re: Should I include controls in GPS file?
« Reply #40 on: September 05, 2017, 06:42:51 pm »
I do sometimes wonder what people think their RH mouse button is for ...
"This is a complex subject, with a need for more than one highlighter pen."

Kim

  • Timelord
Re: Should I include controls in GPS file?
« Reply #41 on: September 05, 2017, 07:03:44 pm »
I do sometimes wonder what people think their RH mouse button is for ...

Tormenting Mac users  ;)
To ride the Windcheetah, first, you must embrace the cantilever...