FileDriver.CreateLayer
内容
[
隐藏
]CreateLayer(string)
创建图层并以追加方式打开它。
public VectorLayer CreateLayer(string path)
| 参数 | 类型 | 描述 |
|---|---|---|
| path | String | 文件的路径。 |
返回值
一个 VectorLayer 实例。
异常
| 异常 | 条件 |
|---|---|
| ArgumentNullException | 路径为 null。 |
| GisException | 写入要素到文件时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | 驱动程序无法创建矢量图层(参见 CanCreateLayers)。 |
另见
- class VectorLayer
- class FileDriver
- namespace Aspose.Gis
- assembly 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
- namespace Aspose.Gis
- assembly Aspose.GIS
CreateLayer(string, DriverOptions)
创建图层并以追加方式打开它。
public VectorLayer CreateLayer(string path, DriverOptions options)
| 参数 | 类型 | 描述 |
|---|---|---|
| path | String | 文件的路径。 |
| options | DriverOptions | 驱动程序特定的选项。 |
返回值
一个 VectorLayer 实例。
异常
| 异常 | 条件 |
|---|---|
| ArgumentNullException | 路径为 null。 |
| ArgumentException | Options 对象的类型对该驱动程序不正确。 |
| GisException | 写入要素到文件时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | 驱动程序无法创建矢量图层(参见 CanCreateLayers)。 |
另见
- class VectorLayer
- class DriverOptions
- class FileDriver
- namespace Aspose.Gis
- assembly Aspose.GIS
CreateLayer(AbstractPath, DriverOptions)
创建图层并以追加方式打开它。
public VectorLayer CreateLayer(AbstractPath path, DriverOptions options)
| 参数 | 类型 | 描述 |
|---|---|---|
| path | AbstractPath | 文件的路径。 |
| options | DriverOptions | 驱动程序特定的选项。 |
返回值
一个 VectorLayer 实例。
异常
| 异常 | 条件 |
|---|---|
| ArgumentNullException | 路径为 null。 |
| ArgumentException | Options 对象的类型对该驱动程序不正确。 |
| GisException | 写入要素到文件时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | 驱动程序无法创建矢量图层(参见 CanCreateLayers)。 |
另见
- class VectorLayer
- class AbstractPath
- class DriverOptions
- class FileDriver
- namespace Aspose.Gis
- assembly 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
- namespace Aspose.Gis
- assembly 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
- namespace Aspose.Gis
- assembly 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 | Options 对象的类型对该驱动程序不正确。 |
| GisException | 写入要素到文件时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | 驱动程序不支持空间参考系统。使用 SupportsSpatialReferenceSystem 检查空间参考系统是否受支持。 |
| NotSupportedException | 驱动程序无法创建矢量图层(参见 CanCreateLayers)。 |
另见
- class VectorLayer
- class DriverOptions
- class SpatialReferenceSystem
- class FileDriver
- namespace Aspose.Gis
- assembly 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 | Options 对象的类型对该驱动程序不正确。 |
| GisException | 写入要素到文件时出错。 |
| IOException | 发生 I/O 错误。 |
| NotSupportedException | 驱动程序不支持空间参考系统。使用 SupportsSpatialReferenceSystem 检查空间参考系统是否受支持。 |
| NotSupportedException | 驱动程序无法创建矢量图层(参见 CanCreateLayers)。 |
另见
- class VectorLayer
- class AbstractPath
- class DriverOptions
- class SpatialReferenceSystem
- class FileDriver
- namespace Aspose.Gis
- assembly Aspose.GIS