public class TPKReader extends AbstractGridCoverage2DReader
Modifier and Type | Class and Description |
---|---|
static class |
TPKReader.ImageFormats |
Modifier and Type | Field and Description |
---|---|
protected ReferencedEnvelope |
bounds |
protected static int |
DEFAULT_TILE_SIZE |
protected String |
imageFormat |
protected File |
sourceFile |
protected static ReferencedEnvelope |
WORLD_ENVELOPE |
protected static int |
ZOOM_LEVEL_BASE |
protected Map<Long,TPKZoomLevel> |
zoomLevelMap |
closeMe, coverageFactory, coverageName, crs, dtLayout, EPS, gzipped, highestRes, hints, inStream, inStreamSPI, numOverviews, offsets, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, scales, source
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
Modifier and Type | Method and Description |
---|---|
Format |
getFormat()
Returns the format handled by this
GridCoverageReader . |
protected BufferedImage |
getStartImage(BufferedImage copyFrom,
int width,
int height) |
protected BufferedImage |
getStartImage(int width,
int height) |
protected BufferedImage |
getStartImage(int imageType,
int width,
int height) |
GridCoverage2D |
read(GeneralParameterValue[] parameters)
Read the current grid coverage from the stream.
|
protected static BufferedImage |
readImage(byte[] data,
String format) |
protected void |
setBackground(BufferedImage image,
Color bgColor) |
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
protected static final ReferencedEnvelope WORLD_ENVELOPE
protected static final int DEFAULT_TILE_SIZE
protected static final int ZOOM_LEVEL_BASE
protected ReferencedEnvelope bounds
protected String imageFormat
protected File sourceFile
protected Map<Long,TPKZoomLevel> zoomLevelMap
public Format getFormat()
GridCoverageReader
GridCoverageReader
.public GridCoverage2D read(GeneralParameterValue[] parameters) throws IllegalArgumentException
AbstractGridCoverage2DReader
Example:
read
in interface GridCoverage2DReader
read
in interface GridCoverageReader
read
in class AbstractGridCoverage2DReader
parameters
- Optional parameters matching Format.getReadParameters()
.InvalidParameterNameException
- if a parameter in parameters
doesn't have a
recognized name.InvalidParameterValueException
- if a parameter in parameters
doesn't have a
valid value.ParameterNotFoundException
- if a parameter was required for the operation but was not
provided in the parameters
list.IllegalArgumentException
protected static BufferedImage readImage(byte[] data, String format) throws IOException
IOException
protected BufferedImage getStartImage(BufferedImage copyFrom, int width, int height)
protected BufferedImage getStartImage(int imageType, int width, int height)
protected BufferedImage getStartImage(int width, int height)
protected void setBackground(BufferedImage image, Color bgColor)
Copyright © 1996–2023 Geotools. All rights reserved.