Line | |
---|
1 | package org.openstreetmap.josm.data.projection;
|
---|
2 |
|
---|
3 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
4 |
|
---|
5 | import org.openstreetmap.josm.data.Bounds;
|
---|
6 | import org.openstreetmap.josm.data.coor.LatLon;
|
---|
7 | import org.openstreetmap.josm.data.projection.datum.GRS80Datum;
|
---|
8 | import org.openstreetmap.josm.data.projection.proj.LambertConformalConic;
|
---|
9 |
|
---|
10 | /**
|
---|
11 | * Lambert 93 projection as specified by the IGN
|
---|
12 | * in this document http://professionnels.ign.fr/DISPLAY/000/526/702/5267026/NTG_87.pdf
|
---|
13 | * @author Don-vip
|
---|
14 | *
|
---|
15 | */
|
---|
16 | public class Lambert93 extends AbstractProjection {
|
---|
17 |
|
---|
18 | public Lambert93() {
|
---|
19 | ellps = Ellipsoid.GRS80;
|
---|
20 | datum = GRS80Datum.INSTANCE;
|
---|
21 | x_0 = 700000;
|
---|
22 | y_0 = 6600000;
|
---|
23 | lon_0 = 3;
|
---|
24 | double lat_0 = 46.30;
|
---|
25 | double lat_1 = 44.00;
|
---|
26 | double lat_2 = 49.00;
|
---|
27 | proj = new LambertConformalConic();
|
---|
28 | ((LambertConformalConic)proj).updateParameters2SP(ellps, lat_0, lat_1, lat_2);
|
---|
29 | }
|
---|
30 |
|
---|
31 | @Override
|
---|
32 | public String getCacheDirectoryName() {
|
---|
33 | return "lambert93";
|
---|
34 | }
|
---|
35 |
|
---|
36 | @Override
|
---|
37 | public Bounds getWorldBoundsLatLon() {
|
---|
38 | return new Bounds(
|
---|
39 | new LatLon(41.0, -5.5),
|
---|
40 | new LatLon(51.0, 10.2));
|
---|
41 | }
|
---|
42 |
|
---|
43 | @Override
|
---|
44 | public Integer getEpsgCode() {
|
---|
45 | return 2154;
|
---|
46 | }
|
---|
47 |
|
---|
48 | @Override
|
---|
49 | public String toString() {
|
---|
50 | return tr("Lambert 93 (France)");
|
---|
51 | }
|
---|
52 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.