source: josm/trunk/src/org/openstreetmap/josm/data/projection/Lambert93.java@ 5230

Last change on this file since 5230 was 5066, checked in by bastiK, 12 years ago

Proj parameter refactoring (see #7495)

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