Author Topic: Show GPX-Files stored in DB in the Map  (Read 402 times)

voronwe

  • Full Member
  • **
  • Posts: 164
Show GPX-Files stored in DB in the Map
« on: June 01, 2021, 04:56:09 PM »
I have a lot of GPX-Files recorded from my Garmin Handheld. As the name of the is only [Date].gpx, it would be nice when adding them to a DB to show the the path which is inside on the Map.
Currently it is only possible to add a GPX-File to the Map for Geocoding.

But in my case, I would like to have the files included in the DB, like every other Text-File. When selecting it, it would be nice to show the path-content in the Map.

Just the content of one file, like the Quick-View for Images. Just to get an idea where this GPX is located.
« Last Edit: June 01, 2021, 04:58:47 PM by voronwe »

jch2103

  • Oldtimer
  • ****
  • Posts: 2200
Re: Show GPX-Files stored in DB in the Map
« Reply #1 on: June 01, 2021, 05:34:38 PM »
You should be able to see GPX files in the File Window. If not, define them in the file formats settings (see screenshots).

The second part of your request is more complicated. You can load a GPX log via the Map window, of course, but showing the contents of an individual log when you select it (w/o loading it) would be more complicated. I do see how this could be useful from an overview perspective, though.
John

thrinn

  • Hero Member
  • ***
  • Posts: 963
Re: Show GPX-Files stored in DB in the Map
« Reply #2 on: June 01, 2021, 10:13:19 PM »
For my personal use, I have copied and modified the Map panel app to display a GPX file as a track. It is a rather crude hack and still a very early version, but if you are interested I can post it here (or rather in the App board).
Thorsten
Win 10 / 64, IMatch 2018, IMA

jch2103

  • Oldtimer
  • ****
  • Posts: 2200
Re: Show GPX-Files stored in DB in the Map
« Reply #3 on: June 01, 2021, 11:44:08 PM »
Excellent. I for one would be interested in trying it.
John

voronwe

  • Full Member
  • **
  • Posts: 164
Re: Show GPX-Files stored in DB in the Map
« Reply #4 on: June 02, 2021, 09:14:26 AM »
For my personal use, I have copied and modified the Map panel app to display a GPX file as a track. It is a rather crude hack and still a very early version, but if you are interested I can post it here (or rather in the App board).

This sounds interesting. It would be worth a try

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 28790
Re: Show GPX-Files stored in DB in the Map
« Reply #5 on: June 02, 2021, 09:18:01 AM »
I assume you a dealing with GPX track logs which are unrelated to images or other files in your database?

voronwe

  • Full Member
  • **
  • Posts: 164
Re: Show GPX-Files stored in DB in the Map
« Reply #6 on: June 02, 2021, 09:38:54 AM »
I assume you a dealing with GPX track logs which are unrelated to images or other files in your database?

I'm not sure what you mean with "related file". Images can have Coordinates which are in a track in a GPX-file. but otherwise they are not connected

My case is the following:
Currently I have all gpx-files in one Folder. The name of the File is the Date. So it would be nice to have a quick view into the file to get an idea what place this file includes.
So I can add IMatch-Metadata to the file to find it later.

The idea would be also to connect those files to events (e.g. a hiking trip), to have these information all together.


Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 28790
Re: Show GPX-Files stored in DB in the Map
« Reply #7 on: June 02, 2021, 10:21:28 AM »
Quote
I'm not sure what you mean with "related file". Images can have Coordinates which are in a track in a GPX-file. but otherwise they are not connected

The usual workflow in IMatch is to import the GPX track log and to assign the coordinates to the image/files.
This allows IMatch to display the files on the map, show the file route, find files by location or area, automatically perform reverse geo-coding, sort files by GPS coordinates, automatically group files by location, etc.

Quote
Currently I have all gpx-files in one Folder.
Not sure if this is a good workflow. Keeping the track lock somehow alongside the related images (e.g., in the same folder as the images) automatically links the images and the track log.
And makes it easier to import the log into IMatch and map the coordinates to the files.

voronwe

  • Full Member
  • **
  • Posts: 164
Re: Show GPX-Files stored in DB in the Map
« Reply #8 on: June 02, 2021, 11:23:40 AM »
Well, I do the coordinate-mapping mostly with GeoSetter, because it gives more flexibility.

However, this is only one use-case with GPX-Data. You can also download GPX-files from websites like komood or outdooractive for your own Tour-planning. So it would be also nice to have them in a Database.

I'm thinking only of something similar to what is allready implemented in the Map-view ("show the file route"), just by showing this when clicking on a GPX-File in the File-Window.

The request has nothing to do with Geocoding, just a simple view

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 28790
Re: Show GPX-Files stored in DB in the Map
« Reply #9 on: June 02, 2021, 02:30:09 PM »
Aren't there specialized apps for routing and tour planning etc. Not sure if this is something that should be implemented in a DAM...
Let's see how many users see a use for this.

voronwe

  • Full Member
  • **
  • Posts: 164
Re: Show GPX-Files stored in DB in the Map
« Reply #10 on: June 02, 2021, 02:34:23 PM »
Aren't there specialized apps for routing and tour planning etc. Not sure if this is something that should be implemented in a DAM...
Let's see how many users see a use for this.

No, please do not misunderstand me: No work on the file is needed.
Just a preview to check what is inside the file (like the pdf-view or an image preview). If you want to make tour-planning, of course a specialised tool is needed (as you use e.g. Photoshop for working with Images or Acrobat for pdf)

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 28790
Re: Show GPX-Files stored in DB in the Map
« Reply #11 on: June 02, 2021, 02:47:37 PM »
This change would require to import GPX files (which may be added as a user-defined format but are usually just considered temporary files from a DAM perspective).
I would also need to write code which opens the Map Panel when the user clicks a GPX file (or maybe a dozen other file formats which are used by various apps for the same purpose), load the map (which costs your money), load the track log and render it on the map.

Not hard to do, but several days of work, from design to implementation to testing to documenting / help, translations, continuous support over the next couple of years, for both HERE, OpenStreetMap, Bing Maps and Google maps.
Before I even consider this, I need a relevant number of users who want this.

thrinn

  • Hero Member
  • ***
  • Posts: 963
Re: Show GPX-Files stored in DB in the Map
« Reply #12 on: June 02, 2021, 05:42:47 PM »
Ok, so I risked to share my hacked map panel... See https://www.photools.com/community/index.php?topic=11390.0.
Of course, it is no replacement for a real IMatch feature - but it works for me.
Thorsten
Win 10 / 64, IMatch 2018, IMA

jch2103

  • Oldtimer
  • ****
  • Posts: 2200
Re: Show GPX-Files stored in DB in the Map
« Reply #13 on: June 02, 2021, 07:07:11 PM »
Thanks! Works exactly as advertised. Very useful for me when I've got several GPX files in a folder (e.g., when traveling).

@voronwe: Looks like this will do much of what you requested, with some caveats ID by @thrinn.

(https://www.photools.com/community/index.php?topic=11390.msg81369#msg81369)

John

voronwe

  • Full Member
  • **
  • Posts: 164
Re: Show GPX-Files stored in DB in the Map
« Reply #14 on: June 03, 2021, 11:43:59 AM »
Ok, so I risked to share my hacked map panel... See https://www.photools.com/community/index.php?topic=11390.0.
Of course, it is no replacement for a real IMatch feature - but it works for me.

As I wrote in the other Thread

Thanks. Exactly what I had in mind