mand
mand

Reputation: 432

Open source library to get geotags from images?

Is there an open source library to efficiently and reliably get geotags from an image?

I want something system agnostic, hence a library instead of a program. I would love something well documented and in Python but any language works.

I'm not looking for exif reader per se, not all geotags are stored in exif. I want something that can find geotags independent of how they are stored in the image's metadata.

Upvotes: 3

Views: 885

Answers (2)

Gwen
Gwen

Reputation: 1450

You can use GDAL (even though it may be overkill).

The Geospatial Data Abstraction Library (GDAL) is a computer software library for reading and writing raster and vector geospatial data formats, and is released under the permissive X/MIT style free software license by the Open Source Geospatial Foundation.

The advantage of GDAL is that it supports a huge number of geotagged formats.

If you want to do a quick test on your data, there is an utility app that should print what you want.

Upvotes: 0

Drew Noakes
Drew Noakes

Reputation: 310977

I maintain the MetadataExtractor library which supports GPS data along with many other kinds of metadata.

It has implementations in:

Here's a sample that produces a Google Map from a batch of images:

https://github.com/drewnoakes/metadata-extractor/blob/master/Samples/com/drew/metadata/GeoTagMapBuilder.java

Upvotes: 2

Related Questions