Last change
on this file since 4153 was 3635, checked in by bastiK, 14 years ago |
applied #5551 (patch by extropy) - Added LKS-92 projection for Latvia
|
-
Property svn:eol-style
set to
native
|
File size:
1.1 KB
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.projection;
|
---|
3 |
|
---|
4 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
5 |
|
---|
6 | import org.openstreetmap.josm.data.Bounds;
|
---|
7 | import org.openstreetmap.josm.data.coor.LatLon;
|
---|
8 |
|
---|
9 | /**
|
---|
10 | * LKS-92/ Latvia TM projection. Based on data from spatialreference.org.
|
---|
11 | * http://spatialreference.org/ref/epsg/3059/
|
---|
12 | *
|
---|
13 | * @author Viesturs Zarins
|
---|
14 | */
|
---|
15 | public class TransverseMercatorLV extends TransverseMercator {
|
---|
16 |
|
---|
17 | public TransverseMercatorLV()
|
---|
18 | {
|
---|
19 | setProjectionParameters(24, 500000, -6000000);
|
---|
20 | }
|
---|
21 |
|
---|
22 | @Override public String toString() {
|
---|
23 | return tr("LKS-92 (Latvia TM)");
|
---|
24 | }
|
---|
25 |
|
---|
26 | private int epsgCode() {
|
---|
27 | return 3059;
|
---|
28 | }
|
---|
29 |
|
---|
30 | @Override
|
---|
31 | public String toCode() {
|
---|
32 | return "EPSG:"+ epsgCode();
|
---|
33 | }
|
---|
34 |
|
---|
35 | @Override
|
---|
36 | public int hashCode() {
|
---|
37 | return toCode().hashCode();
|
---|
38 | }
|
---|
39 |
|
---|
40 | public String getCacheDirectoryName() {
|
---|
41 | return "epsg"+ epsgCode();
|
---|
42 | }
|
---|
43 |
|
---|
44 | @Override
|
---|
45 | public Bounds getWorldBoundsLatLon() {
|
---|
46 | return new Bounds(
|
---|
47 | new LatLon(-90.0, -180.0),
|
---|
48 | new LatLon(90.0, 180.0));
|
---|
49 | }
|
---|
50 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.