Examples of FeatureAccessor


Examples of com.moesol.geoserver.sync.client.FeatureAccessor

  }

  private void changeSomeFids() {
    for (int i = 0; i < 10; i++) {
      int f = i+1;
      FeatureAccessor accessor = m_features.get(new FeatureIdImpl("states." + f));
      Feature feature = accessor.getFeature();
      feature.getProperty("STATE_NAME").setValue("Changed." + i);
    }
  }
View Full Code Here

Examples of com.moesol.geoserver.sync.client.FeatureAccessor

  }

  private void dumpFids() {
    int i = 1;
    for (Identifier fid : m_features.keySet()) {
      FeatureAccessor accessor = m_features.get(fid);
      Feature feature = accessor.getFeature();
      System.out.printf("%d: fid: %s name: %s%n",
          i, fid, feature.getProperty("STATE_NAME").getValue());
      i++;
    }
  }
View Full Code Here

Examples of com.moesol.geoserver.sync.client.FeatureAccessor

  }

  private void dumpFids() {
    int i = 1;
    for (Identifier fid : m_features.keySet()) {
      FeatureAccessor accessor = m_features.get(fid);
      Feature feature = accessor.getFeature();
      Property p = feature.getProperty(m_printProperty);
      Object value = p != null ? p.getValue() : "<no such property>";
      System.out.printf("%d: fid: %s %s=%s%n",
          i, feature.getIdentifier().getID(), m_printProperty, value);
      i++;
View Full Code Here

Examples of com.moesol.geoserver.sync.client.FeatureAccessor

    for (FeatureCollection<?, ?> fc : resultsList) {
          FeatureIterator<?> iterator = fc.features();
          try {
              while (iterator.hasNext()) {
                Feature feature = iterator.next();
                FeatureAccessor accessor = new FeatureAccessorImpl(feature);
                map.put(feature.getIdentifier(), accessor);
              }
          } finally {
            iterator.close();
          }
View Full Code Here

Examples of com.moesol.geoserver.sync.client.FeatureAccessor

    return sb.toString();
  }
  public static String asString(Map<Identifier, FeatureAccessor> map) {
    StringBuilder sb = new StringBuilder();
    for (Identifier id : map.keySet()) {
      FeatureAccessor accessor = map.get(id);
      Feature feature = accessor.getFeature();
     
      asString(sb, feature);
    }
    return sb.toString();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.