FileDriver.OpenLayer
内容
[
隐藏
]OpenLayer(string)
打开该图层进行读取。
public VectorLayer OpenLayer(string path)
| 参数 | 类型 | 描述 |
|---|---|---|
| path | String | 文件的路径。 |
返回值
一个 VectorLayer 实例。
异常
| 异常 | 条件 |
|---|---|
| ArgumentNullException | 路径为 null。 |
| GisException | 读取文件中的要素时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | 驱动程序无法打开矢量图层(参见 CanOpenLayers)。 |
另见
- class VectorLayer
- class FileDriver
- namespace Aspose.Gis
- assembly 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
- namespace Aspose.Gis
- assembly Aspose.GIS
OpenLayer(string, DriverOptions)
打开该图层进行读取。
public VectorLayer OpenLayer(string path, DriverOptions options)
| 参数 | 类型 | 描述 |
|---|---|---|
| path | String | 文件的路径。 |
| options | DriverOptions | 驱动程序特定的选项。 |
返回值
一个 VectorLayer 实例。
异常
| 异常 | 条件 |
|---|---|
| ArgumentException | Options 对象的类型对该驱动程序不正确。 |
| ArgumentNullException | 路径为 null。 |
| GisException | 读取文件中的要素时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | 驱动程序无法打开矢量图层(参见 CanOpenLayers)。 |
另见
- class VectorLayer
- class DriverOptions
- class FileDriver
- namespace Aspose.Gis
- assembly Aspose.GIS
OpenLayer(AbstractPath, DriverOptions)
打开该图层进行读取。
public abstract VectorLayer OpenLayer(AbstractPath path, DriverOptions options)
| 参数 | 类型 | 描述 |
|---|---|---|
| path | AbstractPath | 文件的路径。 |
| options | DriverOptions | 驱动程序特定的选项。 |
返回值
一个 VectorLayer 实例。
异常
| 异常 | 条件 |
|---|---|
| ArgumentException | Options 对象的类型对该驱动程序不正确。 |
| ArgumentNullException | 路径为 null。 |
| GisException | 读取文件中的要素时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | 驱动程序无法打开矢量图层(参见 CanOpenLayers)。 |
另见
- class VectorLayer
- class AbstractPath
- class DriverOptions
- class FileDriver
- namespace Aspose.Gis
- assembly Aspose.GIS