Convert

VectorLayer.Convert method (1 of 4)

Convert a layer to a different format.

public static void Convert(string sourcePath, FileDriver sourceDriver, string destinationPath, 
    FileDriver destinationDriver)
Parameter Type Description
sourcePath String Path to the layer that will be converted.
sourceDriver FileDriver The format driver for the source layer.
destinationPath String Path to the layer that will created as a result of conversion.
destinationDriver FileDriver The format driver for the destination layer.

Exceptions

exception condition
ArgumentNullException Either of paths is null.

See Also


VectorLayer.Convert method (2 of 4)

Convert a layer to a different format.

public static void Convert(AbstractPath sourcePath, FileDriver sourceDriver, 
    AbstractPath destinationPath, FileDriver destinationDriver)
Parameter Type Description
sourcePath AbstractPath Path to the layer that will be converted.
sourceDriver FileDriver The format driver for the source layer.
destinationPath AbstractPath Path to the layer that will created as a result of conversion.
destinationDriver FileDriver The format driver for the destination layer.

Exceptions

exception condition
ArgumentNullException Either of paths is null.

See Also


VectorLayer.Convert method (3 of 4)

Convert a layer to a different format.

public static void Convert(string sourcePath, FileDriver sourceDriver, string destinationPath, 
    FileDriver destinationDriver, ConversionOptions options)
Parameter Type Description
sourcePath String Path to the layer that will be converted.
sourceDriver FileDriver The format driver for the source layer.
destinationPath String Path to the layer that will created as a result of conversion.
destinationDriver FileDriver The format driver for the destination layer.
options ConversionOptions Options for the conversion procedure.

Exceptions

exception condition
ArgumentNullException Either of paths 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 specified in options is not supported by destinationDriver.
TransformationException Transformation of features geometry from source spatial reference system to target spatial reference system failed.

See Also


VectorLayer.Convert method (4 of 4)

Convert a layer to a different format.

public static void Convert(AbstractPath sourcePath, FileDriver sourceDriver, 
    AbstractPath destinationPath, FileDriver destinationDriver, ConversionOptions options)
Parameter Type Description
sourcePath AbstractPath Path to the layer that will be converted.
sourceDriver FileDriver The format driver for the source layer.
destinationPath AbstractPath Path to the layer that will created as a result of conversion.
destinationDriver FileDriver The format driver for the destination layer.
options ConversionOptions Options for the conversion procedure.

Exceptions

exception condition
ArgumentNullException Either of paths 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 specified in options is not supported by destinationDriver.
TransformationException Transformation of features geometry from source spatial reference system to target spatial reference system failed.

See Also