source: josm/trunk/src/org/openstreetmap/josm/data/projection/BelgianLambert1972.java@ 5066

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

Proj parameter refactoring (see #7495)

File size: 2.0 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.SevenParameterDatum;
8import org.openstreetmap.josm.data.projection.proj.LambertConformalConic;
9import org.openstreetmap.josm.data.projection.proj.ProjParameters;
10
11/**
12 * Belgian Lambert 72 projection as specified by the Belgian IGN
13 * in this document: http://www.ngi.be/Common/Lambert2008/Transformation_Geographic_Lambert_FR.pdf
14 * @author Don-vip
15 *
16 */
17public class BelgianLambert1972 extends AbstractProjection {
18
19 public BelgianLambert1972() {
20 ellps = Ellipsoid.hayford;
21 // 7 parameters transformation: http://www.eye4software.com/resources/datum/4313/
22 datum = new SevenParameterDatum("Belgium Datum 72", null, ellps, -99.06, 53.32, -112.49, 0.419, -0.830, 1.885, -1);
23 x_0 = 150000.013;
24 y_0 = 5400088.438;
25 lon_0 = convertDegreeMinuteSecond(4, 22, 2.952);
26 proj = new LambertConformalConic();
27 try {
28 proj.initialize(new ProjParameters() {{
29 ellps = BelgianLambert1972.this.ellps;
30 lat_0 = 90.0;
31 lat_1 = 49 + convertMinuteSecond(50, 0.00204);
32 lat_2 = 51 + convertMinuteSecond(10, 0.00204);
33 }});
34 } catch (ProjectionConfigurationException e) {
35 throw new RuntimeException(e);
36 }
37 }
38
39 @Override
40 public String getCacheDirectoryName() {
41 return "belgianLambert1972";
42 }
43
44 @Override
45 public Bounds getWorldBoundsLatLon() {
46 return new Bounds(
47 new LatLon(49.51, 2.54),
48 new LatLon(51.50, 6.40));
49 }
50
51 @Override
52 public Integer getEpsgCode() {
53 return 31370;
54 }
55
56 @Override
57 public String toString() {
58 return tr("Belgian Lambert 1972");
59 }
60}
Note: See TracBrowser for help on using the repository browser.