コード例 #1
0
  public OGCRequestDescription getRequestDescription(String requestName) {
    for (OGCRequestDescription rd : this.getCapabilityInformation().getRequestDescriptions()) {
      if (rd.getRequestName().equalsIgnoreCase(requestName)) return rd;
    }

    return null;
  }
コード例 #2
0
  public Set<String> getImageFormats() {
    Set<OGCRequestDescription> requestDescriptions =
        this.getCapabilityInformation().getRequestDescriptions();
    for (OGCRequestDescription rd : requestDescriptions) {
      if (rd.getRequestName().equals("GetMap")) return rd.getFormats();
    }

    return null;
  }