001// License: GPL. For details, see LICENSE file. 002package org.openstreetmap.josm.data.projection.datum; 003 004import org.openstreetmap.josm.data.coor.LatLon; 005import org.openstreetmap.josm.data.projection.Ellipsoid; 006 007/** 008 * Null Datum does not convert from / to WGS84 ellipsoid, but simply "casts" the coordinates. 009 * @since 4285 010 */ 011public class NullDatum extends AbstractDatum { 012 013 /** 014 * Constructs a new {@code NullDatum}. 015 * @param name name of the datum 016 * @param ellps the ellipsoid used 017 */ 018 public NullDatum(String name, Ellipsoid ellps) { 019 super(name, null, ellps); 020 } 021 022 @Override 023 public LatLon toWGS84(LatLon ll) { 024 return ll; 025 } 026 027 @Override 028 public LatLon fromWGS84(LatLon ll) { 029 return ll; 030 } 031 032}