private RasterTreeGridifier( String rtbBaseDir, float minX, float minY, float maxX, float maxY, String outputDir, int tileHeight, int tileWidth, long maxBlobSize, boolean recursive, RasterIOOptions options ) { this( rtbBaseDir, minX, minY, maxX, maxY, outputDir, tileHeight, tileWidth, maxBlobSize, new MultiResolutionTileGrid( new File( rtbBaseDir ), recursive, options ), options.getRasterOriginLocation() ); }
ICRS crs = null; if ( options != null ) { location = options.getRasterOriginLocation(); crs = options.getCRS();
ioOptions.getRasterOriginLocation() ); } else {
if ( getRasterOriginLocation() == OriginLocation.CENTER ) { add( GEO_ORIGIN_LOCATION, otherOptions.getRasterOriginLocation().name() );
if ( origLoc != OriginLocation.OUTER && options.getRasterOriginLocation() == OriginLocation.OUTER ) {
private AbstractRaster loadFromReader( JAIRasterDataReader reader, RasterIOOptions options ) { width = reader.getColumns(); height = reader.getRows(); setID( options ); reader.close(); OriginLocation definedRasterOrigLoc = options.getRasterOriginLocation(); // create a 1:1 mapping rasterReference = new RasterGeoReference( definedRasterOrigLoc, 1, -1, 0.5, height - 0.5 ); if ( options.hasRasterGeoReference() ) { rasterReference = options.getRasterGeoReference(); } else { if ( options.readWorldFile() ) { try { if ( file != null ) { rasterReference = WorldFileAccess.readWorldFile( file, options ); } } catch ( IOException e ) { // } } } Envelope envelope = rasterReference.getEnvelope( width, height, null ); // RasterDataContainer source = RasterDataContainerFactory.withDefaultLoadingPolicy( reader ); // RasterDataContainer source = RasterDataContainerFactory.withLoadingPolicy( reader, options.getLoadingPolicy() // ); RasterDataInfo rdi = reader.getRasterDataInfo(); return RasterFactory.createEmptyRaster( rdi, envelope, rasterReference, this, true, options ); }
setID( opts ); OriginLocation definedRasterOrigLoc = opts.getRasterOriginLocation(); String imageIndex = opts.get( RasterIOOptions.IMAGE_INDEX ); int factor = 0;