geotagging

What is the best way to geotag jpeg-images with python? [closed]

假装没事ソ 提交于 2019-12-03 08:37:47
I have coordinates from some source and want to tag my jpg files with them. What is the best python library for writing geotags into exif data? pexif was written with geotags as a goal (my emphasis): pexif is a Python library for parsing and more importantly editing EXIF data in JPEG files. This grew out of a need to add GPS tagged data to my images , Unfortunately the other libraries out there couldn't do updates and didn't seem easily architectured to be able to add such a thing. Ain't reusable software grand! My main reason for writing this was to provide an easy way for geo-tagging my

Reverse wikipedia geotagging lookup

倾然丶 夕夏残阳落幕 提交于 2019-12-03 07:24:49
问题 Wikipedia is geotagging a lot of its articles. (Look in the top right corner of the page.) Is there any API for querying all geotagged pages within a specified radius of a geographical position? Update Okay, so based on lost-theory's answer I tried this (on DBpedia query explorer): PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> SELECT ?subject ?label ?lat ?long WHERE { ?subject geo:lat ?lat. ?subject geo:long ?long. ?subject rdfs:label ?label. FILTER(xsd:float(?lat) - 57.03185 <= 0.05

Reverse wikipedia geotagging lookup

时光总嘲笑我的痴心妄想 提交于 2019-12-02 20:55:24
Wikipedia is geotagging a lot of its articles . (Look in the top right corner of the page.) Is there any API for querying all geotagged pages within a specified radius of a geographical position? Update Okay, so based on lost-theory's answer I tried this (on DBpedia query explorer ): PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> SELECT ?subject ?label ?lat ?long WHERE { ?subject geo:lat ?lat. ?subject geo:long ?long. ?subject rdfs:label ?label. FILTER(xsd:float(?lat) - 57.03185 <= 0.05 && 57.03185 - xsd:float(?lat) <= 0.05 && xsd:float(?long) - 9.94513 <= 0.05 && 9.94513 - xsd:float(

iPhone iOS how to extract photo metadata and geotagging info from a camera roll image? [duplicate]

£可爱£侵袭症+ 提交于 2019-12-02 19:48:46
This question already has answers here : How Do I Get The Correct Latitude and Longitude From An Uploaded iPhone Photo? (5 answers) Possible Duplicate: How Do I Get The Correct Latitude and Longitude From An Uploaded iPhone Photo? I'm making a photo app and would like to know what are my options for working with geotagged photos. I would like to display where a photo has been taken (similar to photos app). Is this possible? Additionally, I need to know when the picture has been taken . I can capture this info for the pictures that I take myself, but what about the camera roll images? Yes, it

Is it possible to access a photo's geotag metadata from within the simulator?

一个人想着一个人 提交于 2019-12-02 10:18:58
问题 I've written an app that retrieves a photo's GPS metadata, and it works on my iPhone but doesn't in the simulator. If I drag a photo containing geotags onto the simulator, it gets placed into the photo library. Then, my app issues this code: ALAssetRepresentation *assetRepresentation = [asset defaultRepresentation]; NSDictionary *metadata = [assetRepresentation metadata]; and metadata contains all sorts of items, but not GPS. Is there some trick to getting the simulator to recognize GPS

Is it possible to access a photo's geotag metadata from within the simulator?

巧了我就是萌 提交于 2019-12-02 03:50:52
I've written an app that retrieves a photo's GPS metadata, and it works on my iPhone but doesn't in the simulator. If I drag a photo containing geotags onto the simulator, it gets placed into the photo library. Then, my app issues this code: ALAssetRepresentation *assetRepresentation = [asset defaultRepresentation]; NSDictionary *metadata = [assetRepresentation metadata]; and metadata contains all sorts of items, but not GPS. Is there some trick to getting the simulator to recognize GPS metadata? Alternatively, what I'm trying to do is run the app in the simulator as many different devices to

How to save GPS coordinates in exif data on Android?

☆樱花仙子☆ 提交于 2019-11-27 19:05:16
I am writing GPS coordinates to my JPEG image, and the coordinates are correct (as demonstrated by my logcat output) but it appears that it's being corrupted somehow. Reading the exif data results in either null values or, in the case of my GPS: 512.976698 degrees, 512.976698 degrees . Can anyone shed some light on this problem? writing it: try { ExifInterface exif = new ExifInterface(filename); exif.setAttribute(ExifInterface.TAG_GPS_LATITUDE, latitude); exif.setAttribute(ExifInterface.TAG_GPS_LONGITUDE, longitude); exif.saveAttributes(); Log.e("LATITUDE: ", latitude); Log.e("LONGITUDE: ",

How to save GPS coordinates in exif data on Android?

假装没事ソ 提交于 2019-11-27 01:00:04
问题 I am writing GPS coordinates to my JPEG image, and the coordinates are correct (as demonstrated by my logcat output) but it appears that it's being corrupted somehow. Reading the exif data results in either null values or, in the case of my GPS: 512.976698 degrees, 512.976698 degrees . Can anyone shed some light on this problem? writing it: try { ExifInterface exif = new ExifInterface(filename); exif.setAttribute(ExifInterface.TAG_GPS_LATITUDE, latitude); exif.setAttribute(ExifInterface.TAG