MapWinGIS:Shapefile Open

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

Open

Opens the specified shapefile.


VB.NET Usage

Function Open(ShapefileName As String, Optional cBack As MapWinGIS.ICallback) As Boolean

            Parameters

ShapefileName

The filename of the shapefile to be opened.
cBack Optional. The ICallback object which will recieve the progress and error messages while the shapefile is being opened.
ReturnValue A boolean value representing the success or failure of opening the shapefile.

Sample Code

    Private Sub OpenShapefile()
        Dim sf As New MapWinGIS.Shapefile()
        'Open the shapefile
        sf.Open("C:\test.shp")
        'Close the shapefile
        sf.Close()
    End Sub
  

VB 6 Usage
Function Open(ShapefileName As String, Optional cBack As ICallback) As Boolean
            Parameters

ShapefileName

The filename of the shapefile to be opened.
cBack Optional. The ICallback object which will recieve the progress and error messages while the shapefile is being opened.
ReturnValue A boolean value representing the success or failure of opening the shapefile.

Sample Code

    Private Sub OpenShapefile()
        Dim sf As New MapWinGIS.Shapefile
        'Open the shapefile
        sf.Open ("C:\test.shp")
        'Close the shapefile
        sf.Close
    End Sub

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

This page has been accessed 4,512 times. This page was last modified on 9 November 2005, at 18:28.