当前位置:软件学习 > 其它软件 >>

mapxtreme 地图信息展示

利用MapXtreme的控件,将sql server中数据信息展示到地图上,所有的都以点的形式存在,在数据库里对应的经纬度都有说明,请问怎样才能将说明信息展示到地图上? --------------------编程问答-------------------- MIConnection Connection = new MIConnection();
                Connection.Open();
                MapInfo.Data.SpatialSchemaXY miSpS = new MapInfo.Data.SpatialSchemaXY();
                MapInfo.Geometry.CoordSysFactory miCF = new MapInfo.Geometry.CoordSysFactory();
                miSpS.XColumn = "PointLong";
                miSpS.YColumn = "PointLat";
                miSpS.DefaultStyle = new SimpleVectorPointStyle(34, Color.Red, 15);
                miSpS.CoordSys = map.GetDisplayCoordSys();
                TableInfoServer ti = new TableInfoServer("GpsData");
                ti.ConnectString = "DRIVER={SQL Server};SERVER=10.60.6.21;DATABASE=bsgps_shenyang;UID=savideo;PWD=p@ssw0rd;";
                ti.Toolkit = ServerToolkit.Odbc;
                ti.Query = "select carinfo.company,carinfo.cartype,carinfo.beizhu,ontimepoint.carmark,ontimepoint.pointlong,ontimepoint.pointlat,ontimepoint.speed,ontimepoint.direction,ontimepoint.retime from ontimepoint,carinfo where ontimepoint.carphone=carinfo.phone";
                ti.SpatialSchema = miSpS;
                ti.Temporary = true; --------------------编程问答-------------------- 有点用处,谢谢
补充:企业软件 ,  地理信息系统
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,