1 / 3

Add Map Layer

Add Map Layer. Jan R ůžička Jan.ruzicka @vsb.cz. Add Layer / 1. OpenFileDialog1.Filter = "ESRI Shapefile|*.shp“ O penFileDialog1.Title = "Add Layer“ OpenFileDialog1.ShowDialog() Dim path As String = OpenFileDialog1.FileName() Dim ll As Integer = path.LastIndexOf("")

bairn
Download Presentation

Add Map Layer

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Add Map Layer Jan Růžička Jan.ruzicka@vsb.cz

  2. Add Layer / 1 OpenFileDialog1.Filter = "ESRI Shapefile|*.shp“ OpenFileDialog1.Title = "Add Layer“ OpenFileDialog1.ShowDialog() Dim path As String = OpenFileDialog1.FileName() Dim ll As Integer = path.LastIndexOf("\") Dim directory As String Dim layername As String directory = path.Substring(0, ll + 1) layername = path.Substring(ll + 1, path.Length - ll - 5)

  3. Add Layer / 2 Dim ds As New MapObjects2.DataConnection Dim g As MapObjects2.GeoDataset Dim l As New MapObjects2.MapLayer ds.Database = directory g = ds.FindGeoDataset(layername) l.GeoDataset = g AxMap1.Layers.Add(l)

More Related