Skip to content

PhotoMap is an easy-to-use, lightweight for mark GPS information of the photos into map. PhotoMap是一个易于使用,轻量级的工具,可以把照片中的GPS信息标记到地图上。

License

Notifications You must be signed in to change notification settings

AlpsSnow/PhotoMap

Repository files navigation

PhotoMap

Mark the location of the photo on the map. 把照片的位置信息标记到地图上。

安装

首先,安装Python3,并配置好环境。

使用 pip 安装依赖:

pip install -r require.txt

运行:

取得文件夹下所有照片的拍摄时间,经纬度信息

D:\python work\PhotoMap\PhotoMap>python getExifData.py
[['20191009142745.jpg', '2019:10:01 16:19:26', 108.942963, 34.225028], ['201910091429045.jpg', '2019:10:02 12:04:23', 108.86703197222222, 34.227606972222226], ['201910091429043.jpg', '2019:10:02 12:16:31', 108.87864397222222, 34.200721], ['201910091429042.jpg', '2019:10:02 12:20:43', 108.88984497222224, 34.200046972222225], ['201910091429041.jpg', '2019:10:02 12:40:43', 108.89755397222223, 34.193619999999996], ['20191009142904.jpg', '2019:10:03 14:05:18', 107.37499299999999, 33.173182999999995]]

创建照片的geojson文件

D:\python work\PhotoMap\PhotoMap>python createGeojson.py
['20191009142745.jpg', '2019:10:01 16:19:26', 108.942963, 34.225028]
['201910091429045.jpg', '2019:10:02 12:04:23', 108.86703197222222, 34.227606972222226]
['201910091429043.jpg', '2019:10:02 12:16:31', 108.87864397222222, 34.200721]
['201910091429042.jpg', '2019:10:02 12:20:43', 108.88984497222224, 34.200046972222225]
['201910091429041.jpg', '2019:10:02 12:40:43', 108.89755397222223, 34.193619999999996]
['20191009142904.jpg', '2019:10:03 14:05:18', 107.37499299999999, 33.173182999999995]

创建照片的压缩图片

D:\python work\PhotoMap\PhotoMap>python resize.py

将GPS坐标转换为百度坐标

  1. 在百度地图开放平台申请开发者AK
  1. 将GPS坐标带入gps2baidump.html中,就可以转换为百度地图坐标。 当然你也可以直接使用百度的示例程序,转换为百度地图坐标

About

PhotoMap is an easy-to-use, lightweight for mark GPS information of the photos into map. PhotoMap是一个易于使用,轻量级的工具,可以把照片中的GPS信息标记到地图上。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published