VectorLayer.Create
Contents
[
Hide
]Create(string, FileDriver)
Creates the layer and opens it for adding new features.
public static VectorLayer Create(string path, FileDriver driver)
Parameter | Type | Description |
---|---|---|
path | String | Path to the file. |
driver | FileDriver | Driver to use. |
Return Value
A write-only layer.
Exceptions
exception | condition |
---|---|
ArgumentNullException | The path is null . |
ArgumentException | Options object has an incorrect type for this driver. |
GisException | Error writing the feature to the file. |
IOException | An I/O error occurred. |
See Also
- class FileDriver
- class VectorLayer
- namespace Aspose.Gis
- assembly Aspose.GIS
Create(string, FileDriver, DriverOptions)
Creates the layer and opens it for adding new features.
public static VectorLayer Create(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 write-only layer.
Exceptions
exception | condition |
---|---|
ArgumentNullException | The path is null . |
ArgumentException | Options object has an incorrect type for this driver. |
GisException | Error writing the feature to the file. |
IOException | An I/O error occurred. |
See Also
- class FileDriver
- class DriverOptions
- class VectorLayer
- namespace Aspose.Gis
- assembly Aspose.GIS
Create(AbstractPath, FileDriver)
Creates the layer and opens it for adding new features.
public static VectorLayer Create(AbstractPath path, FileDriver driver)
Parameter | Type | Description |
---|---|---|
path | AbstractPath | Path to the file. |
driver | FileDriver | Driver to use. |
Return Value
A write-only layer.
Exceptions
exception | condition |
---|---|
ArgumentNullException | The path is null . |
ArgumentException | Options object has an incorrect type for this driver. |
GisException | Error writing the feature to the file. |
IOException | An I/O error occurred. |
See Also
- class AbstractPath
- class FileDriver
- class VectorLayer
- namespace Aspose.Gis
- assembly Aspose.GIS
Create(AbstractPath, FileDriver, DriverOptions)
Creates the layer and opens it for adding new features.
public static VectorLayer Create(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 write-only layer.
Exceptions
exception | condition |
---|---|
ArgumentNullException | The path is null . |
ArgumentException | Options object has an incorrect type for this driver. |
GisException | Error writing the feature to the file. |
IOException | An I/O error occurred. |
See Also
- class AbstractPath
- class FileDriver
- class DriverOptions
- class VectorLayer
- namespace Aspose.Gis
- assembly Aspose.GIS
Create(string, FileDriver, SpatialReferenceSystem)
Creates the layer and opens it for appending.
public static VectorLayer Create(string path, FileDriver driver,
SpatialReferenceSystem spatialReferenceSystem)
Parameter | Type | Description |
---|---|---|
path | String | Path to the file. |
driver | FileDriver | Driver to use. |
spatialReferenceSystem | SpatialReferenceSystem | Spatial reference system. |
Return Value
An instance of VectorLayer
.
Exceptions
exception | condition |
---|---|
ArgumentNullException | The path is null . |
GisException | Error reading or writing the feature to/from the file. |
IOException | An I/O error occurred. |
NotSupportedException | Spatial reference system is not supported by the driver. Use SupportsSpatialReferenceSystem to check whether spatial reference system is supported. |
See Also
- class FileDriver
- class SpatialReferenceSystem
- class VectorLayer
- namespace Aspose.Gis
- assembly Aspose.GIS
Create(AbstractPath, FileDriver, SpatialReferenceSystem)
Creates the layer and opens it for appending.
public static VectorLayer Create(AbstractPath path, FileDriver driver,
SpatialReferenceSystem spatialReferenceSystem)
Parameter | Type | Description |
---|---|---|
path | AbstractPath | Path to the file. |
driver | FileDriver | Driver to use. |
spatialReferenceSystem | SpatialReferenceSystem | Spatial reference system. |
Return Value
An instance of VectorLayer
.
Exceptions
exception | condition |
---|---|
ArgumentNullException | The path is null . |
GisException | Error reading or writing the feature to/from the file. |
IOException | An I/O error occurred. |
NotSupportedException | Spatial reference system is not supported by the driver. Use SupportsSpatialReferenceSystem to check whether spatial reference system is supported. |
See Also
- class AbstractPath
- class FileDriver
- class SpatialReferenceSystem
- class VectorLayer
- namespace Aspose.Gis
- assembly Aspose.GIS
Create(string, FileDriver, DriverOptions, SpatialReferenceSystem)
Creates the layer and opens it for appending.
public static VectorLayer Create(string path, FileDriver driver, DriverOptions options,
SpatialReferenceSystem spatialReferenceSystem)
Parameter | Type | Description |
---|---|---|
path | String | Path to the file. |
driver | FileDriver | Driver to use. |
options | DriverOptions | Driver-specific options. |
spatialReferenceSystem | SpatialReferenceSystem | Spatial reference system. |
Return Value
An instance of VectorLayer
.
Exceptions
exception | condition |
---|---|
ArgumentNullException | The path is null . |
ArgumentException | Options object has an incorrect type for this driver. |
GisException | Error reading or writing the feature to/from the file. |
IOException | An I/O error occurred. |
NotSupportedException | Spatial reference system is not supported by the driver. Use SupportsSpatialReferenceSystem to check whether spatial reference system is supported. |
See Also
- class FileDriver
- class DriverOptions
- class SpatialReferenceSystem
- class VectorLayer
- namespace Aspose.Gis
- assembly Aspose.GIS
Create(AbstractPath, FileDriver, DriverOptions, SpatialReferenceSystem)
Creates the layer and opens it for appending.
public static VectorLayer Create(AbstractPath path, FileDriver driver, DriverOptions options,
SpatialReferenceSystem spatialReferenceSystem)
Parameter | Type | Description |
---|---|---|
path | AbstractPath | Path to the file. |
driver | FileDriver | Driver to use. |
options | DriverOptions | Driver-specific options. |
spatialReferenceSystem | SpatialReferenceSystem | Spatial reference system. |
Return Value
An instance of VectorLayer
.
Exceptions
exception | condition |
---|---|
ArgumentNullException | The path is null . |
ArgumentException | Options object has an incorrect type for this driver. |
GisException | Error reading or writing the feature to/from the file. |
IOException | An I/O error occurred. |
NotSupportedException | Spatial reference system is not supported by the driver. Use SupportsSpatialReferenceSystem to check whether spatial reference system is supported. |
See Also
- class AbstractPath
- class FileDriver
- class DriverOptions
- class SpatialReferenceSystem
- class VectorLayer
- namespace Aspose.Gis
- assembly Aspose.GIS