VectorLayer.Open
Contents
[
Hide
]Open(string, FileDriver)
Open the layer for reading.
public static VectorLayer Open(string path, FileDriver driver)
Parameter | Type | Description |
---|---|---|
path | String | Path to the file. |
driver | FileDriver | Driver to use. |
Return Value
A read-only layer.
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. |
See Also
- class FileDriver
- class VectorLayer
- namespace Aspose.Gis
- assembly Aspose.GIS
Open(AbstractPath, FileDriver)
Open the layer for reading.
public static VectorLayer Open(AbstractPath path, FileDriver driver)
Parameter | Type | Description |
---|---|---|
path | AbstractPath | Path to the file. |
driver | FileDriver | Driver to use. |
Return Value
A read-only layer.
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. |
See Also
- class AbstractPath
- class FileDriver
- class VectorLayer
- namespace Aspose.Gis
- assembly Aspose.GIS
Open(string, FileDriver, DriverOptions)
Open the layer for reading.
public static VectorLayer Open(string path, FileDriver driver, DriverOptions options)
Parameter | Type | Description |
---|---|---|
path | String | Path to the file. |
driver | FileDriver | Driver to use. |
options | DriverOptions | Driver-specific options. |
Return Value
A read-only layer.
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. |
See Also
- class FileDriver
- class DriverOptions
- class VectorLayer
- namespace Aspose.Gis
- assembly Aspose.GIS
Open(AbstractPath, FileDriver, DriverOptions)
Open the layer for reading.
public static VectorLayer Open(AbstractPath path, FileDriver driver, DriverOptions options)
Parameter | Type | Description |
---|---|---|
path | AbstractPath | Path to the file. |
driver | FileDriver | Driver to use. |
options | DriverOptions | Driver-specific options. |
Return Value
A read-only layer.
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. |
See Also
- class AbstractPath
- class FileDriver
- class DriverOptions
- class VectorLayer
- namespace Aspose.Gis
- assembly Aspose.GIS