public class WMSCoverageReader extends AbstractGridCoverage2DReader
| Modifier and Type | Field and Description |
|---|---|
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, sourceELEVATION_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 |
|---|
WMSCoverageReader(WebMapServer wms,
Layer layer)
Builds a new WMS coverage reader
|
WMSCoverageReader(WebMapServer wms,
Layer layer,
String style) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getFeatureInfo(DirectPosition2D pos,
String infoFormat,
int featureCount,
GetMapRequest getmap)
Issues GetFeatureInfo against a point using the params of the last GetMap request
|
Format |
getFormat()
Returns the format handled by this
GridCoverageReader. |
List<Layer> |
getLayers()
fetch the WMS Layers used in this coverage.
|
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.
|
List<String> |
getStyles()
fetch the names of the styles used in this layer.
|
GridCoverage2D |
read(GeneralParameterValue[] parameters)
Read the current grid coverage from the stream.
|
void |
updateBounds()
Returns the layer bounds
|
addAllSiblings, addSiblings, checkName, createImageCoverage, createImageCoverage, createImageCoverage, createImageCoverage, decimationOnReadingControl, dispose, finalize, getCoordinateReferenceSystem, 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, skippublic static final Logger LOGGER
public WMSCoverageReader(WebMapServer wms, Layer layer)
wms - layer - public WMSCoverageReader(WebMapServer wms, Layer layer, String style)
public InputStream getFeatureInfo(DirectPosition2D pos, String infoFormat, int featureCount, GetMapRequest getmap) throws IOException
pos - IOExceptionpublic GridCoverage2D read(GeneralParameterValue[] parameters) throws IllegalArgumentException, IOException
AbstractGridCoverage2DReaderExample:
The method AbstractGridCoverage2DReader.hasMoreGridCoverages() should be invoked first in order to verify that a
coverage is available.read in interface GridCoverage2DReaderread in interface GridCoverageReaderread in class AbstractGridCoverage2DReaderparameters - 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.IllegalArgumentExceptionpublic Format getFormat()
GridCoverageReaderGridCoverageReader.public void updateBounds()
public String[] getMetadataNames()
GridCoverageReadergetMetadataNames in interface GridCoverageReadergetMetadataNames in class AbstractGridCoverage2DReaderGridCoverageReader.getMetadataNames()public String getMetadataValue(String name)
GridCoverageReadergetMetadataValue in interface GridCoverageReadergetMetadataValue in class AbstractGridCoverage2DReadername - Metadata keyword for which to retrieve metadata.GridCoverageReader.getMetadataNames().GridCoverageReader.getMetadataValue(java.lang.String)public List<Layer> getLayers()
Copyright © 1996–2019 Geotools. All rights reserved.