FileDriver.OpenLayer
内容
[
隐藏
]OpenLayer(string)
打开图层进行读取。
public VectorLayer OpenLayer(string path)
| 范围 | 类型 | 描述 |
|---|---|---|
| path | String | 文件的路径。 |
返回值
的实例VectorLayer.
例外
| 例外 | (健康)状况 |
|---|---|
| ArgumentNullException | 路径是null. |
| GisException | 从文件中读取特征时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | 驱动程序无法打开矢量图层(请参阅CanOpenLayers). |
也可以看看
- class VectorLayer
- class FileDriver
- 命名空间 Aspose.Gis
- 部件 Aspose.GIS
OpenLayer(AbstractPath)
打开图层进行读取。
public VectorLayer OpenLayer(AbstractPath path)
| 范围 | 类型 | 描述 |
|---|---|---|
| path | AbstractPath | 文件的路径。 |
返回值
的实例VectorLayer.
例外
| 例外 | (健康)状况 |
|---|---|
| ArgumentNullException | 路径是null. |
| GisException | 从文件中读取特征时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | 驱动程序无法打开矢量图层(请参阅CanOpenLayers). |
也可以看看
- class VectorLayer
- class AbstractPath
- class FileDriver
- 命名空间 Aspose.Gis
- 部件 Aspose.GIS
OpenLayer(string, DriverOptions)
打开图层进行读取。
public VectorLayer OpenLayer(string path, DriverOptions options)
| 范围 | 类型 | 描述 |
|---|---|---|
| path | String | 文件的路径。 |
| options | DriverOptions | 特定于驱动程序的选项。 |
返回值
的实例VectorLayer.
例外
| 例外 | (健康)状况 |
|---|---|
| ArgumentException | 此驱动程序的选项对象类型不正确。 |
| ArgumentNullException | 路径是null. |
| GisException | 从文件中读取特征时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | 驱动程序无法打开矢量图层(请参阅CanOpenLayers). |
也可以看看
- class VectorLayer
- class DriverOptions
- class FileDriver
- 命名空间 Aspose.Gis
- 部件 Aspose.GIS
OpenLayer(AbstractPath, DriverOptions)
打开图层进行读取。
public abstract VectorLayer OpenLayer(AbstractPath path, DriverOptions options)
| 范围 | 类型 | 描述 |
|---|---|---|
| path | AbstractPath | 文件的路径。 |
| options | DriverOptions | 特定于驱动程序的选项。 |
返回值
的实例VectorLayer.
例外
| 例外 | (健康)状况 |
|---|---|
| ArgumentException | 此驱动程序的选项对象类型不正确。 |
| ArgumentNullException | 路径是null. |
| GisException | 从文件中读取特征时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | 驱动程序无法打开矢量图层(请参阅CanOpenLayers). |
也可以看看
- class VectorLayer
- class AbstractPath
- class DriverOptions
- class FileDriver
- 命名空间 Aspose.Gis
- 部件 Aspose.GIS