This object is in archive! 

[SK] Čo dať do GPX aby body s fotkami a inými údajmi zobrazil Locus v detaile bodu?

Martin Ždila shared this question 2 years ago
Answered

Na https://www.freemap.sk je možné vyexportovať do GPS aj fotografie a rád by som tam pridal podporu aby ich Locus zobrazil priamo v aplikácii ako je znázornené na https://twitter.com/locusmap/status/1486976163587280897

Zatiaľ sa mi to však nedarí - tu je príklad: https://drive.google.com/file/d/171UVq2h1U9SGKskzI5WAclKEvDMp1LHn/view?usp=sharing

Aký ma byť formát aby ho Locus rozpoznal? K fotke mám tieto metadáta:

  • názov
  • popis
  • dátum fotenia
  • dátum uploadu
  • číselné hodnotenie fotky (1-5)
  • meno autora
  • do budúcna aj komentáre k fotke

Vopred ďakujem

Replies (16)

photo
2

A short test by a Freemap download example

https://t.ly/ijC0

A. Original gpx download.

@ import into the Android gpx viewer app the images preview are shown, click to open full screen.

@ import into Locus map there is no preview. Must click the image link to open by browser.

@ import into (strict) Garmin programs the original file is rejected as to be corrupt.

Check by validator shows there are errors into the file so is not gpx 1.1 conform.


B. Corrected gpx file inclusive attached Locus navigation instructions.

@ import into (strcit) Garmin programs the file is imported. Click the image link to open by browser.

photo
1

http://www.freemap.sk doesn't have my changes developed locally so it is not worth trying.

I would like to have some specification to know all the supported features.

photo
1

I've just deployed a version which should produce valid GPX (at least for your usecase ;-)). It also has enhanced `desc` element.

photo
1

Excellent.

And I sure noticed your progress ;-)


One suggestion. Can you add next in the gpx files ?

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd"

33f5978186b054280c3508b981ea489f


So allow a fast and comfortabe validation.

- By Notepad++ (XML plug in)

- By https://www.truugo.com/xml_validator/

b6d3ad56f88f3140508de19c30a262ee

Succes !

photo
1

I've added schema location.

photo
1

Further test.

photo
2

2bf6031f5fd8718ffb89fd5798bacd94

Display (gif) by Locus Map Pro & display by Gpx Viewer.

https://youtu.be/yV4PpyUeVVI

photo
1

Thanks! I will try to implement it once I will have a chance :-)

photo
1

I have implemented it on http://www.freemap.sk. Images in my Locus 4 are displayed only as miniatures, also for your freemap_wpt_navtrkpt.gpx. In the detail the image size is OK.

photo
1

Fine. I use V3 Locus Pro. Indeed the presentation by V4 can be slightly different. Example.

As a photo point in a gpz (zip) file into Pro look likes next. Set Tap on point (Pop-up)

Tapping the miniature image nicely than opens both the images. Select by swipe <->)

a34ef396cf3dfc74e7ec731dfd79b383

This preview presentation method is I think not offered into Locus 4 map (free).

For Locus map import change the gpz into zip.

photo
1

Hi Martin, Willy,

probably best to continue in English, sorry :).

Currently, there is no direct support for linked images in the GPX import/export, except the system that Willy mentioned. In Locus Map 4, because there is a completely new point detail screen a lot faster than in older Pro version, photos in the description are not directly visible on the first page.

Anyway, if there will be interest, I'm sure it will be a lot better to add direct support for some custom tags for images. UI of the Locus Map 4 is already ready for this because we use it for our own LoPoints now. Let me know Martin.

dec4559f2d9f1bec744ad3e121a89f9b

photo
1

Thanks. Menion. For me it is OK as it is, just in Locus 4 the picture in the point description could be 100% wide (as demanded by width="100%") and should be loaded immediately, not only after clicking "More..." button, closing the details creen and reopening it again.

Otherwise I don't know if there is any demand or usecase from the users for this functionality.

photo
1

Hi, it is technically not possible in the LM4. Problem is that on the initial screen is a simple text area that is really fast to load but does not support more complex content like images. This is different to the Pro version, where is loaded a simplified web browser, and also because of this, loading of point detail took a lot longer.

---

Anyway changes that will be in next version.

830649ee56eb72ad1bedb9d5b41f567e54affe563fedb199d64f02ba8b3afd49


And the XML definition is quite simple

4053e5829057f3c2eb10cb0b25978b68

So the suggestions

  • set description only to interesting readable content
  • put images only as "link" with correct "type" that will indicate it is an image
  • for attribution for images, use "text" tag inside the "link"

Will be working since next version (or Beta that will be published till end of week here). Is it clear and useful? Hope so :).

photo
2

Hello Menion. Interesting info.

I thought this was a limitation in the V4 free version only.

"Different to the Pro version, where is loaded a simplified web browser.

"LM4 problem is that on the initial screen is a simple text area.


Therefore so, a web link in desc text is not active. Find in wpt name Kapel.

By gpx: A_merged_Planner_points and link in point desc.gpx

For the compact cmt, pure text display is not a disadvantage.

But imo it is a disadvantage for extended desc info's in V4.

As a happy Pro user, I had not noticed this before (V4 free).


Websites like RouteYou add quite a lot of wpt poi's around tracks in a clean and free wpt list.

These desc tags are sometimes very extensive long with also some web links in the text.

(I have added 1 small example with only 1 such a smaller text waypoint selected)

By gpx: routeyou-berlare-uitbergen_demo_wpt.gpx

The Gpx Viewer app display is 100% nice inc link.

eb7ca2ddfebd29ed2c43c0de9d308f30

The Locus info text display here sure is not that optimal.

Anyway I did not mention this yet as there are still new Route You updates to come.

(Expected NEW is + Roundabout support by the discrete Locus navigation track)


Translated with http://www.DeepL.com/Translator (free version)

photo
1

And by Topo gps.

1a47907cb17980ae4eb50d7b0167e02a

photo
1

Thanks Willy. Does the clickable links works in these apps? Because there seems to be missing "http" protocol at start. Anyway I've improved parser in the Locus Map that reads GPX files and this should be fixed in the next version.

photo
2

Test by the single RouteYou waypoint download

Gpx viewer test by the single waypoint gpx: routeyou-berlare-uitbergen_demo_wpt.gpx

The Clickable links in the point details do work as next:

A click opens an extra menu with a selection choice out of the available links. (open in browser)

photo
1

Good Morning !

Nice, hello Martin and Menion. I wish you both designers a good collaboration. Pse KISS and extensions (always do limit the universal usage) only when there is really no other way. Unique, you can also add 100% faithfull Locus gpx track navigation without any extra waypoint list pollution. This so results in a nice clean and so easy free manageable waypoint list with only those waypoints that really belong in it. And provided by a gpz (zip) files offer, you can so even deliver both images and Locus track navigation as total "offline" by single file operation option. Unique, as I don't know any other Android app that could offer such a powerful and simple combination.

Regards, Willy.

photo
2

I have slightly updated the export. I added the second link and texts, but I am not duplicating texts as in the screenshot sample but I keep details only in desc and for links I only describe their kind.

photo
1

please see the small image in the description - this could be fixed. also it only displays after pressing MORE... button and then closing and reopening point detail view.

photo
1

There is no much I may do with this Martin, as I wrote before. I'll probably remove it completely because this small image makes no sense at all ...

photo
1

http://www.freemap.sk also supports exporting to GeoJSON. Which properties are supported by Locus? It seems to only use "name" property from the export. Sample of the properties:


      "properties": {
        "takenAt": "2008-02-23T14:38:07.000Z",
        "publishedAt": "2016-02-19T16:43:48.000Z",
        "name": "Areál banského závodu Dúbrava 23.2.2008",
        "description": null,
        "imageUrl": "https://backend.freemap.sk/gallery/pictures/50453/image",
        "webUrl": "https://www.freemap.sk?image=50453",
        "author": "Mirecnet",
        "tags": []
      }

photo
1

Support for GeoJSON is currently really limited and only basics are supported. When GPX export will work as needed, I believe there is no need to improve support for GeoJSON format.

photo
1

I see. GeoJSON is better for GIS data than GPX. GPX is about tracks, routes, waypoints and trackpoints. GeoJSON is about shapes (points, lines, multilines, polygons, mutipolygons). But it doesn't define schema about how to interpret properties and it is up to the producer/consumer agreement. KML is better in that and maybe I will add support for KML to freemap.sk. Just my 5 cents :-)

Replies have been locked on this page!