Retrieves GPS data from Geo-referenced images made easy
Project description
# GPSImage Library
Retrieves GPS data from Geo-referenced Photos.
GPS Image will find all available geo-referenced information from the image.
Every task made easy!
![GPSImage](https://raw.githubusercontent.com/DenisCarriere/gpsimage/master/gpsimage/images/gpsimage.jpg)
## Install
**Requires** PIL module installed, for issues with Windows try to download Pillow.
```bash
$ pip install gpsimage
```
## GPS-Camera Devices
The following GPS-Camera devices have been tested with this GPSImage python module.
If your device is not listed, feel free to send me a photo taken from your device and I will be glad to troubleshoot it.
- [Garmin Montana 650](http://sites.garmin.com/montana/)
- [Android Samsung Galaxy](http://www.samsung.com/us/topic/our-galaxy-smartphones)
## Python Example
```python
>>> import gpsimage # pip install gpsimage
>>> img = gpsimage.open('<image.jpg>')
# Coordinates Latitude & Longitude in Degrees
>>> img.lat, img.lng
45.413140 -75.656703
# Altitude in Feet
>>> img.altitude
142.04025779
# From 0 to 360 Degrees
>>> img.direction
165.974436341
...
```
## JSON Results
This example was taken from a Android Samsung Galaxy
```python
>>> import gpsimage # pip install gpsimage
>>> img = gpsimage.open('<image.jpg>')
>>> img.json
# JSON Results
{'altitude': 79.0,
'datum': 'WGS-84',
'direction': 321.0,
'geometry': {'coordinates': [-76.4515263888889, 44.24509527777778],
'type': 'POINT'},
'height': 2592,
'make': u'Samsung',
'model': u'Galaxy Nexus',
'status': 'OK',
'timestamp': u'2014:08:06 15:29:41',
'width': 1944}
```
## Attributes
### GPS data
- **lat** or **y** - Latitude (Degrees)
- **lng** or **x** - Longitude (Degrees)
- **geometry** - GeoJSON Point
- **altitude** - Elevation Above Mean Sea Level
- **datum** - Coordinate system (Typically WGS84)
- **direction** - Camera orientation (0-360 degrees)
- **ok** - True or False if coordinates exists
### Device Specific
- **timestamp ** - Calendar dates (YYYY-MM-DD HH:MM:SS)
- **model** - Device model (Galaxy Nexus)
- **make** - Device manufacturer (Samsung)
### Standard
- **status** - Checks if everything is ok
- **width** - Dimension of image (Pixels)
- **height** - Dimension of image (Pixels)
## Functions
- **debug** - Generates a report of all the attributes available
Retrieves GPS data from Geo-referenced Photos.
GPS Image will find all available geo-referenced information from the image.
Every task made easy!
![GPSImage](https://raw.githubusercontent.com/DenisCarriere/gpsimage/master/gpsimage/images/gpsimage.jpg)
## Install
**Requires** PIL module installed, for issues with Windows try to download Pillow.
```bash
$ pip install gpsimage
```
## GPS-Camera Devices
The following GPS-Camera devices have been tested with this GPSImage python module.
If your device is not listed, feel free to send me a photo taken from your device and I will be glad to troubleshoot it.
- [Garmin Montana 650](http://sites.garmin.com/montana/)
- [Android Samsung Galaxy](http://www.samsung.com/us/topic/our-galaxy-smartphones)
## Python Example
```python
>>> import gpsimage # pip install gpsimage
>>> img = gpsimage.open('<image.jpg>')
# Coordinates Latitude & Longitude in Degrees
>>> img.lat, img.lng
45.413140 -75.656703
# Altitude in Feet
>>> img.altitude
142.04025779
# From 0 to 360 Degrees
>>> img.direction
165.974436341
...
```
## JSON Results
This example was taken from a Android Samsung Galaxy
```python
>>> import gpsimage # pip install gpsimage
>>> img = gpsimage.open('<image.jpg>')
>>> img.json
# JSON Results
{'altitude': 79.0,
'datum': 'WGS-84',
'direction': 321.0,
'geometry': {'coordinates': [-76.4515263888889, 44.24509527777778],
'type': 'POINT'},
'height': 2592,
'make': u'Samsung',
'model': u'Galaxy Nexus',
'status': 'OK',
'timestamp': u'2014:08:06 15:29:41',
'width': 1944}
```
## Attributes
### GPS data
- **lat** or **y** - Latitude (Degrees)
- **lng** or **x** - Longitude (Degrees)
- **geometry** - GeoJSON Point
- **altitude** - Elevation Above Mean Sea Level
- **datum** - Coordinate system (Typically WGS84)
- **direction** - Camera orientation (0-360 degrees)
- **ok** - True or False if coordinates exists
### Device Specific
- **timestamp ** - Calendar dates (YYYY-MM-DD HH:MM:SS)
- **model** - Device model (Galaxy Nexus)
- **make** - Device manufacturer (Samsung)
### Standard
- **status** - Checks if everything is ok
- **width** - Dimension of image (Pixels)
- **height** - Dimension of image (Pixels)
## Functions
- **debug** - Generates a report of all the attributes available
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
gpsimage-0.0.2.zip
(22.4 kB
view details)
gpsimage-0.0.2.tar.gz
(10.9 kB
view details)
File details
Details for the file gpsimage-0.0.2.zip
.
File metadata
- Download URL: gpsimage-0.0.2.zip
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 624721460f7afc56248457c18d33b985bf2de95c695a0c84cd43bd7852d824b4 |
|
MD5 | 158ac1bca94ead2ae6a2fa6ae5515483 |
|
BLAKE2b-256 | 2c4555a09b46ba16a7297069bc74853b40ee07bb7d323db4f6ed98d8e5c4b848 |
File details
Details for the file gpsimage-0.0.2.tar.gz
.
File metadata
- Download URL: gpsimage-0.0.2.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9baec1c97cfd0daf518eb1aa27aec39c14c6d50a8e82226219fa64a6508684a1 |
|
MD5 | 98ae54891f02cd0d116e9aed0f469b81 |
|
BLAKE2b-256 | c8b9b9b59a89058eb64e1f8adc7e985f34860496d1b93bd3e9aaa0e857939082 |