- Timestamp:
- 2008-08-24T23:06:24+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/Lambert.java
r864 r865 106 106 if (p.lat() != 0 && Math.abs(p.lat()) != Projection.MAX_LAT 107 107 && p.lon() != 0 && Math.abs(p.lon()) != Projection.MAX_LON 108 109 JOptionPane.showMessageDialog(Main.parent, 110 tr("The projection \" " + this.toString() + "\" is designed for\n"111 degreesonly.\n"112 113 114 108 && dontDisplayErrors == false) { 109 JOptionPane.showMessageDialog(Main.parent, 110 tr("The projection \"{0}\" is designed for\n" 111 + "latitudes between 46.1° and 57° only.\n" 112 + "Use another projection system if you are not using\n" 113 + "a french WMS server.\n" 114 + "Do not upload any data after this message.", this.toString())); 115 115 dontDisplayErrors = true; 116 116 } … … 126 126 tr("IMPORTANT : data positionned far away from\n" 127 127 + "the current Lambert zone limits.\n" 128 128 + "Do not upload any data after this message.\n" 129 129 + "Undo your last action, Save your work \n" 130 130 + "and Start a new layer on the new zone.")); … … 132 132 dontDisplayErrors = true; 133 133 } else { 134 System.out.println("temporarily extend sLambert zone " + layoutZone + " projection at lat,lon:"135 134 System.out.println("temporarily extend Lambert zone " + layoutZone + " projection at lat,lon:" 135 + lt + "," + lg); 136 136 } 137 137 } … … 156 156 157 157 @Override public String toString() { 158 return "Lambert Zone (France)"; 158 return tr("Lambert Zone (France)"); 159 159 } 160 160 … … 293 293 s2 *= s2; 294 294 double l = Math.atan((Z / norm) 295 295 / (1.0 - (ell.a * ell.e2 * Math.cos(lt) / (norm * Math.sqrt(1.0 - ell.e2 * s2))))); 296 296 delta = Math.abs(l - lt); 297 297 lt = l;
Note:
See TracChangeset
for help on using the changeset viewer.