Announcement

  •  » Requests
  •  » OpenStreetMap support request

#31 2015-03-20 16:17:47

xbgmsharp
Member
1970-01-01
215

Re: OpenStreetMap support request

bocman wrote:

Hello!
Thank you for your answer!
I'll check in the evening.

xbgmsharp wrote:

IPTC and EXIF are run different process. The patch is low level.
To do so it would require to modify the sync process of PWG.

Why we couldn't add expression like "isset($exif['latitude'])and isset($exif['longitude'])"?

Well, the code is in the IPTC parsing function. There is no exif data available at this point.
To do it would require a more intrusive patch.

Offline

 

#32 2015-03-23 21:55:16

bocman
Member
2015-02-18
42

Re: OpenStreetMap support request

Hello!
I have completed test of the solution, but I found bug

In IPTC I have following data:
State: Ярославская oblast
Country: Россия

The solution are creating osm_url:

Code:

http://nominatim.openstreetmap.org/search?format=json&addressdetails=1&limit=1&q=Россия+Ярославская oblast

(I uncommented print $osm_url in your code) and recieving wrong result:

Code:

 Resource id #101Array ( [place_id] => 67137396 [licence] => Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright [osm_type] => way [osm_id] => 46923358 [boundingbox] => Array ( [0] => 44.5899732 [1] => 44.6353978 [2] => 40.4373587 [3] => 40.4907563 ) [lat] => 44.609839 [lon] => 40.4616546 [display_name] => Ярославская, Мостовский район, Краснодарский край, ЮФО, Россия [class] => place [type] => village [importance] => 0.51821395047302 [icon] => http://nominatim.openstreetmap.org/images/mapicons/poi_place_village.p.20.png [address] => Array ( [village] => Ярославская [county] => Мостовский район [region] => Краснодарский край [state] => ЮФО [country] => Россия [country_code] => ru ) )

But if I insert this URL in browser I'm recieving right result:

Code:

[{"place_id":"127617481","licence":"Data \u00a9 OpenStreetMap contributors, ODbL 1.0. http:\/\/www.openstreetmap.org\/copyright","osm_type":"relation","osm_id":"81994","boundingbox":["56.5343034","58.9560117","37.3279086","41.1934982"],"lat":"57.7781976","lon":"39.0021095","display_name":"Yaroslavl Oblast, Central Federal District, Russian Federation","class":"boundary","type":"administrative","importance":0.6273311904696,"icon":"http:\/\/nominatim.openstreetmap.org\/images\/mapicons\/poi_boundary_administrative.p.20.png","address":{"state":"Yaroslavl Oblast","country":"Russian Federation","country_code":"ru"}}]

If I'm serching by http://nominatim.openstreetmap.org/ I'm recieving right results: http://nominatim.openstreetmap.org/sear … 38%2C56.23

How can I make the solution work properly?

Tank you!

Offline

 

#33 2015-03-24 15:20:45

bocman
Member
2015-02-18
42

Re: OpenStreetMap support request

Hi!
I made some modifications in functions_metadata.inc.php and so it solved my previous issue about wrong positions (I replaced ' ' to '+') and it doesn't determine the position for photos are having positions in EXIF.
Also I made the modifications for me: auto-replacement abbreviation of the 'обл.' to 'oblast' - location fields in IPTC have only 32 bytes. It's 32 symbols in ASCII, but only 16 in UTF-8 - it's too small :(

Now this script is works.
But it's would be great if you could check my modification.

Thank you!

PS functions_metadata.inc.php I place there https://yadi.sk/d/uVgzmJ19fV6HN

Last edited by bocman (2015-03-24 15:33:15)

Offline

 

#34 2015-04-13 12:31:57

xbgmsharp
Member
1970-01-01
215

Re: OpenStreetMap support request

Hello,

Sorry for the delay.

You can not use get_exif_data in the get_iptc_data. It is not clean. The check need to be done some how differently.
You can not just replace character it is not generic enough.

Could you please provide an sample image and more details on the ASCII vs UTF8. It might require string conversion using iconv.
The IPTC value should be escape for security reason.

LAT and LON should also be check to valid, eg: -90/+90 and -180/+180.

When we have a clean version, we can submit it for inclusion in PWG core.

Regards

Offline

 

#35 2016-01-26 13:49:01

bocman
Member
2015-02-18
42

Re: OpenStreetMap support request

Hi!
I have some my photos with filled positions in IPTC but without it in EXIF and for some my photoes I don't see map in right panel.
What can I check for find the problem&

Offline

 

#36 2018-11-06 08:12:21

phire
Member
2018-11-06
1

Re: OpenStreetMap support request

Hello

Many thanks for this great plugin. Love it !

Some feature I wouold like, about the support of gpx files.
- show the position of pictures from the album on the picture of the GPX
- Also have the speed in the elevation panel

Support of other format of file (strava, edmondondo ...) to have also the heart BPM.

Thanks by adance for your answer

Offline

 

#37 2021-05-11 09:40:11

dmfisch
Member
Geneva
2019-09-02
12

Re: OpenStreetMap support request

I love this map, and use it quite a lot!!!

See:

https://map-mayenfisch.com/map/

Please let that keep going for piwigo 11.4!!

Best regards!


Photographer
No coding skills but willing to help and test!

Offline

 

#38 2021-05-18 14:20:19

Katryne
Member
2016-12-03
368

Re: OpenStreetMap support request

Hello ! Since Piwigo version 11.4 (maybe since 11.0), batch manager is nearly impossible for OSM, because the map to choose from has not enough room to be displayed. The map is too narrow. Could something be done, please ?


http://photos.katrynou.fr/ v.14.1.0 https://album.chauvigne.info/ v.13.8.0
Système d'exploitation: Linux - Hébergeur 1&1-Ionos PHP: 8.0.28 - MySQL: 5.7.38
Bibliothèque graphique: External ImageMagick 6.9.10-23

Offline

 
  •  » Requests
  •  » OpenStreetMap support request

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact