public class WMTSCoverageReader extends AbstractGridCoverage2DReader
Modifier and Type | Field and Description |
---|---|
boolean |
debug |
static Logger |
LOGGER
The logger for the map module.
|
closeMe, coverageFactory, coverageName, crs, dtLayout, EPS, gzipped, highestRes, hints, inStream, inStreamSPI, numOverviews, originalEnvelope, originalGridRange, overViewResolutions, raster2Model, source
ELEVATION_DOMAIN, ELEVATION_DOMAIN_MAXIMUM, ELEVATION_DOMAIN_MINIMUM, ELEVATION_DOMAIN_RESOLUTION, FILE_SOURCE_PROPERTY, HAS_ELEVATION_DOMAIN, HAS_TIME_DOMAIN, MULTICRS_READER, REPROJECTING_READER, SOURCE_URL_PROPERTY, TIME_DOMAIN, TIME_DOMAIN_MAXIMUM, TIME_DOMAIN_MINIMUM, TIME_DOMAIN_RESOLUTION
Constructor and Description |
---|
WMTSCoverageReader(WebMapTileServer server,
Layer layer)
Builds a new WMS coverage reader
|
Modifier and Type | Method and Description |
---|---|
CoordinateReferenceSystem |
getCoordinateReferenceSystem()
Retrieves the
GeneralEnvelope for this AbstractGridCoverage2DReader . |
Format |
getFormat()
Returns the format handled by this
GridCoverageReader . |
String[] |
getMetadataNames()
Returns the list of metadata keywords associated with the input
source as a whole (not associated with any particular grid coverage).
|
String |
getMetadataValue(String name)
Retrieve the metadata value for a given metadata name.
|
String |
getRequestedTime() |
protected BufferedImage |
getTileImage(Tile tile) |
GetTileRequest |
getTileRequest() |
GridCoverage2D |
read(GeneralParameterValue[] parameters)
Read the current grid coverage from the stream.
|
protected void |
renderTile(Tile tile,
Graphics2D g2d,
double[] points) |
protected void |
renderTiles(Collection<Tile> tiles,
Graphics2D g2d,
ReferencedEnvelope viewportExtent,
AffineTransform worldToImageTransform) |
void |
setRequestedTime(String requestedTime) |
void |
setTileRequest(GetTileRequest mapRequest) |
void |
updateBounds()
Returns the layer bounds
|
addAllSiblings, addSiblings, checkName, createImageCoverage, createImageCoverage, createImageCoverage, createImageCoverage, decimationOnReadingControl, dispose, finalize, getCoordinateReferenceSystem, getCrs, getCurrentSubname, getDatasetLayout, getDatasetLayout, getDynamicParameters, getDynamicParameters, getFiles, getGridCoverageCount, getGridCoverageNames, getGroundControlPoints, getGroundControlPoints, getHighestRes, getImageLayout, getImageLayout, getInfo, getInfo, getMetadataNames, getMetadataValue, getMultiLevelROIProvider, getNumOverviews, getNumOverviews, getOriginalEnvelope, getOriginalEnvelope, getOriginalGridRange, getOriginalGridRange, getOriginalGridToWorld, getOriginalGridToWorld, getOverviewGridEnvelope, getOverviewGridEnvelope, getReadingResolutions, getReadingResolutions, getRescaledRasterToModel, getResolution, getResolutionLevels, getResolutionLevels, getSibling, getSource, getSourceAsFile, hasMoreGridCoverages, listSubNames, read, setlayout, setLayout, setReadParams, setReadParams, skip
public static final Logger LOGGER
public final boolean debug
public WMTSCoverageReader(WebMapTileServer server, Layer layer)
server
- layer
- public GridCoverage2D read(GeneralParameterValue[] parameters) throws IllegalArgumentException, IOException
AbstractGridCoverage2DReader
Example:
The method AbstractGridCoverage2DReader.hasMoreGridCoverages()
should be invoked first in order to verify that a
coverage is available.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.IOException
- if a read operation failed for some other input/output reason, including
FileNotFoundException
if no file with the given name
can be found, or
IIOException
if an error was thrown by the underlying image
library.IllegalArgumentException
protected void renderTiles(Collection<Tile> tiles, Graphics2D g2d, ReferencedEnvelope viewportExtent, AffineTransform worldToImageTransform)
protected void renderTile(Tile tile, Graphics2D g2d, double[] points)
protected BufferedImage getTileImage(Tile tile)
public CoordinateReferenceSystem getCoordinateReferenceSystem()
AbstractGridCoverage2DReader
GeneralEnvelope
for this AbstractGridCoverage2DReader
.getCoordinateReferenceSystem
in interface GridCoverage2DReader
getCoordinateReferenceSystem
in class AbstractGridCoverage2DReader
GeneralEnvelope
for this AbstractGridCoverage2DReader
.public Format getFormat()
GridCoverageReader
GridCoverageReader
.public void updateBounds()
public String[] getMetadataNames()
GridCoverageReader
getMetadataNames
in interface GridCoverageReader
getMetadataNames
in class AbstractGridCoverage2DReader
GridCoverageReader.getMetadataNames()
public String getMetadataValue(String name)
GridCoverageReader
getMetadataValue
in interface GridCoverageReader
getMetadataValue
in class AbstractGridCoverage2DReader
name
- Metadata keyword for which to retrieve metadata.GridCoverageReader.getMetadataNames()
.GridCoverageReader.getMetadataValue(java.lang.String)
public GetTileRequest getTileRequest()
public void setTileRequest(GetTileRequest mapRequest)
mapRequest
- the mapRequest to setpublic String getRequestedTime()
public void setRequestedTime(String requestedTime)
Copyright © 1996–2019 Geotools. All rights reserved.