FileDriver.CreateLayer
内容
[
隐藏
]CreateLayer(string)
创建图层并打开它以进行附加。
public VectorLayer CreateLayer(string path)
| 范围 | 类型 | 描述 |
|---|---|---|
| path | String | 文件的路径。 |
返回值
的实例VectorLayer.
例外
| 例外 | (健康)状况 |
|---|---|
| ArgumentNullException | 路径是null. |
| GisException | 将特征写入文件时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | 驱动程序无法创建矢量图层(请参阅CanCreateLayers). |
也可以看看
- class VectorLayer
- class FileDriver
- 命名空间 Aspose.Gis
- 部件 Aspose.GIS
CreateLayer(AbstractPath)
创建图层并打开它以进行附加。
public VectorLayer CreateLayer(AbstractPath path)
| 范围 | 类型 | 描述 |
|---|---|---|
| path | AbstractPath | 文件的路径。 |
返回值
的实例VectorLayer.
例外
| 例外 | (健康)状况 |
|---|---|
| ArgumentNullException | 路径是null. |
| GisException | 将特征写入文件时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | 驱动程序无法创建矢量图层(请参阅CanCreateLayers). |
也可以看看
- class VectorLayer
- class AbstractPath
- class FileDriver
- 命名空间 Aspose.Gis
- 部件 Aspose.GIS
CreateLayer(string, DriverOptions)
创建图层并打开它以进行附加。
public VectorLayer CreateLayer(string path, DriverOptions options)
| 范围 | 类型 | 描述 |
|---|---|---|
| path | String | 文件的路径。 |
| options | DriverOptions | 特定于驱动程序的选项。 |
返回值
的实例VectorLayer.
例外
| 例外 | (健康)状况 |
|---|---|
| ArgumentNullException | 路径是null. |
| ArgumentException | 此驱动程序的选项对象类型不正确。 |
| GisException | 将特征写入文件时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | 驱动程序无法创建矢量图层(请参阅CanCreateLayers). |
也可以看看
- class VectorLayer
- class DriverOptions
- class FileDriver
- 命名空间 Aspose.Gis
- 部件 Aspose.GIS
CreateLayer(AbstractPath, DriverOptions)
创建图层并打开它以进行附加。
public VectorLayer CreateLayer(AbstractPath path, DriverOptions options)
| 范围 | 类型 | 描述 |
|---|---|---|
| path | AbstractPath | 文件的路径。 |
| options | DriverOptions | 特定于驱动程序的选项。 |
返回值
的实例VectorLayer.
例外
| 例外 | (健康)状况 |
|---|---|
| ArgumentNullException | 路径是null. |
| ArgumentException | 此驱动程序的选项对象类型不正确。 |
| GisException | 将特征写入文件时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | 驱动程序无法创建矢量图层(请参阅CanCreateLayers). |
也可以看看
- class VectorLayer
- class AbstractPath
- class DriverOptions
- class FileDriver
- 命名空间 Aspose.Gis
- 部件 Aspose.GIS
CreateLayer(string, SpatialReferenceSystem)
创建图层并打开它以进行附加。
public VectorLayer CreateLayer(string path, SpatialReferenceSystem spatialReferenceSystem)
| 范围 | 类型 | 描述 |
|---|---|---|
| path | String | 文件的路径。 |
| spatialReferenceSystem | SpatialReferenceSystem | 空间参考系统。 |
返回值
的实例VectorLayer.
例外
| 例外 | (健康)状况 |
|---|---|
| ArgumentNullException | 路径是null. |
| GisException | 将特征写入文件时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | 驱动程序不支持空间参考系统。 使用SupportsSpatialReferenceSystem检查是否支持空间参考系统。 |
也可以看看
- class VectorLayer
- class SpatialReferenceSystem
- class FileDriver
- 命名空间 Aspose.Gis
- 部件 Aspose.GIS
CreateLayer(AbstractPath, SpatialReferenceSystem)
创建图层并打开它以进行附加。
public VectorLayer CreateLayer(AbstractPath path, SpatialReferenceSystem spatialReferenceSystem)
| 范围 | 类型 | 描述 |
|---|---|---|
| path | AbstractPath | 文件的路径。 |
| spatialReferenceSystem | SpatialReferenceSystem | 空间参考系统。 |
返回值
的实例VectorLayer.
例外
| 例外 | (健康)状况 |
|---|---|
| ArgumentNullException | 路径是null. |
| GisException | 将特征写入文件时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | 驱动程序不支持空间参考系统。 使用SupportsSpatialReferenceSystem检查是否支持空间参考系统。 |
也可以看看
- class VectorLayer
- class AbstractPath
- class SpatialReferenceSystem
- class FileDriver
- 命名空间 Aspose.Gis
- 部件 Aspose.GIS
CreateLayer(string, DriverOptions, SpatialReferenceSystem)
创建图层并打开它以进行附加。
public VectorLayer CreateLayer(string path, DriverOptions options,
SpatialReferenceSystem spatialReferenceSystem)
| 范围 | 类型 | 描述 |
|---|---|---|
| path | String | 文件的路径。 |
| options | DriverOptions | 特定于驱动程序的选项。 |
| spatialReferenceSystem | SpatialReferenceSystem | 空间参考系统。 |
返回值
的实例VectorLayer.
例外
| 例外 | (健康)状况 |
|---|---|
| ArgumentNullException | 路径是null. |
| ArgumentException | 此驱动程序的选项对象类型不正确。 |
| GisException | 将特征写入文件时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | 驱动程序不支持空间参考系统。 使用SupportsSpatialReferenceSystem检查是否支持空间参考系统。 |
| NotSupportedException | 驱动程序无法创建矢量图层(请参阅CanCreateLayers). |
也可以看看
- class VectorLayer
- class DriverOptions
- class SpatialReferenceSystem
- class FileDriver
- 命名空间 Aspose.Gis
- 部件 Aspose.GIS
CreateLayer(AbstractPath, DriverOptions, SpatialReferenceSystem)
创建图层并打开它以进行附加。
public abstract VectorLayer CreateLayer(AbstractPath path, DriverOptions options,
SpatialReferenceSystem spatialReferenceSystem)
| 范围 | 类型 | 描述 |
|---|---|---|
| path | AbstractPath | 文件的路径。 |
| options | DriverOptions | 特定于驱动程序的选项。 |
| spatialReferenceSystem | SpatialReferenceSystem | 空间参考系统。 |
返回值
的实例VectorLayer.
例外
| 例外 | (健康)状况 |
|---|---|
| ArgumentNullException | 路径是null. |
| ArgumentException | 此驱动程序的选项对象类型不正确。 |
| GisException | 将特征写入文件时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | 驱动程序不支持空间参考系统。 使用SupportsSpatialReferenceSystem检查是否支持空间参考系统。 |
| NotSupportedException | 驱动程序无法创建矢量图层(请参阅CanCreateLayers). |
也可以看看
- class VectorLayer
- class AbstractPath
- class DriverOptions
- class SpatialReferenceSystem
- class FileDriver
- 命名空间 Aspose.Gis
- 部件 Aspose.GIS