using System;
using System.Collections.Generic;
using System.Text;
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.DataSourcesGDB;
using ESRI.ArcGIS.Display;
using ESRI.ArcGIS.esriSystem;
using ESRI.ArcGIS.Geodatabase;
using ESRI.ArcGIS.Geometry;
using ESRI.ArcGIS.Controls;
using ESRI.ArcGIS.DataSourcesFile;
using ESRI.ArcGIS.DataSourcesRaster;
namespace PLOS.ClassLibrary
{
public class ReadData
{
public static List<ILayer> ReadShapLayer(List<string> filePathList)
{
List<ILayer> layerList = new List<ILayer>();
if (filePathList.Count == 0) return null;
else
{
foreach (string path in filePathList)
{
IWorkspaceFactory pWorkspaceFactory = new ShapefileWorkspaceFactory();
IWorkspace pWorkspace = pWorkspaceFactory.OpenFromFile(System.IO.Path.GetDirectoryName(path), 0);
IFeatureWorkspace pFeatureWorkspace = pWorkspace as IFeatureWorkspace;
IFeatureClass pFeatureClass=pFeatureWorkspace.OpenFeatureClass(System.
C#+AE读取Shapefile,raster,gdb,mdb,CAD图,自定义格式坐标数据
最新推荐文章于 2022-03-18 22:03:58 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)