Changeset 9426 in josm for trunk/src/org/openstreetmap/josm/data/projection/proj
 Timestamp:
 20160113T00:33:48+01:00 (5 years ago)
 Location:
 trunk/src/org/openstreetmap/josm/data/projection/proj
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

trunk/src/org/openstreetmap/josm/data/projection/proj/AlbersEqualArea.java
r9419 r9426 5 5 6 6 import org.openstreetmap.josm.data.Bounds; 7 8 7 import org.openstreetmap.josm.data.projection.ProjectionConfigurationException; 9 8 … … 35 34 * </ul> 36 35 * 36 * @author Gerald I. Evenden (for original code in Proj4) 37 * @author Rueben Schulz 38 * 37 39 * @see <A HREF="http://mathworld.wolfram.com/AlbersEqualAreaConicProjection.html">Albers EqualArea Conic Projection on MathWorld</A> 38 40 * @see <A HREF="http://www.remotesensing.org/geotiff/proj_list/albers_equal_area_conic.html">"Albers_Conic_Equal_Area" on RemoteSensing.org</A> 39 41 * @see <A HREF="http://srmwww.gov.bc.ca/gis/bceprojection.html">British Columbia Albers Standard Projection</A> 40 42 * 41 * @author Gerald I. Evenden (for original code in Proj4) 42 * @author Rueben Schulz 43 * @since 9419 43 44 */ 44 45 public class AlbersEqualArea extends AbstractProj { … … 164 165 } else { 165 166 x = 0.0; 166 y = n > 0.0 ? Math.PI/2.0 :  167 y = n > 0.0 ? Math.PI/2.0 : Math.PI/2.0; 167 168 } 168 169 return new double[] {y, x}; … … 181 182 return phi; 182 183 } 183 for (int i =0; i<MAXIMUM_ITERATIONS; i++) {184 for (int i = 0; i < MAXIMUM_ITERATIONS; i++) { 184 185 final double sinpi = Math.sin(phi); 185 186 final double cospi = Math.cos(phi); 
trunk/src/org/openstreetmap/josm/data/projection/proj/PolarStereographic.java
r9419 r9426 14 14 * (parameter lat_0). 15 15 * <p> 16 * 16 * 17 17 * In this file, only the polar case is implemented. This corresponds to 18 18 * EPSG:9810 (Polar Stereographic Variant A) and EPSG:9829 (Polar Stereographic 19 19 * Variant B). 20 20 * <p> 21 * 21 * 22 22 * It is required, that the latitude of natural origin has the value +/90 degrees. 23 23 * <p> 24 * 24 * 25 25 * This class has been derived from the implementation of the Geotools project; 26 26 * git 8cbf52d, org.geotools.referencing.operation.projection.PolarStereographic 27 27 * at the time of migration. 28 28 * <p> 29 * 29 * 30 30 * <b>References:</b> 31 31 * <ul> … … 44 44 * </ul> 45 45 * 46 * @author André Gosselin 47 * @author Martin Desruisseaux (PMO, IRD) 48 * @author Rueben Schulz 49 * 46 50 * @see <A HREF="http://mathworld.wolfram.com/StereographicProjection.html">Stereographic projection on MathWorld</A> 47 51 * @see <A HREF="http://www.remotesensing.org/geotiff/proj_list/polar_stereographic.html">Polar_Stereographic</A> … … 49 53 * @see <A HREF="http://www.remotesensing.org/geotiff/proj_list/stereographic.html">Stereographic</A> 50 54 * @see <A HREF="http://www.remotesensing.org/geotiff/proj_list/random_issues.html#stereographic">Some Random Stereographic Issues</A> 51 * 55 * 52 56 * @see DoubleStereographic 53 * 54 * @author André Gosselin 55 * @author Martin Desruisseaux (PMO, IRD) 56 * @author Rueben Schulz 57 * @since 9419 57 58 */ 58 59 public class PolarStereographic extends AbstractProj implements IPolar { … … 88 89 */ 89 90 boolean southPole; 90 91 91 92 @Override 92 93 public String getName() { 93 94 return tr("Polar Stereographic"); 94 95 } 95 96 96 97 @Override 97 98 public String getProj4Id() { … … 128 129 } 129 130 } 130 131 131 132 @Override 132 133 public double[] project(double y, double x) { … … 158 159 final double halfe = e/2.0; 159 160 double phi0 = 0; 160 for (int i =MAXIMUM_ITERATIONS;;) {161 for (int i = MAXIMUM_ITERATIONS;;) { 161 162 final double esinphi = e * Math.sin(phi0); 162 163 final double phi = (Math.PI/2)  2.0*Math.atan(t*Math.pow((1esinphi)/(1+esinphi), halfe));
Note: See TracChangeset
for help on using the changeset viewer.