Dataset.CreateLayer

CreateLayer()

Creates a new vector layer and opens it for appending.

public virtual VectorLayer CreateLayer()

Return Value

A VectorLayer opened for writing.

See Also


CreateLayer(SpatialReferenceSystem)

Creates a new vector layer and opens it for appending.

public virtual VectorLayer CreateLayer(SpatialReferenceSystem spatialReferenceSystem)
ParameterTypeDescription
spatialReferenceSystemSpatialReferenceSystemSpatial reference system of the new layer.

Return Value

A VectorLayer opened for writing.

See Also


CreateLayer(DriverOptions, SpatialReferenceSystem)

Creates a new vector layer and opens it for appending.

public virtual VectorLayer CreateLayer(DriverOptions options, 
    SpatialReferenceSystem spatialReferenceSystem = null)
ParameterTypeDescription
optionsDriverOptionsOpen options.
spatialReferenceSystemSpatialReferenceSystemSpatial reference system of the new layer.

Return Value

A VectorLayer opened for writing.

Exceptions

exceptioncondition
NotSupportedExceptionLayer creation is not supported for this dataset.
IOExceptionAn I/O error occurred.
GisExceptionError while creating the layer.

See Also


CreateLayer(string, SpatialReferenceSystem)

Creates a new vector layer with specified name and opens it for appending.

public virtual VectorLayer CreateLayer(string name, 
    SpatialReferenceSystem spatialReferenceSystem = null)
ParameterTypeDescription
nameStringName of the layer.
spatialReferenceSystemSpatialReferenceSystemSpatial reference system of the new layer.

Return Value

A VectorLayer opened for writing.

Exceptions

exceptioncondition
NotSupportedExceptionLayer creation is not supported for this dataset.
IOExceptionAn I/O error occurred.
GisExceptionError while creating the layer.

See Also


CreateLayer(string, DriverOptions, SpatialReferenceSystem)

Creates a new vector layer with specified name and opens it for appending.

public virtual VectorLayer CreateLayer(string name, DriverOptions options, 
    SpatialReferenceSystem spatialReferenceSystem = null)
ParameterTypeDescription
nameStringName of the layer.
optionsDriverOptionsOpen options.
spatialReferenceSystemSpatialReferenceSystemSpatial reference system of the new layer.

Return Value

A VectorLayer opened for writing.

Exceptions

exceptioncondition
NotSupportedExceptionLayer creation is not supported for this dataset.
IOExceptionAn I/O error occurred.
GisExceptionError while creating the layer.

See Also