public class WMSUtils extends Object
Constructor and Description |
---|
WMSUtils() |
Modifier and Type | Method and Description |
---|---|
static Set |
findCommonEPSGs(List layers)
Given a list of type Layer, return all EPSG codes that is supported by all of the layers.
|
static Layer[] |
getNamedLayers(WMSCapabilities capabilities)
Utility method to return each layer that has a name.
|
static Set |
getQueryableLayers(WMSCapabilities capabilities) |
static Set |
getSRSs(WMSCapabilities capabilities) |
static String |
matchEPSG(CoordinateReferenceSystem crs,
Set codes)
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.
|
public static Layer[] getNamedLayers(WMSCapabilities capabilities)
public static Set getQueryableLayers(WMSCapabilities capabilities)
public static Set getSRSs(WMSCapabilities capabilities)
public static Set findCommonEPSGs(List layers)
layers
- A List of type Layerpublic static String matchEPSG(CoordinateReferenceSystem crs, Set codes)
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.
crs
- a CRS that is to be compared to each EPSG code in codescodes
- a Set of type String containing EPSG codesCopyright © 1996–2019 Geotools. All rights reserved.