Last change
on this file since 79 was 79, checked in by imi, 18 years ago |
- fixed bug in osm import (now reject id=0)
- added WMS server layer (not finished)
- added save state for dialogs
|
File size:
604 bytes
|
Line | |
---|
1 | package org.openstreetmap.josm.data.projection;
|
---|
2 |
|
---|
3 | import org.openstreetmap.josm.data.coor.LatLon;
|
---|
4 | import org.openstreetmap.josm.data.coor.EastNorth;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * Directly use latitude / longitude values as x/y.
|
---|
8 | *
|
---|
9 | * @author imi
|
---|
10 | */
|
---|
11 | public 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
|
---|
22 | public String toString() {
|
---|
23 | return "EPSG:4326";
|
---|
24 | }
|
---|
25 |
|
---|
26 | public String getCacheDirectoryName() {
|
---|
27 | return "epsg4326";
|
---|
28 | }
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.