FileDriver.CreateLayer

CreateLayer(string)

Creates the layer and opens it for appending.

public VectorLayer CreateLayer(string path)
ParameterTypeDescription
pathStringPath to the file.

Return Value

An instance of VectorLayer.

Exceptions

exceptioncondition
ArgumentNullExceptionThe path is null.
GisExceptionError writing the feature to the file.
IOExceptionAn I/O error occurred.
NotSupportedExceptionDriver can not create vector layers (see CanCreateLayers).

See Also


CreateLayer(AbstractPath)

Creates the layer and opens it for appending.

public VectorLayer CreateLayer(AbstractPath path)
ParameterTypeDescription
pathAbstractPathPath to the file.

Return Value

An instance of VectorLayer.

Exceptions

exceptioncondition
ArgumentNullExceptionThe path is null.
GisExceptionError writing the feature to the file.
IOExceptionAn I/O error occurred.
NotSupportedExceptionDriver can not create vector layers (see CanCreateLayers).

See Also


CreateLayer(string, DriverOptions)

Creates the layer and opens it for appending.

public VectorLayer CreateLayer(string path, DriverOptions options)
ParameterTypeDescription
pathStringPath to the file.
optionsDriverOptionsDriver-specific options.

Return Value

An instance of VectorLayer.

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.
NotSupportedExceptionDriver can not create vector layers (see CanCreateLayers).

See Also


CreateLayer(AbstractPath, DriverOptions)

Creates the layer and opens it for appending.

public VectorLayer CreateLayer(AbstractPath path, DriverOptions options)
ParameterTypeDescription
pathAbstractPathPath to the file.
optionsDriverOptionsDriver-specific options.

Return Value

An instance of VectorLayer.

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.
NotSupportedExceptionDriver can not create vector layers (see CanCreateLayers).

See Also


CreateLayer(string, SpatialReferenceSystem)

Creates the layer and opens it for appending.

public VectorLayer CreateLayer(string path, SpatialReferenceSystem spatialReferenceSystem)
ParameterTypeDescription
pathStringPath to the file.
spatialReferenceSystemSpatialReferenceSystemSpatial reference system.

Return Value

An instance of VectorLayer.

Exceptions

exceptioncondition
ArgumentNullExceptionThe path is null.
GisExceptionError writing the feature to 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


CreateLayer(AbstractPath, SpatialReferenceSystem)

Creates the layer and opens it for appending.

public VectorLayer CreateLayer(AbstractPath path, SpatialReferenceSystem spatialReferenceSystem)
ParameterTypeDescription
pathAbstractPathPath to the file.
spatialReferenceSystemSpatialReferenceSystemSpatial reference system.

Return Value

An instance of VectorLayer.

Exceptions

exceptioncondition
ArgumentNullExceptionThe path is null.
GisExceptionError writing the feature to 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


CreateLayer(string, DriverOptions, SpatialReferenceSystem)

Creates the layer and opens it for appending.

public VectorLayer CreateLayer(string path, DriverOptions options, 
    SpatialReferenceSystem spatialReferenceSystem)
ParameterTypeDescription
pathStringPath to the file.
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 writing the feature to 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.
NotSupportedExceptionDriver can not create vector layers (see CanCreateLayers).

See Also


CreateLayer(AbstractPath, DriverOptions, SpatialReferenceSystem)

Creates the layer and opens it for appending.

public abstract VectorLayer CreateLayer(AbstractPath path, DriverOptions options, 
    SpatialReferenceSystem spatialReferenceSystem)
ParameterTypeDescription
pathAbstractPathPath to the file.
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 writing the feature to 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.
NotSupportedExceptionDriver can not create vector layers (see CanCreateLayers).

See Also