public String regionateStrategy() { Element regionateStrategy = ReaderUtils.getChildElement(featureType, "regionateStrategy"); if (regionateStrategy != null) { return regionateStrategy.getAttribute("value"); } return null; }
public List<String> styles() throws Exception { Element styleRoot = ReaderUtils.getChildElement(coverage, "styles"); if (styleRoot != null) { List<String> styleNames = new ArrayList<String>(); Element[] styles = ReaderUtils.getChildElements(styleRoot, "style"); for (Element style : styles) { styleNames.add(style.getTextContent().trim()); } return styleNames; } else { return Collections.emptyList(); } }
public String regionateAttribute() { Element regionateAttribute = ReaderUtils.getChildElement(featureType, "regionateAttribute"); if (regionateAttribute != null) { return regionateAttribute.getAttribute("value"); } return null; }
public List<String> styles() throws Exception { Element styleRoot = ReaderUtils.getChildElement(featureType, "styles"); if (styleRoot != null) { List<String> styleNames = new ArrayList<String>(); Element[] styles = ReaderUtils.getChildElements(styleRoot, "style"); for (Element style : styles) { styleNames.add(style.getTextContent().trim()); } return styleNames; } else { return Collections.emptyList(); } }
public int maxFeatures() { Element maxFeatures = ReaderUtils.getChildElement(featureType, "maxFeatures"); try { return Integer.valueOf(maxFeatures.getTextContent()); } catch (Exception e) { return 0; } }
public int regionateFeatureLimit() { Element regionateFeatureLimit = ReaderUtils.getChildElement(featureType, "regionateFeatureLimit"); try { return Integer.valueOf(regionateFeatureLimit.getAttribute("value")); } catch (Exception e) { return 10; } }
public boolean searchable() { Element searchable = ReaderUtils.getChildElement(featureType, "searchable"); if (searchable != null) { try { return "true".equals(ReaderUtils.getAttribute(searchable, "enabled", false)); } catch (Exception e) { } } return false; }
public List<String> supportedFormats() throws Exception { Element supportedFormats = ReaderUtils.getChildElement(coverage, "supportedFormats"); String[] formats = ReaderUtils.getChildText(supportedFormats, "formats").split(","); return Arrays.asList(formats); }
public boolean cachingEnabled() { Element cacheInfo = ReaderUtils.getChildElement(featureType, "cacheinfo"); if (cacheInfo != null) { try { return "true".equals(ReaderUtils.getAttribute(cacheInfo, "enabled", false)); } catch (Exception e) { } } return false; }
public List<String> responseCRSs() throws Exception { Element supportedCRS = ReaderUtils.getChildElement(coverage, "supportedCRSs"); String[] responseCRS = ReaderUtils.getChildText(supportedCRS, "responseCRSs").trim().split(","); return Arrays.asList(responseCRS); }
public List<String> supportedInterpolations() throws Exception { Element supportedFormats = ReaderUtils.getChildElement(coverage, "supportedInterpolations"); String[] interpolations = ReaderUtils.getChildText(supportedFormats, "interpolationMethods").split(","); return Arrays.asList(interpolations); }
public String cacheAgeMax() { Element cacheInfo = ReaderUtils.getChildElement(featureType, "cacheinfo"); if (cacheInfo != null) { try { return ReaderUtils.getAttribute(cacheInfo, "maxage", false); } catch (Exception e) { } } return null; }
public List<String> requestCRSs() throws Exception { Element supportedCRS = ReaderUtils.getChildElement(coverage, "supportedCRSs"); String[] requestCRS = ReaderUtils.getChildText(supportedCRS, "requestCRSs").trim().split(","); return Arrays.asList(requestCRS); }
public String defaultInterpolation() throws Exception { Element supportedFormats = ReaderUtils.getChildElement(coverage, "supportedInterpolations"); return ReaderUtils.getAttribute(supportedFormats, "default", true); }
public String defaultStyle() throws Exception { Element styles = ReaderUtils.getChildElement(featureType, "styles"); return ReaderUtils.getAttribute(styles, "default", false); }
public String nativeFormat() throws Exception { Element supportedFormats = ReaderUtils.getChildElement(coverage, "supportedFormats"); return ReaderUtils.getAttribute(supportedFormats, "nativeFormat", true); }
public String defaultStyle() throws Exception { Element styles = ReaderUtils.getChildElement(coverage, "styles"); return ReaderUtils.getAttribute(styles, "default", true); }
public Map<String, Object> wcs() throws Exception { if (wcs != null) { return wcs; } Element servicesElement = ReaderUtils.getChildElement(serverConfiguration, "services", true); Element wcsElement = service(servicesElement, "WCS"); wcs = readService(wcsElement); return wcs; }
public Envelope latLonBoundingBox() throws Exception { Element box = ReaderUtils.getChildElement(featureType, "latLonBoundingBox"); double minx = ReaderUtils.getDoubleAttribute(box, "minx", true); double miny = ReaderUtils.getDoubleAttribute(box, "miny", true); double maxx = ReaderUtils.getDoubleAttribute(box, "maxx", true); double maxy = ReaderUtils.getDoubleAttribute(box, "maxy", true); return new Envelope(minx, maxx, miny, maxy); }
public Envelope nativeBoundingBox() throws Exception { Element box = ReaderUtils.getChildElement(featureType, "nativeBBox"); boolean dynamic = ReaderUtils.getBooleanAttribute(box, "dynamic", false, true); if (dynamic) { return null; } double minx = ReaderUtils.getDoubleAttribute(box, "minx", true); double miny = ReaderUtils.getDoubleAttribute(box, "miny", true); double maxx = ReaderUtils.getDoubleAttribute(box, "maxx", true); double maxy = ReaderUtils.getDoubleAttribute(box, "maxy", true); return new Envelope(minx, maxx, miny, maxy); }