Package org.geotools.mbtiles.mosaic
Class MBTilesReader
Object
AbstractGridCoverage2DReader
MBTilesReader
- All Implemented Interfaces:
GridCoverageReader,GridCoverage2DReader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ReferencedEnvelopeprotected static final intprotected MBTilesMetadataprotected Fileprotected static final intFields inherited from class AbstractGridCoverage2DReader
closeMe, coverageFactory, coverageName, crs, dtLayout, EPS, gzipped, highestRes, hints, inStream, inStreamSPI, numOverviews, offsets, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, scales, sourceFields inherited from interface GridCoverage2DReader
ELEVATION_DOMAIN, ELEVATION_DOMAIN_MAXIMUM, ELEVATION_DOMAIN_MINIMUM, ELEVATION_DOMAIN_RESOLUTION, FILE_SOURCE_PROPERTY, HAS_ELEVATION_DOMAIN, HAS_TIME_DOMAIN, MULTICRS_EPSGCODES, MULTICRS_READER, PAM_DATASET, REPROJECTING_READER, SOURCE_URL_PROPERTY, TIME_DOMAIN, TIME_DOMAIN_MAXIMUM, TIME_DOMAIN_MINIMUM, TIME_DOMAIN_RESOLUTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the format handled by thisGridCoverageReader.protected BufferedImagegetStartImage(int width, int height) protected BufferedImagegetStartImage(int imageType, int width, int height) protected BufferedImagegetStartImage(BufferedImage copyFrom, int width, int height) read(GeneralParameterValue... parameters) Read the current grid coverage from the stream.protected static BufferedImageMethods inherited from class AbstractGridCoverage2DReader
addAllSiblings, addSiblings, checkName, collectScaleOffset, createImageCoverage, createImageCoverage, createImageCoverage, createImageCoverage, decimationOnReadingControl, dispose, finalize, getCoordinateReferenceSystem, getCoordinateReferenceSystem, getDatasetLayout, getDatasetLayout, getDynamicParameters, getDynamicParameters, getFiles, getGridCoverageCount, getGridCoverageNames, getGroundControlPoints, getGroundControlPoints, getHighestRes, getHighestRes, getImageLayout, getImageLayout, getInfo, getInfo, getMetadataNames, getMetadataNames, getMetadataValue, getMetadataValue, getMultiLevelROIProvider, getOriginalEnvelope, getOriginalEnvelope, getOriginalGridRange, getOriginalGridRange, getOriginalGridToWorld, getOriginalGridToWorld, getOverviewGridEnvelope, getOverviewGridEnvelope, getPamDataset, getPamDataset, getReadingResolutions, getReadingResolutions, getRescaledRasterToModel, getResolution, getResolutionLevels, getResolutionLevels, getSibling, getSource, getSourceAsFile, read, setlayout, setLayout, setReadParams, setReadParams
-
Field Details
-
DEFAULT_TILE_SIZE
protected static final int DEFAULT_TILE_SIZE- See Also:
-
ZOOM_LEVEL_BASE
protected static final int ZOOM_LEVEL_BASE- See Also:
-
metadata
-
bounds
-
sourceFile
-
-
Constructor Details
-
MBTilesReader
- Throws:
IOException
-
-
Method Details
-
getFormat
Description copied from interface:GridCoverageReaderReturns the format handled by thisGridCoverageReader. -
read
public GridCoverage2D read(GeneralParameterValue... parameters) throws IllegalArgumentException, IOException Description copied from class:AbstractGridCoverage2DReaderRead the current grid coverage from the stream.Example:
- Specified by:
readin interfaceGridCoverage2DReader- Specified by:
readin interfaceGridCoverageReader- Specified by:
readin classAbstractGridCoverage2DReader- Parameters:
parameters- Optional parameters matchingFormat.getReadParameters().- Returns:
- a grid coverage from the input source.
- Throws:
InvalidParameterNameException- if a parameter inparametersdoesn't have a recognized name.InvalidParameterValueException- if a parameter inparametersdoesn't have a valid value.ParameterNotFoundException- if a parameter was required for the operation but was not provided in theparameterslist.IOException- if a read operation failed for some other input/output reason, includingFileNotFoundExceptionif no file with the givennamecan be found, orIIOExceptionif an error was thrown by the underlying image library.IllegalArgumentException
-
readImage
- Throws:
IOException
-
getStartImage
-
getStartImage
-
getStartImage
-