Geotagged Photos
The Satshot API includes a facility for storing and retrieving geotagged photographs, such as those produced by modern digital cameras or smartphones, associating them with
geospatial objects, and then retrieving them for display. Additionally, if the image does not contain geotagging information, the server can still store it and associate it
with an object, and store location information, provided that the client program provides this information as parameters. Additionally, the locations of geotagged photos can
be queried using a point layer.
Geotagged photos are stored using the method upload_geotagged_photo(). For technical reasons, the photo must be a JPEG or TIFF file. Once saved, the photo will be
associated with a nearby object, unless the client specifies an object to override this association. Client programs should provide this information whenever possible.
The saved photos are mapped (or rather, their locations are mapped) on a layer called "geotagphotos", which can be queried using the normal layer query methods. Geotagged
photos will also appear in the datasets info returned by get_saved_datasets_for_objects().
Geotagged photos can be retrieved using the method download_saved_geotagged_photo() (or download_multiple_saved_geotagged_photos()).