Last change
on this file since 71 was 71, checked in by imi, 18 years ago |
- refactored GpsPoint to be immutable and added LatLon and NorthEast
- refactored Bounding Box calculations
- various other renames
|
File size:
526 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 Epsg4263 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:4263";
|
---|
24 | }
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.