| java.lang.Object org.geotools.data.wms.WMSUtils
WMSUtils | public class WMSUtils (Code) | | Provides miscellaneous utility methods for use with WMSs.
author: Richard Gould |
findCommonEPSGs | public static Set findCommonEPSGs(List layers)(Code) | | Given a list of type Layer, return all EPSG codes that is supported
by all of the layers. This is an intersection of each layer's SRS set.
Parameters: layers - A List of type Layer a Set of type String, containin EPSG codes, or empty if none found |
getNamedLayers | public static Layer[] getNamedLayers(WMSCapabilities capabilities)(Code) | | Utility method to return each layer that has a name. This method maintains no hierarchy at all.
An array of Layers, each value has a it's name property set or an empty array if there are none. It will return null if there is no capabilities document |
matchEPSG | public static String matchEPSG(CoordinateReferenceSystem crs, Set codes)(Code) | | Given a CRS and a Set of type String consisting of EPSG CRS codes
(such as "EPSG:4326"), it will check the transform that exists between
each EPSG code's CRS and the given CRS. If this is the identity
transform, meaning the CRS is equivalent to the EPSG code,
the used EPSG code will be returned. The first valid EPSG code found
is returned, so it is possibly that multiple valid codes exist.
If no such identity transform can be found, null will be returned.
If this method is succesful, the result is stored in a cache, which is
called in subsequent calls.
Parameters: crs - a CRS that is to be compared to each EPSG code in codes Parameters: codes - a Set of type String containing EPSG codes an EPSG code that correspondes to crs, or null if one can't be found |
|
|