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