/** * This method is called within the <code>{@link org.esa.beam.framework.dataop.maptransf.MapProjectionRegistry#registerDescriptor}</code> * method after an instance of this <code>MapTransformDescriptor</code> has been successfully registered. * <p/> */ @Override public void registerProjections() { MapProjectionRegistry.registerProjection(new MapProjection(getName(), createTransform(PARAMETER_DEFAULT_VALUES), false)); MapProjectionRegistry.registerProjection(new MapProjection(UPS_NORTH_NAME, createTransform(UPS_NORTH_PARAMETER_VALUES), true)); MapProjectionRegistry.registerProjection(new MapProjection(UPS_SOUTH_NAME, createTransform(UPS_SOUTH_PARAMETER_VALUES), true)); }
public void registerProjections() { MapProjectionRegistry.registerProjection(new MapProjection(getName(), createTransform(null), true)); }
public void registerProjections() { MapProjectionRegistry.registerProjection(new MapProjection(getName(), createTransform(null), false)); }
/** * This method is called within the <code>{@link org.esa.beam.framework.dataop.maptransf.MapProjectionRegistry#registerDescriptor}</code> * method after an instance of this <code>MapTransformDescriptor</code> has been successfully registered. * <p/> * The method delegates the call to <code>{@link org.esa.beam.framework.dataop.maptransf.UTM#registerProjections}</code> * in order to register all frequently used UTM projections. */ @Override public void registerProjections() { UTM.registerProjections(); MapProjectionRegistry.registerProjection(new MapProjection(getName(), createTransform(null), false)); }
/** * This method is called within the <code>{@link MapProjectionRegistry#registerDescriptor}</code> method after an * instance of this <code>MapTransformDescriptor</code> has been successfully registered. The method can and should * be used to register projections that are based on the type of <code>{@link MapTransform}</code> described by this * <code>MapTransformDescriptor</code>. Registering projection instances is done using the using the <code>{@link * MapProjectionRegistry#registerProjection}</code> method. * <p/> * <p/> * A typical implementation of this method would be: * <pre> * public void registerProjections() { * MapProjectionRegistry.registerProjection(new MapProjection("my-projection-name-1", new * MyMapTransform(param_1))); * MapProjectionRegistry.registerProjection(new MapProjection("my-projection-name-2", new * MyMapTransform(param_2))); * MapProjectionRegistry.registerProjection(new MapProjection("my-projection-name-3", new * MyMapTransform(param_3))); * ... * } * </pre> */ public void registerProjections() { MapProjectionRegistry.registerProjection(new MapProjection(getName(), createTransform(null), false)); }
final MapProjection projection = new MapProjection(projectionName, mapTransform, mapUnit); final Ellipsoid ellipsoid = new Ellipsoid(ellipsoidName, semiMinor, semiMajor); final Datum datum = new Datum(datumName, ellipsoid, 0, 0, 0); // @todo nf/nf - read also DX,DY,DZ
private static MapProjection createMapProjectionForTestSetGeocoding() { MapTransform mapTransform = new IdentityTransformDescriptor().createTransform(null); return new MapProjection("p1", mapTransform, "unit"); }
/** * This method is called within the <code>{@link MapProjectionRegistry#registerDescriptor}</code> method after an * instance of this <code>MapTransformDescriptor</code> has been successfully registered. The method can and should * be used to register projections that are based on the type of <code>{@link MapTransform}</code> described by this * <code>MapTransformDescriptor</code>. Registering projection instances is done using the using the <code>{@link * MapProjectionRegistry#registerProjection}</code> method. * <p/> * <p/> * A typical implementation of this method would be: * <pre> * public void registerProjections() { * MapProjectionRegistry.registerProjection(new MapProjection("my-projection-name-1", new * MyMapTransform(param_1))); * MapProjectionRegistry.registerProjection(new MapProjection("my-projection-name-2", new * MyMapTransform(param_2))); * MapProjectionRegistry.registerProjection(new MapProjection("my-projection-name-3", new * MyMapTransform(param_3))); * ... * } * </pre> */ public void registerProjections() { MapProjectionRegistry.registerProjection( new MapProjection(getName(), createTransform(null), getMapUnit(), false)); }
private MapInfo createMapInfo(Datum datum) { final IdentityTransformDescriptor td = new IdentityTransformDescriptor(); final MapTransform transform = td.createTransform(null); return createMapInfo(datum, new MapProjection("wullidutsch", transform)); }
private MapGeoCoding createIdentityMapGeoCoding() { final IdentityTransformDescriptor td = new IdentityTransformDescriptor(); final MapTransform transform = td.createTransform(null); final MapProjection projection = new MapProjection("wullidutsch", transform); final MapInfo mapInfo = new MapInfo(projection, 0, 0, 0, 0, 1, 1, Datum.WGS_84); return new MapGeoCoding(mapInfo); }
public GeoCoding createGeocoding() { final String mapProjectionName = "Sinusoidal"; final MapTransform mapAlgorithm = new SinMapTransform(projParams); final MapProjection mapProjection = new MapProjection(mapProjectionName, mapAlgorithm); final int w = productDimension.width; final int h = productDimension.height;
private MapInfo createMapInfo() { MapTransform transform = MapTransformFactory.createTransform("Identity", null); MapProjection projection = new MapProjection("pro_name", transform); Datum datum = new Datum("datumName", new Ellipsoid("ellipsoidName", 7d, 8d), 0, 0, 0); MapInfo mapInfo = new MapInfo(projection, 1f, 2f, 3f, 4f, 5f, 6f, datum); mapInfo.setSceneWidth(123); mapInfo.setSceneHeight(234); return mapInfo; } }
private static void setLambertConformalConicGeoCoding_MapGeoCoding(final Product product) { final MapTransformDescriptor descriptor = MapProjectionRegistry.getDescriptor( LambertConformalConicDescriptor.TYPE_ID); final double[] values = descriptor.getParameterDefaultValues(); for (int i = 0; i < values.length; i++) { values[i] = values[i] - 0.001; } final MapTransform transform = descriptor.createTransform(values); final MapProjection mapProjection = new MapProjection(descriptor.getTypeID(), transform); final MapInfo mapInfo = new MapInfo(mapProjection, .5f, .6f, .7f, .8f, .09f, .08f, Datum.WGS_84); mapInfo.setSceneWidth(product.getSceneRasterWidth()); mapInfo.setSceneHeight(product.getSceneRasterHeight()); product.setGeoCoding(new MapGeoCoding(mapInfo)); }
public void testX() { final TransverseMercatorDescriptor tmd = new TransverseMercatorDescriptor(); final MapProjection mp = new MapProjection("bibo", tmd.createTransform(null), "meter"); assertEquals(Ellipsoid.WGS_84.getSemiMajor(), mp.getMapTransform().getParameterValues()[0], 1e-5); assertEquals(Ellipsoid.WGS_84.getSemiMinor(), mp.getMapTransform().getParameterValues()[1], 1e-5); mp.alterMapTransform(Ellipsoid.BESSEL); assertEquals(Ellipsoid.BESSEL.getSemiMajor(), mp.getMapTransform().getParameterValues()[0], 1e-5); assertEquals(Ellipsoid.BESSEL.getSemiMinor(), mp.getMapTransform().getParameterValues()[1], 1e-5); }
final MapProjection projection = new MapProjection(StereographicDescriptor.NAME, transform); final double pixelSizeX = leaderFile.getNominalInterPixelDistance(); final double pixelSizeY = leaderFile.getNominalInterLineDistance();
final MapProjection projection = new MapProjection(StereographicDescriptor.NAME, transform); final double pixelSizeX = leaderFile.getNominalInterPixelDistance(); final double pixelSizeY = leaderFile.getNominalInterLineDistance();
final LambertConformalConicDescriptor descriptor = new LambertConformalConicDescriptor(); final MapTransform transform = descriptor.createTransform(new double[]{12, 13, 14, 15, 16, 17, 18}); final MapProjection projection = new MapProjection(LambertConformalConicDescriptor.NAME, transform); MapInfo mapInfo = new MapInfo(projection, 1f, 2f, 3f, 4f, 5f, 6f, Datum.WGS_84); mapInfo.setOrientation(7.3f);
final MapProjection projection = new MapProjection(projectionName, transform, mapUnit); final Ellipsoid ellipsoid = new Ellipsoid(ellipsoidName, semiMinor, semiMajor); final Datum datum = new Datum(datumName, ellipsoid, 0, 0, 0);