/** * Get the label to be used in the gui for this type of projection. * This defaults to call getClassName * * @return Type label */ public String getProjectionTypeLabel() { return getClassName(); }
/** * Get the label to be used in the gui for this type of projection. * This defaults to call getClassName * * @return Type label */ public String getProjectionTypeLabel() { return getClassName(); }
/** * Get the label to be used in the gui for this type of projection. * This defaults to call getClassName * * @return Type label */ public String getProjectionTypeLabel() { return getClassName(); }
/** * Get the label to be used in the gui for this type of projection. * This defaults to call getClassName * * @return Type label */ public String getProjectionTypeLabel() { return getClassName(); }
return new ProjectionCT(proj.getClassName(), "FGDC", proj);
return new ProjectionCT(proj.getClassName(), "FGDC", proj);
return new ProjectionCT(proj.getClassName(), "FGDC", proj);
return new ProjectionCT(proj.getClassName(), "FGDC", proj);
return new ProjectionCT(proj.getClassName(), "FGDC", proj);
return new ProjectionCT(proj.getClassName(), "FGDC", proj);
out.println(", " + proj.getClassName() + " projection;");
out.println(", " + proj.getClassName() + " projection;");
public void testProjectionProjMax(ProjectionImpl proj, double xMax, double yMax) { java.util.Random r = new java.util.Random((long) this.hashCode()); ProjectionPointImpl startP = new ProjectionPointImpl(); for (int i = 0; i < NTRIALS; i++) { double x = xMax * (2 * r.nextDouble() - 1); double y = yMax * (2 * r.nextDouble() - 1); startP.setLocation(x, y); try { LatLonPoint ll = proj.projToLatLon(startP); ProjectionPoint endP = proj.latLonToProj(ll); if (show) { System.out.println("start = " + startP); System.out.println("interL = " + ll); System.out.println("end = " + endP); } Assert.assertEquals(startP.toString(), startP.getX(), endP.getX(), tolerence); Assert.assertEquals(startP.toString(), startP.getY(), endP.getY(), tolerence); } catch (IllegalArgumentException e) { System.out.printf("IllegalArgumentException=%s%n", e.getMessage()); continue; } } if (show) System.out.println("Tested " + NTRIALS + " pts for projection " + proj.getClassName()); }
System.out.println(" "+n + " normal "+ proj.getClassName ()+" took "+took+ " msecs."+ " avg error x= "+ 1000*sumx/n+" y="+1000*sumy/n+ " maxx err = "+1000*maxx+" m");
countT2, proj.getClassName());
Variable ct = new Variable(ncfile, null, null, projection.getClassName());
Variable ct = new Variable(ncfile, null, null, projection.getClassName());
Variable ct = new Variable(ncfile, null, null, projection.getClassName());
ct = new ProjectionCT( p.getClassName(), "FGDC", p ); VariableDS v = makeCoordinateTransformVariable(ds, ct); v.addAttribute( new Attribute(_Coordinate.AxisTypes, "GeoX GeoY"));