source: josm/src/org/openstreetmap/josm/data/projection/Epsg4326.java@ 99

Last change on this file since 99 was 86, checked in by imi, 18 years ago
  • added conflicts and resolve conflict dialog

This is one of those "changed everything" checkpoint.

File size: 603 bytes
Line 
1package org.openstreetmap.josm.data.projection;
2
3import org.openstreetmap.josm.data.coor.LatLon;
4import org.openstreetmap.josm.data.coor.EastNorth;
5
6/**
7 * Directly use latitude / longitude values as x/y.
8 *
9 * @author imi
10 */
11public class Epsg4326 implements Projection {
12
13 public EastNorth latlon2eastNorth(LatLon p) {
14 return new EastNorth(p.lon(), p.lat());
15 }
16
17 public LatLon eastNorth2latlon(EastNorth p) {
18 return new LatLon(p.north(), p.east());
19 }
20
21 @Override public String toString() {
22 return "EPSG:4326";
23 }
24
25 public String getCacheDirectoryName() {
26 return "epsg4326";
27 }
28}
Note: See TracBrowser for help on using the repository browser.