Last change
on this file since 58 was 52, checked in by imi, 18 years ago |
- fixed data merge (sometime set modified unnecessary)
- fixed rounding (now compare with epsilon instead of round everything)
- Fix: upload does not clear all changes if only some thing got uploaded
|
File size:
428 bytes
|
Line | |
---|
1 | package org.openstreetmap.josm.data.projection;
|
---|
2 |
|
---|
3 | import org.openstreetmap.josm.data.GeoPoint;
|
---|
4 |
|
---|
5 | /**
|
---|
6 | * Directly use latitude / longitude values as x/y.
|
---|
7 | *
|
---|
8 | * @author imi
|
---|
9 | */
|
---|
10 | public class Epsg4263 implements Projection {
|
---|
11 |
|
---|
12 | public void latlon2xy(GeoPoint p) {
|
---|
13 | p.x = p.lon;
|
---|
14 | p.y = p.lat;
|
---|
15 | }
|
---|
16 |
|
---|
17 | public void xy2latlon(GeoPoint p) {
|
---|
18 | p.lat = p.y;
|
---|
19 | p.lon = p.x;
|
---|
20 | }
|
---|
21 |
|
---|
22 | @Override
|
---|
23 | public String toString() {
|
---|
24 | return "EPSG:4263";
|
---|
25 | }
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.