Package org.geotools.ows.wms.map
Class WMSCoverageReader
Object
AbstractGridCoverage2DReader
WMSCoverageReader
- All Implemented Interfaces:
GridCoverageReader,GridCoverage2DReader
A grid coverage readers backing onto a WMS server by issuing GetMap
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionWMSCoverageReader(WebMapServer wms, Layer layer) Builds a new WMS coverage readerWMSCoverageReader(WebMapServer wms, Layer layer, String style) WMSCoverageReader(WebMapServer wms, Layer layer, String style, String preferredFormat) -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultFormat(List<String> formats) getFeatureInfo(Position2D pos, String infoFormat, int featureCount, GetMapRequest getmap) Issues GetFeatureInfo against a point using the params of the last GetMap requestReturns the format handled by thisGridCoverageReader.fetch the WMS Layers used in this coverage.String[]Returns the list of metadata keywords associated with the input source as a whole (not associated with any particular grid coverage).getMetadataValue(String name) Retrieve the metadata value for a given metadata name.fetch the names of the styles used in this layer.read(GeneralParameterValue... parameters) Read the current grid coverage from the stream.voidReturns the layer boundsMethods 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, 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
-
LOGGER
The logger for the map module.
-
-
Constructor Details
-
WMSCoverageReader
Builds a new WMS coverage reader -
WMSCoverageReader
-
WMSCoverageReader
-
-
Method Details
-
getDefaultFormat
-
getFeatureInfo
public InputStream getFeatureInfo(Position2D pos, String infoFormat, int featureCount, GetMapRequest getmap) throws IOException Issues GetFeatureInfo against a point using the params of the last GetMap request- Throws:
IOException
-
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
-
getFormat
Description copied from interface:GridCoverageReaderReturns the format handled by thisGridCoverageReader. -
updateBounds
public void updateBounds()Returns the layer bounds -
getMetadataNames
Description copied from interface:GridCoverageReaderReturns the list of metadata keywords associated with the input source as a whole (not associated with any particular grid coverage). If no metadata is available, the array will be empty.- Specified by:
getMetadataNamesin interfaceGridCoverageReader- Overrides:
getMetadataNamesin classAbstractGridCoverage2DReader- Returns:
- The list of metadata keywords for the input source.
- See Also:
-
getMetadataValue
Description copied from interface:GridCoverageReaderRetrieve the metadata value for a given metadata name.- Specified by:
getMetadataValuein interfaceGridCoverageReader- Overrides:
getMetadataValuein classAbstractGridCoverage2DReader- Parameters:
name- Metadata keyword for which to retrieve metadata.- Returns:
- The metadata value for the given metadata name. Should be one of the name returned by
GridCoverageReader.getMetadataNames(). - See Also:
-
getLayers
fetch the WMS Layers used in this coverage.- Returns:
- the layers
-
getStyles
fetch the names of the styles used in this layer. Empty string means the default style.- Returns:
- the style names.
-