/** * Creates a new RasterTreeBuilder. See the additional <code>set*()</code>-methods for further options. * * @param options * needed for reading the raster files * @param dstSRS * the target crs * @param dstDir * the output directory of the raster tree * @param maxTileSize * the max tile size * @param interpolation * the raster interpolation */ public RasterTreeBuilder( RasterIOOptions options, ICRS dstSRS, File dstDir, int maxTileSize, InterpolationType interpolation ) { super(); this.rasterOptions = options; if ( dstSRS == null ) { this.dstSRS = rasterOptions.getCRS(); } else { this.dstSRS = dstSRS; } if ( this.dstSRS == null ) { System.out.println( "Could not determine the target srs of the original raster, assuming crs of the source raster." ); } this.dstDir = dstDir; this.maxTileSize = maxTileSize; this.interpolation = interpolation; }
if ( options != null ) { location = options.getRasterOriginLocation(); crs = options.getCRS();
private static RasterTreeBuilder initRTB( CommandLine line ) throws ParseException { RasterIOOptions options = RasterOptionsParser.parseRasterIOOptions( line ); String t_srs = line.getOptionValue( OPT_T_SRS ); ICRS tSRS = null; if ( t_srs == null ) { tSRS = options.getCRS(); } else { tSRS = CRSManager.getCRSRef( t_srs ); } File outDir = new File( line.getOptionValue( OPT_RASTER_OUT_LOC ) ); InterpolationType interpolationType = getInterpolationType( line.getOptionValue( OPT_INTERPOLATION ) ); int maxTileSize = getIntOption( line, OPT_TILE_SIZE, DEFAULT_TILE_SIZE ); return new RasterTreeBuilder( options, tSRS, outDir, maxTileSize, interpolationType ); }
gridExtension.maxy, options.getCRS() ); int[] size = geoReference.getSize( rasterEnvelope ); width = size[0];
RasterGeoReference rasterReference = null; ICRS crs = options == null ? null : options.getCRS(); if ( crs == null ) { LOG.warn( "Configured crs is null, maybe the rasterfiles define one." );
RasterGeoReference rasterReference = null; ICRS crs = options == null ? null : options.getCRS(); if ( crs == null ) { LOG.warn( "Configured crs is null, maybe the rasterfiles define one." );
Envelope rasterEnvelope = this.geoReference.getEnvelope( width, height, options.getCRS() ); RasterData data = RasterDataFactory.createRasterData( width, height, rdi, geoReference, buffer, true, FileUtils.getFilename( this.file ), options );
readCRS = opts.getCRS(); } else { readCRS = CRSManager.getCRSRef( crs );