Creates a new shapefile or DBF file.
object.Create ( FileName, ShapeType [,pCoordSys] ) |
- FileName
- Required. A String that specifies the complete filepath of the shapefile or .DBF file.
- ShapeType
- Required. A Long that specifies the type of geometric shape associated with the shapefile.
- pCoordSys
- Optional. A CoordSys that specifies the coordinate system associated with the shapefile.
Source is a string specifying the filepath of the shapefile or .DBF file you are creating. If this file already exists, it will be overwritten. ShapeType is a long specifying the ShapeType of the shapefile.
The following ShapeType values are supported: ShapeType is a long specifying the ShapeType of the shapefile. The following ShapeType values are supported:
Value | ShapeType |
---|---|
0 | Null Shape |
1 | Point |
3 | PolyLine |
5 | Polygon |
8 | MultiPoint |
11 | PointZ |
13 | PolyLineZ |
15 | PolygonZ |
18 | MultiPointZ |
21 | PointM |
23 | PolyLineM |
25 | PolygonM |
28 | MuiltPointM |
Pass a value of 0 for ShapeType when creating .DBF files. CoordSys is a CoordSys object specifying the coordinate system of the shapefile you are creating. [Optional].