Collapse All Expand All Code: All Code: Multiple Code: Visual Basic Code: C# Code: Visual C++ Code: JavaScript

Visual Basic
C#
Visual C++
JavaScript

Easy GIS .NET API Reference
ShapeFileWriter..::.CreateWriter Method
ShapeFileWriter Class See Also Send Feedback

Creates a ShapeFileWriter class

Namespace: EGIS.ShapeFileLib
Assembly: EGIS.ShapeFileLib (in EGIS.ShapeFileLib.dll)

# Syntax

Visual Basic (Declaration)
    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
    )

#### 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

# See Also

ShapeFileWriter Class
EGIS.ShapeFileLib Namespace