VectorLayer.Create

Create(string, FileDriver)

Creates the layer and opens it for adding new features.

public static VectorLayer Create(string path, FileDriver driver)
ParameterTypeDescription
pathStringPath to the file.
driverFileDriverDriver to use.

Return Value

A write-only layer.

Exceptions

exceptioncondition
ArgumentNullExceptionThe path is null.
ArgumentExceptionOptions object has an incorrect type for this driver.
GisExceptionError writing the feature to the file.
IOExceptionAn I/O error occurred.

See Also


Create(string, FileDriver, DriverOptions)

Creates the layer and opens it for adding new features.

public static VectorLayer Create(string path, FileDriver driver, DriverOptions options)
ParameterTypeDescription
pathStringPath to the file.
driverFileDriverDriver to use.
optionsDriverOptionsDriver-specific options.

Return Value

A write-only layer.

Exceptions

exceptioncondition
ArgumentNullExceptionThe path is null.
ArgumentExceptionOptions object has an incorrect type for this driver.
GisExceptionError writing the feature to the file.
IOExceptionAn I/O error occurred.

See Also


Create(AbstractPath, FileDriver)

Creates the layer and opens it for adding new features.

public static VectorLayer Create(AbstractPath path, FileDriver driver)
ParameterTypeDescription
pathAbstractPathPath to the file.
driverFileDriverDriver to use.

Return Value

A write-only layer.

Exceptions

exceptioncondition
ArgumentNullExceptionThe path is null.
ArgumentExceptionOptions object has an incorrect type for this driver.
GisExceptionError writing the feature to the file.
IOExceptionAn I/O error occurred.

See Also


Create(AbstractPath, FileDriver, DriverOptions)

Creates the layer and opens it for adding new features.

public static VectorLayer Create(AbstractPath path, FileDriver driver, DriverOptions options)
ParameterTypeDescription
pathAbstractPathPath to the file.
driverFileDriverDriver to use.
optionsDriverOptionsDriver-specific options.

Return Value

A write-only layer.

Exceptions

exceptioncondition
ArgumentNullExceptionThe path is null.
ArgumentExceptionOptions object has an incorrect type for this driver.
GisExceptionError writing the feature to the file.
IOExceptionAn I/O error occurred.

See Also


Create(string, FileDriver, SpatialReferenceSystem)

Creates the layer and opens it for appending.

public static VectorLayer Create(string path, FileDriver driver, 
    SpatialReferenceSystem spatialReferenceSystem)
ParameterTypeDescription
pathStringPath to the file.
driverFileDriverDriver to use.
spatialReferenceSystemSpatialReferenceSystemSpatial reference system.

Return Value

An instance of VectorLayer.

Exceptions

exceptioncondition
ArgumentNullExceptionThe path is null.
GisExceptionError reading or writing the feature to/from the file.
IOExceptionAn I/O error occurred.
NotSupportedExceptionSpatial reference system is not supported by the driver. Use SupportsSpatialReferenceSystem to check whether spatial reference system is supported.

See Also


Create(AbstractPath, FileDriver, SpatialReferenceSystem)

Creates the layer and opens it for appending.

public static VectorLayer Create(AbstractPath path, FileDriver driver, 
    SpatialReferenceSystem spatialReferenceSystem)
ParameterTypeDescription
pathAbstractPathPath to the file.
driverFileDriverDriver to use.
spatialReferenceSystemSpatialReferenceSystemSpatial reference system.

Return Value

An instance of VectorLayer.

Exceptions

exceptioncondition
ArgumentNullExceptionThe path is null.
GisExceptionError reading or writing the feature to/from the file.
IOExceptionAn I/O error occurred.
NotSupportedExceptionSpatial reference system is not supported by the driver. Use SupportsSpatialReferenceSystem to check whether spatial reference system is supported.

See Also


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)
ParameterTypeDescription
pathStringPath to the file.
driverFileDriverDriver to use.
optionsDriverOptionsDriver-specific options.
spatialReferenceSystemSpatialReferenceSystemSpatial reference system.

Return Value

An instance of VectorLayer.

Exceptions

exceptioncondition
ArgumentNullExceptionThe path is null.
ArgumentExceptionOptions object has an incorrect type for this driver.
GisExceptionError reading or writing the feature to/from the file.
IOExceptionAn I/O error occurred.
NotSupportedExceptionSpatial reference system is not supported by the driver. Use SupportsSpatialReferenceSystem to check whether spatial reference system is supported.

See Also


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)
ParameterTypeDescription
pathAbstractPathPath to the file.
driverFileDriverDriver to use.
optionsDriverOptionsDriver-specific options.
spatialReferenceSystemSpatialReferenceSystemSpatial reference system.

Return Value

An instance of VectorLayer.

Exceptions

exceptioncondition
ArgumentNullExceptionThe path is null.
ArgumentExceptionOptions object has an incorrect type for this driver.
GisExceptionError reading or writing the feature to/from the file.
IOExceptionAn I/O error occurred.
NotSupportedExceptionSpatial reference system is not supported by the driver. Use SupportsSpatialReferenceSystem to check whether spatial reference system is supported.

See Also