Create

VectorLayer.Create method (1 of 8)

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


VectorLayer.Create method (2 of 8)

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


VectorLayer.Create method (3 of 8)

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


VectorLayer.Create method (4 of 8)

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


VectorLayer.Create method (5 of 8)

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


VectorLayer.Create method (6 of 8)

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


VectorLayer.Create method (7 of 8)

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


VectorLayer.Create method (8 of 8)

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