This object is in archive! 

Importing Pictures into the app

Ben Morton shared this question 7 years ago
Answered

I have loaded waypoints via KML/KMZ


On Google Maps they have images, but when uploading these to Locus the pictures will only show when I'm online


After some research it turns out the KMZ should contain the picture files, but don't


Is there a way to bulk upload pictures to the app, so they show on the pins, or in attachments? I have roughly 200 pins that need pictures adding to them

Replies (14)

photo
1

Good day Ben,

no such feature is currently possible with Locus Map.


May you please share with me some small sample file? I currently do not know if images are included in description or by any other method.

Currently similar tool you wants (pre-downloading of images) exists for geocaches, but it does not work for basic points. Till now, it wasn't needed to be true.

I'm worried that improving Locus to be able to do this, it will need quite a lot of time and from my point of view, it does not worth it. Anyway I would rather firstly have in hands any file for test, thanks.

photo
1

They're in the KMZ that you used for my altitude query.

photo
1

Menion, reading this post made me think - http://help.locusmap.eu/topic/pattern-for-the-name-of-attachments-in-the-points-of-a-track


Would it be possible to name the pictures file outside the app and then drop them into the media folder?


I've added an attachment by photo, named P_Wainhope_MBA_20170112_230244


I've copied another photo into the Locus/data/media/photo


And then renamed it to P_Wainhope_MBA_20170112_230245


But when I go out of the app and back in, it does not show on the attachment screen.


Does another file need to be updated to make this show on the attachments?


Though, storing the pictures generated by the KMZ would be the ideal given there are so many

photo
1

Good day Ben,

this will be more complicated. Indeed. Images are in description of points as links to images stored on web. To access them offline, function like already exists for geocaches, should be needed. Anyway I do not plan this "offlinizer" tool for basic points, because I believe that it's usage will be really low.


Using photos from media/photo automatically is also not possible. Attachments needs to be added over "attachment" tab of every point.


Alternative should be this method (if you are able to manually edit kml file)

- place images into directory Locus/data/import, so for example Locus/data/import/my_photos/photo01.jpg

- in description of point in kml, image should be then added as

  1. <description><![CDATA[<img src="my_photos/photo01.png" />]]></description>

Then it should work as expected. Anyway it's needed to edit KML file to achieve this.


Currently I'm not aware about any more simple solution.

photo
1

Is there a way to download the files from the kmz and have locus reference back to the downloaded images? The photos are scaled down so only about 50kb each

photo
1

To be true Ben, I've never needed something like this. In Locus this is not possible, but if exists any program for windows/linux, I'm sorry, but I really do not know.

photo
1

Ok, I'm going to try editing the KML as you suggested. Due to the number of pictures originally I'm just going to stick with one main picture.


Are the folders after Locus/data/import/ going to be my custom ones?

photo
1

Yes, they are. Sub folders in this data/import directory are created automatically by Locus when some files with attachments are imported anyway feel free to create your own and point pictures here.


I'm trying to suggest some better solution, anyway you have a wrong guy here, because I never needed to do something like this even it make absolute sense.

photo
1

Hello Ben

did you have sucess to make pictures offline available with your kmz?


I´m also interested in this task and so i spend little time on it, using your file...

It´s not 100%, 5 pictures (download error) and your videos are missing in following kmz

https://www.dropbox.com/s/a6psq3qitxf4eli/offlineMBA.kmz?dl=0


if you have question depending to this thread ask here, otherwise you can contact me by mail

balloni(a)arcor.de

nice winter evening

Wolfgang


PS: to built further POI projects on PC to add photos with and without geocode, i recommend

http://www.geosetter.de/en/

photo
1

Thanks for that Balloni55, I'm going to try it now


How did you make the KMZ? did you have to download all the photos manually?

photo
1

That doesn't work, pictures still load as blank when no data connection

photo
1

Hello Ben

My workflow in short:

- creat a new folder with subfolder "images" e.g. on desktop

- unzip your kmz file

- open kml with a editor, e.g. "notepad+" and store it as .txt

- using Firefox on PC with addon "DownThemAll" i´ve downloaded all pictures automaticly, using the .txt file (all URLs can be detected) and stored them in folder "images".

Important: downloaded files naming must be idetically your "online picture files".

e.g. lh4.googleusercontent.com-EHdTNo2whEIQQQVcI13JZiN94kluJg8rdtK1i1SmlllAx-BER2dCyuPV0p-wurU5orBEzuZwl4qGBluF6eisP3cURJJsRtLH5tzPR_-A1CFTtkv4EcjT6eNEm_M95qq9zQ.png

So i´ve used setting inside DownThemAll *url**flatcurl*.*ext*

- open your kml file with "notepad+" use search& rename all <img src="https:// to <img src="images/ and store it as .kml in before created folder, beside the image folder

- pack this .kml together with the image folder to .zip and next rename it to .kmz

I hope it is understandable for you ;-)

EDIT: for me in "Green MBA " 3 pictures are displayed, whats the download size of downloaded file from my Dropbox?

Wolfgang

photo
1

What do you mean by GE offline?

photo
1

sorry > GoogleEarth

Replies have been locked on this page!