Membuka file ESRI di MapXtreme
MapXtreme bisa membuka atau menambahkan tabel dari shapefile secara langsung.
Langkang-langkah untuk membuka file ESRI (.shp)
Contoh : VB.NET
Dim ti As TableInfoShapefile = New TableInfoShapefile("EsriShape") ti.TablePath = "c:\Data\ESRI\Countries_region.shp" Dim CSysFactory As CoordSysFactory = Session.Current.CoordSysFactory ' data is stored in Robinson Dim coordSys As CoordSys = CSysFactory.CreateCoordSys("mapinfo:coordsys 12,62,7,0") ti.Columns.Add(ColumnFactory.CreateFeatureGeometryColumn(coordSys)) ti.Columns.Add(ColumnFactory.CreateStringColumn("Country", 30)) ti.Columns.Add(ColumnFactory.CreateStringColumn("Capital", 30)) ti.Columns.Add(ColumnFactory.CreateDecimalColumn("Pop_1994", 11, 0)) ti.Columns.Add(ColumnFactory.CreateDoubleColumn("Pop_Grw_Rt")) ti.Columns.Add(ColumnFactory.CreateDoubleColumn("Pop_Male")) ti.Columns.Add(ColumnFactory.CreateStyleColumn()) ti.DefaultStyle = New AreaStyle(New SimpleLineStyle( _ New LineWidth(2.0, LineWidthUnit.Pixel), PatternStyle.Solid, Color.Red), _ New SimpleInterior(PatternStyle.Cross, Color.Red, Color.White)) Dim table As Table = Session.Current.Catalog.OpenTable(ti)
Source: MapXtreme developer guide
Posted on 25 Juli 2009, in MapXtreme and tagged ESRI, MapXtreme Desktop, MapXtreme Web, VB.net. Bookmark the permalink. Tinggalkan komentar.
Tinggalkan komentar
Comments 0