java.lang.Object
de.zocher_regel.photo.gps.GpsRec
A class for GPS info (time, latitude, longitude ...)
All attributes are visible and may be changed from outside.
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungEXIF Artist.(Package privat) OptionalLongThe time when the photo was taken.(Package privat) OptionalDoubleThe altitude above see level where the photo was taken.(Package privat) GpsConfidenceThe confidence of the GPS-Data of the photo (exact, interpolated, unknown).(Package privat) OptionalDoubleEXIF latitude of the place where the photo was taken.(Package privat) OptionalDoubleThe longitude of the place where the photo was taken.Description of the photo.(Package privat) OptionalIntThe index of the photo in a list of photos.The path of the photo file.(Package privat) OptionalIntThe rotation of the photo in degrees. -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungGpsRec()Set all fields to empty or unknown.GpsRec(Optional<Path> pathOpt, OptionalInt indOptI, OptionalLong dateTimeOptL, OptionalDouble gPSLatitudeOptD, OptionalDouble gPSLongitudeOptD, OptionalDouble gPSAltitudeOptD, OptionalInt rotationOptI, Optional<String> artistOpt, Optional<String> imageDescriptionOpt, GpsConfidence gpsConfidence) Constructor. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibung(Package privat) voidAdd GPS info to this GpsRec.(Package privat) voidclear()Clear the content.(Package privat) booleanhasGps()This GpsRec either has GPS info or not.(Package privat) voidinterpolate(Optional<GpsRec> beforeWithGpsOpt, Optional<GpsRec> afterWithGpsOpt) If this GpsRec lacks GPS info, construct another one by interpolating the neighbours.The first line of the exif file contains the name of the underlying jpg / jpeg file.(Package privat) voidAdd missing fields of this GpsRec by those of another.(Package privat) Pathparent()The parent directory of the photo.
-
Felddetails
-
artistOpt
EXIF Artist. -
dateTimeOptL
OptionalLong dateTimeOptLThe time when the photo was taken. -
gPSAltitudeOptD
OptionalDouble gPSAltitudeOptDThe altitude above see level where the photo was taken. -
gpsConfidence
GpsConfidence gpsConfidenceThe confidence of the GPS-Data of the photo (exact, interpolated, unknown). -
gPSLatitudeOptD
OptionalDouble gPSLatitudeOptDEXIF latitude of the place where the photo was taken. -
gPSLongitudeOptD
OptionalDouble gPSLongitudeOptDThe longitude of the place where the photo was taken. -
imageDescriptionOpt
Description of the photo. Unicode is not supported! -
indOptI
OptionalInt indOptIThe index of the photo in a list of photos. -
pathOpt
The path of the photo file. -
rotationOptI
OptionalInt rotationOptIThe rotation of the photo in degrees.
-
-
Konstruktordetails
-
GpsRec
GpsRec()Set all fields to empty or unknown. -
GpsRec
GpsRec(Optional<Path> pathOpt, OptionalInt indOptI, OptionalLong dateTimeOptL, OptionalDouble gPSLatitudeOptD, OptionalDouble gPSLongitudeOptD, OptionalDouble gPSAltitudeOptD, OptionalInt rotationOptI, Optional<String> artistOpt, Optional<String> imageDescriptionOpt, GpsConfidence gpsConfidence) Constructor. All parameters are Optional.- Parameter:
pathOpt- of the photo or EXIF fileindOptI- index in an array of GpsRecsdateTimeOptL- optional timestampgPSLatitudeOptD- optional latitudegPSLongitudeOptD- optional longitudegPSAltitudeOptD- optional altituderotationOptI- optional rotation of the photo as defined in KMLartistOpt- optional the creator of the photoimageDescriptionOpt- the description of the photogpsConfidence- the confidence of the GPS info (e. g. exact, interpolated).
-
-
Methodendetails
-
addGps
Add GPS info to this GpsRec. ImageDescription, GPSLatitude, GPSLongitude may be abbreviated by I, La, Lo.)- Parameter:
showRec- the source of GPS info that is to be added to this.
-
clear
void clear()Clear the content. -
hasGps
boolean hasGps()This GpsRec either has GPS info or not.- Gibt zurück:
- if this GpsRec contains GPS info.
-
interpolate
If this GpsRec lacks GPS info, construct another one by interpolating the neighbours.- Parameter:
beforeWithGpsOpt- the neighbour GpsRec with GPS info at some time beforeafterWithGpsOpt- the neighbour GpsRec with GPS info at some time after
-
jpgPathOpt
The first line of the exif file contains the name of the underlying jpg / jpeg file.- Gibt zurück:
- e. g. a.b.img123.exif -> a.b.img123.jpg or a.b.img123.jpeg
-
merge
Add missing fields of this GpsRec by those of another.- Parameter:
that- has the additional data
-
parent
Path parent()The parent directory of the photo.- Gibt zurück:
- the directory where the photo belongs to
-