本文整理汇总了Python中elodie.media.photo.Photo.get_coordinate方法的典型用法代码示例。如果您正苦于以下问题:Python Photo.get_coordinate方法的具体用法?Python Photo.get_coordinate怎么用?Python Photo.get_coordinate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类elodie.media.photo.Photo
的用法示例。
在下文中一共展示了Photo.get_coordinate方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_get_coordinates_without_exif
# 需要导入模块: from elodie.media.photo import Photo [as 别名]
# 或者: from elodie.media.photo.Photo import get_coordinate [as 别名]
def test_get_coordinates_without_exif():
photo = Photo(helper.get_file('no-exif.jpg'))
latitude = photo.get_coordinate('latitude')
longitude = photo.get_coordinate('longitude')
assert latitude is None, latitude
assert longitude is None, longitude
示例2: test_get_coordinate_longitude_plus
# 需要导入模块: from elodie.media.photo import Photo [as 别名]
# 或者: from elodie.media.photo.Photo import get_coordinate [as 别名]
def test_get_coordinate_longitude_plus():
photo = Photo(helper.get_file('with-location-inv.jpg'))
coordinate = photo.get_coordinate('longitude')
assert helper.isclose(coordinate,122.033383611), coordinate
示例3: test_get_coordinate_latitude_minus
# 需要导入模块: from elodie.media.photo import Photo [as 别名]
# 或者: from elodie.media.photo.Photo import get_coordinate [as 别名]
def test_get_coordinate_latitude_minus():
photo = Photo(helper.get_file('with-location-inv.jpg'))
coordinate = photo.get_coordinate('latitude')
assert helper.isclose(coordinate,-37.3667027222), coordinate
示例4: test_get_coordinate_default
# 需要导入模块: from elodie.media.photo import Photo [as 别名]
# 或者: from elodie.media.photo.Photo import get_coordinate [as 别名]
def test_get_coordinate_default():
photo = Photo(helper.get_file('with-location.jpg'))
coordinate = photo.get_coordinate()
assert helper.isclose(coordinate,37.3667027222), coordinate
示例5: test_get_coordinate_longitude
# 需要导入模块: from elodie.media.photo import Photo [as 别名]
# 或者: from elodie.media.photo.Photo import get_coordinate [as 别名]
def test_get_coordinate_longitude():
photo = Photo(helper.get_file("with-location.jpg"))
coordinate = photo.get_coordinate("longitude")
assert coordinate == -122.033383611, coordinate
示例6: test_get_coordinate_latitude
# 需要导入模块: from elodie.media.photo import Photo [as 别名]
# 或者: from elodie.media.photo.Photo import get_coordinate [as 别名]
def test_get_coordinate_latitude():
photo = Photo(helper.get_file("with-location.jpg"))
coordinate = photo.get_coordinate("latitude")
assert coordinate == 37.3667027222, coordinate