Creates a ShapeFileWriter class
Namespace:
EGIS.ShapeFileLibAssembly: EGIS.ShapeFileLib (in EGIS.ShapeFileLib.dll)
Syntax
Visual Basic |
---|
Public Shared Function CreateWriter ( _ baseDir As String, _ shapeFileName As String, _ shapeFileType As ShapeType, _ dataFields As DbfFieldDesc() _ ) As ShapeFileWriter |
C# |
---|
public static ShapeFileWriter CreateWriter( string baseDir, string shapeFileName, ShapeType shapeFileType, DbfFieldDesc[] dataFields ) |
Visual C++ |
---|
public: static ShapeFileWriter^ CreateWriter( String^ baseDir, String^ shapeFileName, ShapeType shapeFileType, array<DbfFieldDesc>^ dataFields ) |
JavaScript |
---|
EGIS.ShapeFileLib.ShapeFileWriter.createWriter = function(baseDir, shapeFileName, shapeFileType, dataFields); |
Parameters
- baseDir
- Type: System..::..String
The path to the base directory where the shape file should be created
- shapeFileName
- Type: System..::..String
The name of the shapefile to create
- shapeFileType
- Type: EGIS.ShapeFileLib..::..ShapeType
The ShapeType of the shapefile
- dataFields
- Type: array<EGIS.ShapeFileLib..::..DbfFieldDesc>[]()[][]
array of DbfFieldDesc objects describing the fields to be created in the shape file's DBF file
Return Value
Remarks
To create a ShapeFileWriter to create a polygon shapefile pass in ShapeType.Polygon
To create a ShapeFileWriter to create a point shapefile pass in ShapeType.Point
To create a ShapeFileWriter to create a polyline shapefile pass in ShapeType.Polyline