FileDriver.OpenLayer
Contents
[
Hide
]OpenLayer(string)
Opens the layer for reading.
public VectorLayer OpenLayer(string path)
| Parameter | Type | Description |
|---|---|---|
| path | String | Path to the file. |
Return Value
An instance of VectorLayer.
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | The path is null. |
| GisException | Error reading the feature from the file. |
| IOException | An I/O error occurred. |
| NotSupportedException | Driver can not open vector layers (see CanOpenLayers). |
See Also
- class VectorLayer
- class FileDriver
- namespace Aspose.Gis
- assembly Aspose.GIS
OpenLayer(AbstractPath)
Opens the layer for reading.
public VectorLayer OpenLayer(AbstractPath path)
| Parameter | Type | Description |
|---|---|---|
| path | AbstractPath | Path to the file. |
Return Value
An instance of VectorLayer.
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | The path is null. |
| GisException | Error reading the feature from the file. |
| IOException | An I/O error occurred. |
| NotSupportedException | Driver can not open vector layers (see CanOpenLayers). |
See Also
- class VectorLayer
- class AbstractPath
- class FileDriver
- namespace Aspose.Gis
- assembly Aspose.GIS
OpenLayer(string, DriverOptions)
Opens the layer for reading.
public VectorLayer OpenLayer(string path, DriverOptions options)
| Parameter | Type | Description |
|---|---|---|
| path | String | Path to the file. |
| options | DriverOptions | Driver-specific options. |
Return Value
An instance of VectorLayer.
Exceptions
| exception | condition |
|---|---|
| ArgumentException | Options object has an incorrect type for this driver. |
| ArgumentNullException | The path is null. |
| GisException | Error reading the feature from the file. |
| IOException | An I/O error occurred. |
| NotSupportedException | Driver can not open vector layers (see CanOpenLayers). |
See Also
- class VectorLayer
- class DriverOptions
- class FileDriver
- namespace Aspose.Gis
- assembly Aspose.GIS
OpenLayer(AbstractPath, DriverOptions)
Opens the layer for reading.
public abstract VectorLayer OpenLayer(AbstractPath path, DriverOptions options)
| Parameter | Type | Description |
|---|---|---|
| path | AbstractPath | Path to the file. |
| options | DriverOptions | Driver-specific options. |
Return Value
An instance of VectorLayer.
Exceptions
| exception | condition |
|---|---|
| ArgumentException | Options object has an incorrect type for this driver. |
| ArgumentNullException | The path is null. |
| GisException | Error reading the feature from the file. |
| IOException | An I/O error occurred. |
| NotSupportedException | Driver can not open vector layers (see CanOpenLayers). |
See Also
- class VectorLayer
- class AbstractPath
- class DriverOptions
- class FileDriver
- namespace Aspose.Gis
- assembly Aspose.GIS