001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.data.gpx;
003
004/**
005 * Image extended exif metadata settings used by {@link GpxImageCorrelationSettings}.
006 * @since 19387
007 */
008public class GpxImageDatumSettings {
009
010    private final boolean setImageGpsDatum;
011    private final String imageGpsDatum;
012    
013    /**
014     * Construcs a new {@code GpxImageDatumSettings}.
015     * @param setImageGpsDatum determines if images GPS datum must be set
016     * @param imageGpsDatum determines the GPS coordinates datum value to be set
017     */
018    public GpxImageDatumSettings(
019        boolean setImageGpsDatum, String imageGpsDatum) {
020            this.setImageGpsDatum = setImageGpsDatum;
021            this.imageGpsDatum = imageGpsDatum;
022        }
023    
024    /**
025     * Determines if image GPS datum must be set
026     * @return if the GPS datum must be set
027     */
028    public boolean isSetImageGpsDatum() {
029        return setImageGpsDatum;
030    }
031    
032    /**
033     * Return the GPS coordinates datum code.
034     * @return the datum code
035     */
036    public String getImageGpsDatum() {
037        return imageGpsDatum;
038    }
039}