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