#------------------------------------------------------------------------------ # File: photo.fmt # # Description: Example ExifTool print format file for generating GIS .geojson for photo Point # # Usage: exiftool -n -p photo.fmt FILE [...] > out.geojson # Usage: exiftool -n -p photo.fmt photo\*.jpg > photo.geojson # # Requires: ExifTool version 10.49 or later # # Revisions: 2018/07/21 - S. Noble created # # Notes: 1) Input files must contain GPSLatitude and GPSLongitude. #------------------------------------------------------------------------------ #[HEAD]{ "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, #[HEAD]"features": [ #[IF] $gpslatitude $gpslongitude #[BODY]{ "type": "Feature", #[BODY]"properties": { "id" : "${createdate#;DateFmt("%Y%m%d%H%M%S")}", "folder": "$Directory", "name": "$FileName", "date" : "${createdate#;DateFmt("%Y-%m-%d")}", "time" : "${createdate#;DateFmt("%H:%M:%S")}", "camera": "$Model"}, #[BODY]"geometry": { "type": "Point", "coordinates": [$gpslongitude,$gpslatitude] } }, #[TAIL]] }