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

Last change on this file since 5022 was 5022, checked in by Don-vip, 12 years ago

see #5387, #7444 - Add Belgian Lambert 1972 (EPSG:31370) and Belgian Lambert 2008 (EPSG:3812) projections

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