WMSInfo() { keywords = new HashSet<String>(); if (capabilities.getService() != null) { String array[] = capabilities.getService().getKeywordList(); if (array != null) { keywords.addAll(Arrays.asList(array)); } } keywords.add("WMS"); keywords.add(serverURL.toString()); URL globe2 = WebMapServer.class.getResource("Globe2.png"); icon = new ImageIcon(globe2); }
public Set<String> getKeywords() { String[] keywordList = capabilities.getService().getKeywordList(); if (keywordList == null) { return Collections.emptySet(); } return new HashSet<String>(Arrays.asList(keywordList)); }
WMSInfo() { keywords = new HashSet<String>(); if (capabilities.getService() != null) { String array[] = capabilities.getService().getKeywordList(); if (array != null) { keywords.addAll(Arrays.asList(array)); } } keywords.add("WMS"); keywords.add(serverURL.toString()); URL globe2 = WebMapServer.class.getResource("Globe2.png"); icon = new ImageIcon(globe2); }
WMSServiceInfo(ProgressListener monitor) { try { caps = getWMS(monitor).getCapabilities(); } catch (Throwable t) { t.printStackTrace(); caps = null; } keywords = (caps == null) ? null : ((caps.getService() == null) ? null : caps.getService() .getKeywordList()); String[] t; if (keywords == null) { t = new String[2]; } else { t = new String[keywords.length + 2]; System.arraycopy(keywords, 0, t, 2, keywords.length); } t[0] = "WMS"; //$NON-NLS-1$ t[1] = getIdentifier().toString(); keywords = t; }
name = layer.getName(); List keywordsFromWMS = new ArrayList(); if (caps.getService().getKeywordList() != null) { keywordsFromWMS.addAll( Arrays.asList( caps.getService().getKeywordList() ));