This object is in archive! 

Folder description tags in kml files are lost on import and as map element

joeloc shared this problem 10 years ago
Solved

kml description tags for folders (and for the document root) are lost when imported into Locus. Thats is quite unfortunate, since they might contain seriously important info.


I guess this is due to the fact that Locus only knows about Points and Tracks and has no concept of folders. Any bright ideas on how this could be solved?


Example: http://pastebin.com/qC57i6f5

Replies (7)

photo
0

here`s a possible solution:


when you parse kml, remember the last parent folders description tag that is not empty and add it to every element (point or track) inside that does not have its own description tag.


it`s far from ideal and i`d much prefer locus to have proper 1:1 kml rendering. but at least you could preserve some of the information this way without much work involved.

photo
1

Hello joeloc,


so in next version ...

photo
1

Cool! I could've used that 2 years ago :-).

Just kidding... kml improvements are always welcome. Thanks!

photo
1

KML map items seem to slow down zooming just like enabled tracks, even when all components are disabled in the new selector.


Download http://www.alpenzorro.de/makekml.php?trip=all and enable it as a map item. All visible, zooming is slowed down... to be expected. But even if you hide all the contents in your new map item selector box, zooming stays at the same slow speed.


Apparently hiding components in the kml selector doesnt prevent recalculations?

photo
1

Also... Locus shows Labels for the tracks in the KML mentioned above. Google Earth doesnt when there's only a linestring in a placemark and not a point.

Also... for the KML mentioned above... I can tap on your selector box to hide/show things exactly ONCE. When I tap it again afterwards, nothing happens. So basically, the selector box only shows once and then never again. It worked better with other KML files.

photo
1

Funny... when the selector box fails to appear, also ALL other similar menus in Locus are dead. No more main menu, no more quick map switch. And shortly after, Locus crashes.

photo
1

Hello, I hope, that one day you learn how to append new comments to previous posts ...


- disabled track are currently just not drawing, but initialization is still performed on background.


- problems with visibility, you tap on eye, item hide and later tap on same icon again did nothing? Maybe screenshot helps here.

photo
1

No. The whole side menu subsystem (whatever this thing is called) crashed. Neither your new kml selector opens, nor the main menu, nor the mapsforge style menu. The rest of Locus keeps running for a while and then crashes too.


That happens after I use the kml selector once with the kml I linked above.

photo
1

Ah you are correct, empty folder "jamaica" caused troubles. Fixed.

photo
1

The airline lost my luggage back then. The bike arrived though, so I cycled Jamaica for two weeks without GPS and just the clothes I was wearing on the plane. Funny trip... no tracks though... and now it helps fixing a bug in Locus :-).

photo
1

Btw... didnt network links work at one point in Locus? I am trying to display wikipedia in realtime with

http://toolserver.org/~kolossos/world-link.php?long=13.3783&lat=52.5163&lang=en

It's basically a network link that refreshes after moving the map. It works in google earth on windows... but in Locus nothing happens when used as mapItem. Maybe the new selector box broke network links somehow?


<NetworkLink id="khNetworkLink8868_copy1">

<name>Wikipedia-World1</name>

<open>1</open>

<Url>

<href>http://tools.wmflabs.org/wp-world/marks.php?LANG=en</href>

<refreshInterval>1</refreshInterval>

<viewRefreshMode>onStop</viewRefreshMode>

<viewRefreshTime>1</viewRefreshTime>

</Url>

</NetworkLink>

photo
1

Request is correct : "tools.wmflabs.org/wp-world/marks.php?LANG=en&BBOX=13.323358,52.497294,13.433222,52.535318" , problem is just that file do not started with <?xml so Locus did not recognized it as KML. Fixed, thanks

Replies have been locked on this page!