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

Re: Should I include controls in GPS file?
« Reply #25 on: 04 September, 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: 04 September, 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 ?
2019 🏅 R1000 and B1000

Re: Should I include controls in GPS file?
« Reply #27 on: 04 September, 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: 04 September, 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: 04 September, 2017, 07:08:31 pm »
Not at all. Thanks for checking :)
2019 🏅 R1000 and B1000

Kim

  • Timelord
    • Fediverse
Re: Should I include controls in GPS file?
« Reply #30 on: 04 September, 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.

Phil W

Re: Should I include controls in GPS file?
« Reply #31 on: 04 September, 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
    • Fediverse
Re: Should I include controls in GPS file?
« Reply #32 on: 04 September, 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*

Phil W

Re: Should I include controls in GPS file?
« Reply #33 on: 05 September, 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
    • Fediverse
Re: Should I include controls in GPS file?
« Reply #34 on: 05 September, 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.

Phil W

Re: Should I include controls in GPS file?
« Reply #35 on: 05 September, 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
    • Fediverse
Re: Should I include controls in GPS file?
« Reply #36 on: 05 September, 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.

Phil W

Re: Should I include controls in GPS file?
« Reply #37 on: 05 September, 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
    • Fediverse
Re: Should I include controls in GPS file?
« Reply #38 on: 05 September, 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*
 

telstarbox

  • Loving the lanes
Re: Should I include controls in GPS file?
« Reply #39 on: 05 September, 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.
2019 🏅 R1000 and B1000

frankly frankie

  • I kid you not
    • Fuchsiaphile
Re: Should I include controls in GPS file?
« Reply #40 on: 05 September, 2017, 06:42:51 pm »
I do sometimes wonder what people think their RH mouse button is for ...
when you're dead you're done, so let the good times roll

Kim

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

Tormenting Mac users  ;)