java.lang.Object
de.zocher_regel.photo.gps.Gps
Bekannte direkte Unterklassen:
GpsGpx, GpsKml

abstract sealed class Gps extends Object permits GpsGpx, GpsKml
Abstract class for generating *.kml, *.gpx files This class reads coordinates from EXIF files (*.exif, extracted EXIF info from a photo). The function apply completes the coordinates by manually entered ones in an optional show (special comments like ";GPSLatitude=...").
  • Konstruktordetails

    • Gps

      Gps(Path srcPath) throws de.zocher_regel.util.UtilException
      Constructor.
      Parameter:
      srcPath - is an Irfanview text show (*.txt) with photos qualified names of photos. It may contain GPS info like "D:\Fotos\2024\Canon\2024-12-08 Gehlenbachtal\6063.JPG" ";GPSLatitude=52.090442" ";GPSLongitude=9.962278" This GPS info is used if the photo file lacks GPS info.
      Löst aus:
      de.zocher_regel.util.UtilException - if the file the parameter points to does not exist
  • Methodendetails

    • defaultExtension

      abstract String defaultExtension()
      The extension of the GPS file e. g. "kml", "gpx".
      Gibt zurück:
      extension like "gpx" or "kml"
    • defaultFileName

      public final String defaultFileName()
      In a directory is one default file with GPS info, e. g. "index.kml" or "index.gpx". The extension depends on the type of the GPS file.
      Gibt zurück:
      "index.gpx" or "index.kml" (used by Google Earth).
    • getGpsFileFoot

      abstract String getGpsFileFoot()
      The special GPS file (e. g. KML, GPX) is an XML file with a format depending footer.
      Gibt zurück:
      the XML snippet used as footer.
    • getGpsFileHead

      abstract String getGpsFileHead()
      The special GPS file (e. g. KML, GPX) is an XML file with a format depending header.
      Gibt zurück:
      the XML snippet used as header.
    • getGpsFileTemplate

      abstract String getGpsFileTemplate()
      The special GPS file (e. g. KML, GPX) is an XML file with a main section with placeholders (e .g. "%1$s").
      Gibt zurück:
      the XML main section with placeholders
    • write

      public final void write()
      Write the *.kml or *.gpx file depending on the implementation class.