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