Exemplo n.º 1
0
  /**
   * 获取阻隔的“层组”
   *
   * @return
   * @throws Exception
   * @throws IOException
   */
  public GroupLayer getGroupLayer() throws Exception, IOException {
    // 获取当前阻隔featureClass
    IFeatureClass ifc = getFeatureClass();
    GroupLayer ret = new GroupLayer();
    ret.setExpanded(false);
    // 设置层组的名称
    ret.setName("阻隔");

    FeatureLayer fl = new FeatureLayer();
    fl.setName(getName());
    fl.setFeatureClassByRef(ifc);
    ret.add(fl);

    return ret;
  }