public class WMSImagery extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WMSImagery.LayerDetails |
static class |
WMSImagery.WMSGetCapabilitiesException |
Modifier and Type | Field and Description |
---|---|
private List<String> |
formats |
private List<WMSImagery.LayerDetails> |
layers |
private URL |
serviceUrl |
Constructor and Description |
---|
WMSImagery() |
private List<WMSImagery.LayerDetails> layers
private URL serviceUrl
public WMSImagery()
public List<WMSImagery.LayerDetails> getLayers()
public URL getServiceUrl()
public List<String> getFormats()
public String getPreferredFormats()
String buildRootUrl()
public String buildGetMapUrl(Collection<WMSImagery.LayerDetails> selectedLayers)
public String buildGetMapUrl(Collection<WMSImagery.LayerDetails> selectedLayers, String format)
public void attemptGetCapabilities(String serviceUrlStr) throws MalformedURLException, IOException, WMSImagery.WMSGetCapabilitiesException
static boolean isImageFormatSupported(String format)
static boolean imageFormatHasTransparency(String format)
public ImageryInfo toImageryInfo(String name, Collection<WMSImagery.LayerDetails> selectedLayers)
private List<WMSImagery.LayerDetails> parseLayers(List<Element> children, Set<String> parentCrs)
private WMSImagery.LayerDetails parseLayer(Element element, Set<String> parentCrs)
private static boolean isProjSupported(String crs)
private static String getChildContent(Element parent, String name, String missing, String empty)
private static Object getContent(Element element)
private static List<Element> getChildren(Element parent, String name)