001// License: GPL. For details, see LICENSE file.
002package org.openstreetmap.josm.data.projection.datum;
003
004import org.openstreetmap.josm.data.projection.Ellipsoid;
005
006public abstract class AbstractDatum implements Datum {
007
008    protected String name;
009    protected String proj4Id;
010    protected Ellipsoid ellps;
011
012    /**
013     * Constructs a new {@code AbstractDatum}.
014     * @param name The name
015     * @param proj4Id The Proj4 identifier
016     * @param ellps The ellipsoid
017     */
018    public AbstractDatum(String name, String proj4Id, Ellipsoid ellps) {
019        this.name = name;
020        this.proj4Id = proj4Id;
021        this.ellps = ellps;
022    }
023
024    @Override
025    public String getName() {
026        return name;
027    }
028
029    @Override
030    public String getProj4Id() {
031        return proj4Id;
032    }
033
034    @Override
035    public Ellipsoid getEllipsoid() {
036        return ellps;
037    }
038}