Geocoding of observations and images

An observation is characterised by:
- Observer
- Specimen (observed organism: animal, plant, ….)
- Time
- Geo-coordinates
So it is not strictly necessary for images to exist in order to record an observation. There may be audio recordings instead, or no media at all.
For documenting an observation and making its information verifiable, however, a media file (image or audio recording) is essential, which is why the availability of a media file is a minimum criterion for the research grade of an observation.
Since images are required for research-grade observations and the most important metadata of an observation can be stored as image metadata, it makes sense to record observations directly from the images. iNaturalist.org reads the following information from the image files, if present:
- Creator
- Species
- Time of capture
- GPS coordinates
- In addition, the further EXIF data on the camera are loaded and stored


When using images as supplementary information for observations, it makes sense to use as much of the information in the image metadata as possible: the time and place of capture can be used directly.
The process is easiest if the geo-coordinates are embedded directly in the images as EXIF data. How this happens depends on which camera was used and whether the camera itself can record geo-coordinates.
Camera with a built-in GPS receiver
This is the simplest case. Practically every smartphone today has a GPS receiver. Our Nikon underwater cameras and the drones also have a built-in GPS receiver. What needs to be done?
Make sure that the GPS coordinates are actually recorded – GPS logging is not always switched on – and it is not always possible to receive GPS data. GPS receivers need quite a lot of power, so switching them off extends the operating time of the devices. With mobile phones there are also privacy concerns: not everyone wants to reveal their location at all times when sharing pictures.
Smartphone
Smartphones are very well suited to documenting the coast, as their wide-angle lenses impress with great sharpness and a high level of detail. Since 2014 our guests have used Apple iPhones (5c, 5s, 6, 6 Plus, 6s, 8, SE, XR), Samsung (G920F, G950F, G965F, J530F), Sony (Z1, Z3),
In the company we use Xiaomi smartphones: Mi A1 (from 2018, 48 MP) and Redmi Note 8Pro (since 2020, 64 MP). The very high resolution is ideal for taking brilliant coastal shots in very bright daylight, which can then also be used for the geodesy projects.
Location recording must be switched on! The following screenshots show how to do this on the Xiaomi Redmi Note 8 Pro. Operation is straightforward on all well-known models – the only important thing is that location access is enabled and the GPS coordinates are written into the EXIF metadata of the images.
Smartphones write nothing into the EXIF metadata of videos! A simple workaround is to take a reference shot before and after each video – and these then have the GPS coordinates!


Underwater cameras Nikon AW-110, AW-130, AW-300
In 2014 we had a guest's Nikon AW 110 (Andreas B.) on board for the first time. A very easy-to-use, robust underwater camera with good image quality (16 MP). As we only freedive to a maximum depth of 10 m, this camera with its specified diving depth of 12 m is entirely sufficient.
In 2015 we bought the successor model, the NIKON AW-130, for the company, with a slightly better specification. The camera is still in use, although it has meanwhile clocked several hundred operating hours in the water.
In 2020 the Nikon AW-130 was joined by a Nikon AW-300. For us the most important new feature of this model is the ability to film in 4K. On the one hand this improves our filming options. More important to us, however, is that we can now extract stills from videos in 4K (3840 x 2160) instead of 2K (1920 x 1080). This gain in quality is enormously important! So 8 megapixels instead of 2 MP – the difference is clearly visible and helps with identifying species.
Especially underwater as a freediver it is difficult to take individual shots – it is much easier to set the camera to video mode and then concentrate on not disturbing the subject and filming it well.
Positioning underwater
GPS does not work under water, even at very shallow depths of a few centimetres, because the water shields the satellite signals very effectively. The Nikon cameras can tag all images of a dive with the last GPS coordinates updated just before the dive. For freedivers this is good enough, since we cover less than 100 m underwater during a dive.
We are working on various projects for passive and active underwater positioning.
In addition to the GPS coordinates, the diving depths are also recorded – this is very helpful for the observations (and for automated depth-dependent colour correction). The habitats really do differ. At 1 m water depth the conditions are quite different from those at 3, 5 or 10 m.
Camera with a companion app
Since running a GPS receiver takes quite a lot of power, many camera manufacturers still do not build one in. Cost cannot be the problem: the chips cost 1 to 5 euros – for a camera costing several hundred or thousand euros, leaving it out is hard to understand.
Panasonic Lumix FZ-2000 with the Panasonic app
For the Panasonic we use the app when we are out and about on land. When we are on the boat, however, and the observations are made from on board (observations of dolphins, Mediterranean monk seals, sea turtles), it is easier to transform the boat's (SolarWave's) GPS log into a GPX file with a defined resolution of 1 min. and make it available.





Geocoding afterwards with a GPX log
Various programs can add GPS coordinates to images and videos afterwards. We use Adobe Lightroom Classic, and this professional program can do it too. What you need is a GPX log, i.e. an XML file listing the GPS positions with a time stamp. Alternatively, images can also be given a geo-coordinate via a map.
Source of the GPX log
GPS logs can be recorded by all kinds of devices: all it takes is a GPS receiver, a battery and memory – plus a way of accessing the recorded data.
Possible sources of the GPX log:
- GPS trackers (e.g. for hikers, or for tracking animals with a built-in transmitter)
- GPS tracking apps (for smartphones), e.g. the Google location history
- GPS logs from the ship management system (via NMEA-0183 or NMEA-2000)
Format of the GPX log
The GPX standard was developed by TopoGrafix. It is an XML standard, open and licence-free, and has remained practically unchanged and stable for more than 20 years. Ideal for long-term storage of information. Although it was defined as an exchange format, it is also very well suited as an archive format.
For each data point <trkpt> the longitude (lon) and latitude (lat) are required in WGS-84 format. The matching is done via the time given in the <time> tag. The time zone offset must be taken into account. The example below shows a point from the SolarWave's NMEA-2000 log. <name> is not used. The time in <time> is given as UTC (recognisable by the final Z before the closing </time> tag.
<?xml version="1.0" encoding="UTF-8"?>
<gpx xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="1.1"
creator="Voyage Recorder Converter - www.yachtd.com"
xmlns="http://www.topografix.com/GPX/1/1"
xsi:schemaLocation="http://www.topografix.com/GPX/1/1/gpx.xsd">
<metadata>
<time>2018-07-18T15:33:28.656Z</time>
</metadata>
<trk>
<name>My Vessel Track</name>
<trkseg>
<trkpt lat="39.446296300" lon="20.007298800">
<name>2018-07-18 18:34:00.073</name>
<time>2018-07-18T15:34:00.073Z</time>
</trkpt>
</trkseg>
</trk>
</gpx>
Matching the GPX logs to the images
The key requirement for automatic, error-free matching of GPS coordinates from GPX logs to the images afterwards is the quality of the data:
- Time of capture of the images
- Accuracy of the GPS positions in the log
- Sufficient time resolution of the GPX log
- Correct assignment of the GPX logs to the camera
Time of capture of the images
All images should be taken either in UTC or in ship's time. Under no circumstances should you try to process images taken in different time zones with one GPX log.
Accuracy of the GPS positions in the log
Significant outliers can occur in GPX logs: these can amount to several hundred metres, sometimes even thousands of kilometres. In normal operation the GPS system is not designed for every position fix to be perfect: the aim is for more than 95% of fixes to be more accurate than 15 m. In addition, interference can occur: disruptions of the overall system or – much more often! – disruptions of your own receiving system. Even overhanging trees (on a river) can degrade reception so much that GPS positions are distorted or lost.
Ship management systems correct these outliers automatically, so the quality of ship logs is far above average.
Sufficient time resolution of the GPX log
Depending on the observer's speed, different time resolutions make sense. Our speeds are in the range of 1–10 km/h, i.e. of the order of ~1 m/s. With a log resolution of 1 min we achieve a position accuracy better than 100 m. That is entirely sufficient for our purposes. For particularly vulnerable organisms that live in a fixed location, the resolution is additionally coarsened artificially when recording the observation, to ensure that the organisms are protected.
Correct assignment of the GPX logs to the camera
Finally, of course, one must not forget that the GPS receiver has to be very close to the camera at the time of capture. It would not help to use the GPX log of the SolarWave lying at anchor to geotag the images of an expedition by kayak or dinghy…