This code demonstrates how to open an existing shapefile as a new feature set using the DotSpatial.Data library.

Imports System.Windows.Forms
Imports DotSpatial.Data

Private Sub button1_Click(sender As Object, e As EventArgs)
	' Pass in the file path for the standard shapefile that will be opened
        Dim fs As IFeatureSet = FeatureSet.Open("C:\\Temp\\roads.shp")
End Sub

Last edited Jan 2, 2014 at 11:35 AM by mogikanin, version 5