[4285] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
[1230] | 2 | package org.openstreetmap.josm.data.projection;
|
---|
| 3 |
|
---|
| 4 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
| 5 |
|
---|
[2017] | 6 | import org.openstreetmap.josm.data.Bounds;
|
---|
[1230] | 7 | import org.openstreetmap.josm.data.coor.LatLon;
|
---|
[4285] | 8 | import org.openstreetmap.josm.data.projection.datum.GRS80Datum;
|
---|
| 9 | import org.openstreetmap.josm.data.projection.proj.LambertConformalConic;
|
---|
[1230] | 10 |
|
---|
[4285] | 11 | /**
|
---|
| 12 | * Estonian Coordinate System of 1997.
|
---|
| 13 | *
|
---|
| 14 | * Thanks to Johan Montagnat and its geoconv java converter application
|
---|
| 15 | * (http://www.i3s.unice.fr/~johan/gps/ , published under GPL license)
|
---|
| 16 | * from which some code and constants have been reused here.
|
---|
| 17 | */
|
---|
| 18 | public class LambertEST extends AbstractProjection {
|
---|
[1230] | 19 |
|
---|
[4285] | 20 | public LambertEST() {
|
---|
| 21 | ellps = Ellipsoid.GRS80;
|
---|
| 22 | datum = GRS80Datum.INSTANCE;
|
---|
| 23 | lon_0 = 24;
|
---|
| 24 | double lat_0 = 57.517553930555555555555555555556;
|
---|
| 25 | double lat_1 = 59 + 1.0/3.0;
|
---|
| 26 | double lat_2 = 58;
|
---|
| 27 | x_0 = 500000;
|
---|
| 28 | y_0 = 6375000;
|
---|
| 29 | proj = new LambertConformalConic();
|
---|
| 30 | ((LambertConformalConic) proj).updateParameters2SP(ellps, lat_0, lat_1, lat_2);
|
---|
[1230] | 31 | }
|
---|
| 32 |
|
---|
| 33 | @Override
|
---|
| 34 | public String toString() {
|
---|
| 35 | return tr("Lambert Zone (Estonia)");
|
---|
| 36 | }
|
---|
| 37 |
|
---|
[4285] | 38 | @Override
|
---|
| 39 | public Integer getEpsgCode() {
|
---|
| 40 | return 3301;
|
---|
[1309] | 41 | }
|
---|
| 42 |
|
---|
[2516] | 43 | @Override
|
---|
| 44 | public int hashCode() {
|
---|
| 45 | return getClass().getName().hashCode(); // we have no variables
|
---|
| 46 | }
|
---|
| 47 |
|
---|
[4285] | 48 | @Override
|
---|
[1230] | 49 | public String getCacheDirectoryName() {
|
---|
| 50 | return "lambertest";
|
---|
| 51 | }
|
---|
| 52 |
|
---|
[4285] | 53 | @Override
|
---|
[1722] | 54 | public Bounds getWorldBoundsLatLon()
|
---|
| 55 | {
|
---|
| 56 | return new Bounds(
|
---|
[3676] | 57 | new LatLon(56.05, 21.64),
|
---|
| 58 | new LatLon(61.13, 28.58));
|
---|
[1722] | 59 | }
|
---|
[2114] | 60 |
|
---|
[1230] | 61 | }
|
---|