@Test public void testLatLonToProj() { LatLonPoint latlon = LatLonPoint.create(54, 254); ProjectionPoint result = proj.latLonToProj(latlon); Assert.assertEquals("Unexpected rotated longitude", 0, result.getX(), TOLERANCE); Assert.assertEquals("Unexpected rotated latitude", 0, result.getY(), TOLERANCE); }
public ProjectionPoint latLonToProj(LatLonPoint latlon) { double[] lonlat = new double[2]; lonlat[0] = latlon.getLongitude(); lonlat[1] = latlon.getLatitude(); double[] rlonlat = rotate(lonlat, lonpole, polerotate, sinDlat); return ProjectionPoint.create(rlonlat[0], rlonlat[1]); }
RotatedLatLon extends AbstractProjection { public ProjectionPoint latLonToProj(LatLonPoint latlon) { double[] lonlat = new double[2]; lonlat[0] = latlon.getLongitude(); lonlat[1] = latlon.getLatitude(); double[] rlonlat = rotate(lonlat, lonpole, polerotate, sinDlat); return ProjectionPoint.create(rlonlat[0], rlonlat[1]); } }
RotatedLatLon extends AbstractProjection { public ProjectionPoint latLonToProj(LatLonPoint latlon) { double[] lonlat = new double[2]; lonlat[0] = latlon.getLongitude(); lonlat[1] = latlon.getLatitude(); double[] rlonlat = rotate(lonlat, lonpole, polerotate, sinDlat); return ProjectionPoint.create(rlonlat[0], rlonlat[1]); } RotatedLatLon();  RotatedLatLon(double southPoleLat, double southPoleLon, double southPoleAngle); }
RotatedLatLon extends AbstractProjection { public ProjectionPoint latLonToProj(LatLonPoint latlon) { double[] lonlat = new double[2]; lonlat[0] = latlon.getLongitude(); lonlat[1] = latlon.getLatitude(); double[] rlonlat = rotate(lonlat, lonpole, polerotate, sinDlat); return ProjectionPoint.create(rlonlat[0], rlonlat[1]); } RotatedLatLon();  RotatedLatLon(double southPoleLat, double southPoleLon, double southPoleAngle); double getLonPole(); double getPoleRotate(); double getSinDlat(); @Override Projection constructCopy(); @Override String paramsToString(); ProjectionPoint latLonToProj(LatLonPoint latlon); LatLonPoint projToLatLon(ProjectionPoint ppt); boolean crossSeam(ProjectionPoint pt1, ProjectionPoint pt2); @Override boolean equals(Object o); @Override int hashCode(); }
RotatedLatLon extends AbstractProjection { public ProjectionPoint latLonToProj(LatLonPoint latlon) { double[] lonlat = new double[2]; lonlat[0] = latlon.getLongitude(); lonlat[1] = latlon.getLatitude(); double[] rlonlat = rotate(lonlat, lonpole, polerotate, sinDlat); return ProjectionPoint.create(rlonlat[0], rlonlat[1]); } RotatedLatLon();  RotatedLatLon(double southPoleLat, double southPoleLon, double southPoleAngle); double getLonPole(); double getPoleRotate(); double getSinDlat(); @Override Projection constructCopy(); @Override String paramsToString(); ProjectionPoint latLonToProj(LatLonPoint latlon); LatLonPoint projToLatLon(ProjectionPoint ppt); boolean crossSeam(ProjectionPoint pt1, ProjectionPoint pt2); @Override boolean equals(Object o); @Override int hashCode(); static final String GRID_MAPPING_NAME; static final String GRID_SOUTH_POLE_LONGITUDE; static final String GRID_SOUTH_POLE_LATITUDE; static final String GRID_SOUTH_POLE_ANGLE; }