Examples of VisitAction


Examples of chunmap.data.feature.VisitAction

  public static void changeCRS(FeatureCollection fc,CoordinateRef target)
    {
        CoordinateRef source = fc.getMetadata().getCrs();
        final ReProjection rp = new ReProjection(target, source);

        fc.each(new VisitAction(){
      @Override
      public void execute(Feature f) {
        rp.execute(f);
      }});
View Full Code Here

Examples of chunmap.data.feature.VisitAction

      final ShpDataSource pDR = new ShpDataSource(path,Charset.forName("GBK"));
      //System.out.print(Charset.defaultCharset());
        GeoDataAdapter pDA = new GeoDataAdapter(pDR);

        FeatureCollection fc = pDA.createFeatureList();
        fc.each(new VisitAction(){
      @Override
      public void execute(Feature obj) {
        ShapeFeature shp = (ShapeFeature)obj;
        Object[] data=pDR.data(shp.getId());
        shp.setValues(data);
View Full Code Here

Examples of chunmap.data.feature.VisitAction

    selectabel = true;
  }

  @Override
  protected void subRender(final Symbol smb,final int i,final Renderer r) {
    features.select(r.getFilterEnvelop(), new VisitAction(){
      @Override
      public void execute(Feature obj) {
        r.draw(obj, smb,i);
      }});
  }
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.