Changeset 5066 in josm for trunk/src/org/openstreetmap/josm/data/projection/BelgianLambert1972.java
- Timestamp:
- 2012-03-10T16:18:23+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/BelgianLambert1972.java
r5022 r5066 7 7 import org.openstreetmap.josm.data.projection.datum.SevenParameterDatum; 8 8 import org.openstreetmap.josm.data.projection.proj.LambertConformalConic; 9 import org.openstreetmap.josm.data.projection.proj.ProjParameters; 9 10 10 11 /** 11 12 * Belgian Lambert 72 projection as specified by the Belgian IGN 12 13 * in this document: http://www.ngi.be/Common/Lambert2008/Transformation_Geographic_Lambert_FR.pdf 13 * @author Don-vip 14 * @author Don-vip 14 15 * 15 16 */ … … 19 20 ellps = Ellipsoid.hayford; 20 21 // 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 datum = new SevenParameterDatum("Belgium Datum 72", null, ellps, -99.06, 53.32, -112.49, 0.419, -0.830, 1.885, -1); 22 23 x_0 = 150000.013; 23 24 y_0 = 5400088.438; 24 25 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 26 proj = new LambertConformalConic(); 29 ((LambertConformalConic)proj).updateParameters2SP(ellps, lat_0, lat_1, lat_2); 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 } 30 37 } 31 38 32 39 @Override 33 40 public String getCacheDirectoryName() { … … 46 53 return 31370; 47 54 } 48 55 49 56 @Override 50 57 public String toString() {
Note:
See TracChangeset
for help on using the changeset viewer.