@Override public RasterReader getRasterReader( String type ) { if ( type != null && FORMATS.contains( type.toLowerCase() ) ) { return new GridFileReader(); } return null; }
this.blobReader = new SplittedBlobReader( blobDir, BLOB_FILE_NAME, BLOB_FILE_EXT, metaInfoFile ); } else { this.blobReader = new GridFileReader( metaInfoFile, files[0] );
/** * A gridded tile container which reads data from a deegree internal format. See d3_tools/RasterTreeGridifier on how * to create the format. This methods takes a single bob file instead of scanning a given directory * * @param blobFile * to read the tiles from. * @param metaInfoFile * @throws IOException */ public GriddedBlobTileContainer( File blobFile, GridMetaInfoFile metaInfoFile ) throws IOException { this( metaInfoFile ); if ( !blobFile.exists() ) { throw new IOException( "Given blobfile:" + blobFile + " does not exist." ); } long totalSize = blobFile.length(); LOG.debug( "Real blob size: " + totalSize ); // blobReaders = new GridFileReader[1]; blobReader = new GridFileReader( metaInfoFile, blobFile ); // tilesPerBlob = blobReader.getNumberOfTiles(); long expectedBlobSize = metaInfoFile.rows() * metaInfoFile.columns() * blobReader.getBytesPerTile(); if ( expectedBlobSize != totalSize ) { String msg = "Size of gridfile (=" + totalSize + ") does not match the expected size (=" + expectedBlobSize + ")."; throw new IllegalArgumentException( msg ); } }
reader = new GridFileReader( heixelFile, options ); return RasterDataFactory.createTiledRasterData( reader, options );
GridReader gr = new GridFileReader( cF, null ); imageBuffer = gr.getTileData( 0, 0, null ); if ( imageBuffer != null ) {
GridFileReader reader = new GridFileReader();