Piwigo.org

You are not logged in. (Register / Login)

Announcement

#1 2014-10-14 11:03:35

xbgmsharp
Member
Registered: 1970-01-01
Posts: 213

[2.7] OpenStreetMap

Hello,

I am about to release a new version of OpenStreetMap.
http://piwigo.org/ext/extension_view.php?eid=701

To avoid any misstake, could you please test and feedback using the latest code repository prior to release.
https://github.com/xbgmsharp/piwigo-ope … stallation

The ChangeLog so far:
Changes from v2.7.a to v2.7.b
- Add new options for world map view
- Unify code, Thanks to GnunuX
- Add support for GPS tracks file, Thanks to GnunuX

Thanks

Offline

 

#2 2014-10-14 13:48:34

plg
Piwigo Team
Location: Nantes, France, Europe
Registered: 2002-04-05
Posts: 13060
Website

Re: [2.7] OpenStreetMap

Hi xbgmsharp,

When I open [Administration > Plugins > OpenStreetMap]

Parse error: syntax error, unexpected '[' in plugins/piwigo-openstreetmap/admin/admin_config.php on line 120

About the "GPS track file", where does the uploaded file goes?


Latest blog post (March 23th 2017) Piwigo.com Enterprise plans, now official!

Offline

 

#3 2014-10-14 13:53:18

xbgmsharp
Member
Registered: 1970-01-01
Posts: 213

Re: [2.7] OpenStreetMap

I create an album calll gps in '_data/i/galleries/gps/'

Your parse error is a PHP issue. I don't know the origin but I will change it to avoid the error.

Offline

 

#4 2014-10-14 13:57:13

plg
Piwigo Team
Location: Nantes, France, Europe
Registered: 2002-04-05
Posts: 13060
Website

Re: [2.7] OpenStreetMap

xbgmsharp wrote:

I create an album calll gps in '_data/i/galleries/gps/'

That is a bad idea. _data is supposed to contain only cache data, that can be deleted (and that Piwigo will recreate when needed).

I recommend you create a directory PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'gps_track_files'


Latest blog post (March 23th 2017) Piwigo.com Enterprise plans, now official!

Offline

 

#5 2014-10-19 11:05:52

xbgmsharp
Member
Registered: 1970-01-01
Posts: 213

Re: [2.7] OpenStreetMap

Thanks for the feedback.
I changed the path and the PHP parsing error.
[Github] piwigo-openstreetmap commit e0f8546f

Release coming soon...

Last edited by xbgmsharp (2014-10-19 11:13:05)

Offline

 

#6 2014-10-26 16:03:31

marfig
Member
Registered: 2013-12-12
Posts: 36

Re: [2.7] OpenStreetMap

Hello,
I'm wondering how to display gpx file, I've uploaded file into gallery, using plugin admin page, but nothing has changed. Where should I find it?
Could you please kindly help?

@xbgmsharp: thanks for your help with tables :)

Thank you
Best Regards
Martin

Offline

 

#7 2014-10-27 11:42:44

xbgmsharp
Member
Registered: 1970-01-01
Posts: 213

Re: [2.7] OpenStreetMap

Hello,

The GPS file track are only show in the world map.
They are not visible in the gallery view.

So far the GPX is very limited.

I'm thinking of make the GPS file track as normal items to be display in picture mode.
You can read more here, [Github] piwigo-openstreetmap issue #41

The debate is still open, appreciate any feedback.

Offline

 

#8 2014-10-27 13:09:49

marfig
Member
Registered: 2013-12-12
Posts: 36

Re: [2.7] OpenStreetMap

Hello,
there is maybe some misunderstanding in the term world map, but I opened world map via World icon and I saw full window world map with all my photos, I zoomed in to the location of the track, and I could see only points - photos, no track.
Please see my attachments:
world_map.png - screen from my web
gpsvisualizer.png - screen from web service, using mentioned gpx file

Am I missing something?

Btw, I can agree with the idea about gps tracks as pictures

Thank you and thank you for this plugin :)
Best Regards
Martin


Uploaded Images

Last edited by marfig (2014-10-27 13:11:27)

Offline

 

#9 2014-10-27 13:21:27

xbgmsharp
Member
Registered: 1970-01-01
Posts: 213

Re: [2.7] OpenStreetMap

yes I do refer to the full window world map.

Can you access the database via sql or phpmyadmin.
Check the content of the table PWGPREFIX_osm_gps.

Code:

$ select * from PWGPREFIX_osm_gps;

Check the file exist on the file system.

Code:

$ ls /var/www/piwigo/local/gps_track_files/

Offline

 

#10 2014-10-27 13:38:29

marfig
Member
Registered: 2013-12-12
Posts: 36

Re: [2.7] OpenStreetMap

Hello,
thank you very much, there was an inconsistency, table was empty, but file was there. Reason is simple, wrong plugin upgrade and I uploaded file, but db table didn't exist.

Now it looks wonderful, I'm so happy with piwigo and this plugin, I can easy track my life :-D

Thanks
Best Regards
Martin

Offline

 

#11 2014-10-27 13:47:30

xbgmsharp
Member
Registered: 1970-01-01
Posts: 213

Re: [2.7] OpenStreetMap

Glad it works.

Offline

 

#12 2014-10-30 20:18:01

marfig
Member
Registered: 2013-12-12
Posts: 36

Re: [2.7] OpenStreetMap

Hi xbgmsharp,
would be possible to add function display tracks only for related album? Currently, my world map display all tracks even if I don't select respective album.

Thanks
Best Regards
Martin

Offline

 

#13 2014-10-30 20:59:25

xbgmsharp
Member
Registered: 1970-01-01
Posts: 213

Re: [2.7] OpenStreetMap

Yes it will be done.

For the WorldMap View, I might create a specific layer the tracks. It can be visible or not.

The GPS file track need to be treated as normal items to be display in picture mode.
It will be display specific map with mini elevation grid.

You can read more here, [Github] piwigo-openstreetmap issue #41

The debate is still open, appreciate any feedback.

Offline

 

#14 2014-11-02 16:03:40

xbgmsharp
Member
Registered: 1970-01-01
Posts: 213

Re: [2.7] OpenStreetMap

Extend PWG with GPX support. GPX file are now handle properly via PWG core.
What do you think?
The track file are display as if an image.


Uploaded Images

Last edited by xbgmsharp (2014-11-02 16:04:18)

Offline

 

#15 2014-11-02 16:07:52

flop25
Piwigo Team
Registered: 2006-07-06
Posts: 6566
Website

Re: [2.7] OpenStreetMap

wow! I'm interested 8)!


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2017 · Contact