コード例 #1
0
  public List<XmlWfsPoint> getFeatureMemberCoordinates() {
    List<XmlWfsPoint> resultList = new ArrayList<XmlWfsPoint>();

    if (featureMemberList.size() > 0) {
      for (WfsFeatureMember featureMember : featureMemberList) {
        for (XmlWfsPoint point : featureMember.getGeometry().getCoordinates()) {
          resultList.add(point);
        }
      }
    }

    return resultList;
  }
コード例 #2
0
  public List<String> getFeatureMemberPropertyKey() {
    List<String> resultList = new ArrayList<String>();

    if (featureMemberList.size() > 0) {
      WfsFeatureMember member = featureMemberList.get(0);
      List<WfsFeatureMemberProperty> properties = member.getProperties();

      for (WfsFeatureMemberProperty property : properties) {
        resultList.add(property.getKey());
      }
    }

    return resultList;
  }
コード例 #3
0
  public List<HashMap<String, String>> getFeatureMemberProperties() {
    List<HashMap<String, String>> resultList = new ArrayList<HashMap<String, String>>();

    if (featureMemberList.size() > 0) {
      for (WfsFeatureMember featureMember : featureMemberList) {
        HashMap<String, String> map = new HashMap<String, String>();

        for (WfsFeatureMemberProperty property : featureMember.getProperties()) {
          map.put(property.getKey(), property.getValue());
        }

        resultList.add(map);
      }
    }

    return resultList;
  }