MapWinGIS:Shapefile CreateNewWithShapeID

This is a back-up of the WIKI.
Not all links might work
We're working on a new wiki.

Main Page | Recent changes | View source | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy


CreateNewWithShapeID

Description: This method is doing the same as CreateNew but is also create a field (mwShapeID) to make the shapefile valid.

After a shapefile is created, the attribute table and shapefile are automatically in editing mode.

If you pass NULL as the ShapefileName an in-memory shapefile will be created.


VB.NET Usage

Function CreateNewWithShapeID(ShapefileName As String, ShapefileType As MapWinGIS.ShpfileType) As Boolean

            Parameters

ShapefileName String
ShapefileType MapWinGIS.ShpfileType
Return Value Boolean

VB.NET Sample Code



C# Usage

bool CreateNewWithShapeID(string ShapefileName, MapWinGIS.ShpfileType ShapefileType)

            Parameters

ShapefileName string
ShapefileType MapWinGIS.ShpfileType
Return Value bool

C# Sample Code



VB 6 Usage

Function CreateNewWithShapeID(ShapefileName As String, ShapefileType As MapWinGIS.ShpfileType) As Boolean

            Parameters

ShapefileName String
ShapefileType MapWinGIS.ShpfileType
Return Value Boolean

VB 6 Sample Code


Back to MapWinGIS.Shapefile

Retrieved from "http://mapwindow.org/wiki/index.php/MapWinGIS:Shapefile_CreateNewWithShapeID"

This page has been accessed 1,629 times. This page was last modified on 14 April 2010, at 08:18.