Exemple #1
0
 /**
  * 向全局变量中添加图层
  *
  * @param FilePath shapefile的全路径数组 <br>
  *     若当前项目中已有此路径,则不添加
  */
 public void AddShapeLayers(String[] FilePath) {
   LayerSourceData data[] =
       new LayerSourceDao().createFromLayerPaths(ProInfo.getData().getPID(), FilePath);
   for (LayerSourceData temp : data) {
     ProInfo.AddLayerSourceData(temp);
   }
 }
Exemple #2
0
 /**
  * 向全局变量中添加图层
  *
  * @param FilePath shapefile的全路径 <br>
  *     若当前项目中已有此路径,则不添加
  */
 public void AddShapeLayer(String FilePath) {
   LayerSourceData data =
       new LayerSourceDao().createFromLayerPath(ProInfo.getData().getPID(), FilePath);
   LogCatHelper.Log("AddShapeLayer", FilePath);
   ProInfo.AddLayerSourceData(data);
 }