ImageVerifierCode 换一换
格式:DOC , 页数:10 ,大小:22.41KB ,
资源ID:4773657      下载积分:8 金币
验证码下载
登录下载
邮箱/手机:
图形码:
验证码: 获取验证码
温馨提示:
支付成功后,系统会自动生成账号(用户名为邮箱或者手机号,密码是验证码),方便下次登录下载和查询订单;
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

开通VIP
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.zixin.com.cn/docdown/4773657.html】到电脑端继续下载(重复下载【60天内】不扣币)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

开通VIP折扣优惠下载文档

            查看会员权益                  [ 下载后找不到文档?]

填表反馈(24小时):  下载求助     关注领币    退款申请

开具发票请登录PC端进行申请。


权利声明

1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:4009-655-100;投诉/维权电话:18658249818。

注意事项

本文(mapbasic学习之-使用mapbasic编写完整网优工具.doc)为本站上传会员【丰****】主动上传,咨信网仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知咨信网(发送邮件至1219186828@qq.com、拔打电话4009-655-100或【 微信客服】、【 QQ客服】),核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载【60天内】不扣币。 服务填表

mapbasic学习之-使用mapbasic编写完整网优工具.doc

1、Include "mapbasic.def" Include "icons.def" Declare sub Main Declare sub Rmv_map Declare sub Rmv_map_neighbor_query Declare sub Rmv_map_Center_cell_query Declare sub Show_PN Declare sub Show_perf Declare sub Neighbor_tool Declare sub About_map_tool Declare sub get_table_name Declare sub

2、get_neighbortable_name Declare sub get_perftable_name Declare sub get_region Declare sub get_freq Declare sub Exit '-------------------------------------------------------------------------------------------------全局变量 Global Table_number,Neighbortable_number,perftable_number as integer,

3、 region_1,region_2,region_3,region_4,region_5,region_6,region_7,region_8,region_9,region_10,region_11,region_12 AS integer, column_name as alias, freq as string '-------------------------------------------------------------------------------------------------主函数,创建菜单\子菜单 Sub

4、Main beep Create Menu "&Maptool" As "Select the basetable..." calling get_table_name, "Select a performancetable..." calling get_perftable_name, "Select a neighbortable..." calling get_neighbortable_name, "(-", "Exit Maptoo

5、l.mbx" calling Rmv_map, '退出时需要删除临时图层,先转入删除程序 "About maptool" calling About_map_tool Alter Menu Bar Add "Maptool" '-------------------------------------------------------------------------------------------------主函数,创建按钮 Create buttonpad "Maptool" As pushbutton Ca

6、lling Show_PN helpmsg "\n在地图上显示输入的PN码" Icon MI_ICON_MAPSYMB_16 separator ToolButton Calling Neighbor_tool helpmsg "\n显示邻区" Icon MI_ICON_MAPSYMB_1 Cursor MI_CURSOR_FINGER_UP separator pushButton Calling get_freq helpmsg "\n输入邻区频点" Icon MI_ICON_MAPSYMB_17 separator

7、 pushbutton calling Show_perf helpmsg "\n性能地理化" Icon MI_ICON_DISTRICT_MANY ToolbarPosition(1,0) Show Fixed End Sub '-------------------------------------------------------------------------------------------------About maptool sub About_map_tool Note "Maptool.mbx" & chr$(10)

8、 chr$(10) &"Yekan 2009-04-15" & chr$(10) &"E-mail:Yekan_zj@"& chr$(10) end sub '-------------------------------------------------------------------------------------------------退出程序 Sub Rmv_map dim map_win_id as integer, layer_name as string map_win_id=frontwindow()

9、 layer_name=layerinfo(map_win_id,1,layer_info_name) delete object from windowinfo(frontwindow(),win_info_table) '/删除装饰层OBJECT If layer_name="PN_Query" then set map redraw off Remove Map Layer PN_Query Interactive set map redraw on call Rmv_map_nei

10、ghbor_query Else call Rmv_map_neighbor_query End if End sub Sub Rmv_map_neighbor_query dim map_win_id as integer, layer_name as string map_win_id=frontwindow() layer_name=layerinfo(map_win_id,1,layer_info_name) If layer_name="Neighbor_query" then s

11、et map redraw off Remove Map Layer Neighbor_query Interactive set map redraw on call Rmv_map_Center_cell_query Else call Rmv_map_Center_cell_query End if End sub Sub Rmv_map_Center_cell_query dim map_win_id as integer, layer_name as string map

12、win_id=frontwindow() layer_name=layerinfo(map_win_id,1,layer_info_name) If layer_name="Center_cell_query" then set map redraw off Remove Map Layer Center_cell_query Interactive set map redraw on call exit Else call exit End if End sub

13、 Sub exit Dim ack As Logical ack = Ask("Do you want quit?", "OK", "Cancel") If ack=0 then exit sub Else End program End if End sub '-------------------------------------------------------------------------------------------------选择主表 sub get_table_name

14、 dim i_table_name(20) as string, i, num_table as integer num_table=numtables() for i=1 to num_table i_table_name(i)=tableinfo(i , tab_info_name) next dialog title "select layer" control statictext title "select map layer:" control popupmenu

15、 title from variable i_table_name ID 1 Into table_number '/table_number是你选择的主表的ID,这个ID将在后面使用时来获得主表的名称 control okbutton title "OK" control cancelbutton title "Cancel" End sub '-------------------------------------

16、选择包含邻区的表 sub get_neighbortable_name dim i_table_name(20) as string, i, num_table as integer num_table=numtables() for i=1 to num_table i_table_name(i)=tableinfo(i , tab_info_name) next dialog ti

17、tle "select Neighbortable" control statictext title "select a Neighbortable:" control popupmenu title from variable i_table_name ID 1 Into neighbortable_number '/neighbortable_number是你选择邻区的表的ID,这个ID将在后面显示邻区时用来获得表的名称 control

18、okbutton title "OK" control cancelbutton title "Cancel" End sub '-------------------------------------------------------------------------------------------------选择包含指标的表 sub get_perftable_name dim i_table_name(20) as string, i, num_table as integer num_table=numt

19、ables() for i=1 to num_table i_table_name(i)=tableinfo(i , tab_info_name) next dialog title "select performance" control statictext position 5,5 title "select Performance table:" control popupmenu position 90,5 title from variable i_

20、table_name ID 1 Into perftable_number '/table_number是你选择显示PN的表的ID,这个ID将在后面显示PN时用来获得表的名称 control statictext position 5,25 title "The column you want:" control edittext into column_name position 90,25 control okbutton title "OK" contro

21、l cancelbutton title "Cancel" call get_region End sub '-------------------------------------------------------------------------------------------------输入频点 sub get_freq dialog title "Input frequency" control statictext title "Frequency:" control edittext

22、 into freq width 30 control okbutton title "OK" control cancelbutton title "Cancel" end sub '-------------------------------------------------------------------------------------------------输入区间 sub get_region dialog title "Input region" control statictext

23、 position 5,5 title "Input range you want" control edittext position 5,25 width 25 into region_1 control statictext position 37,25 title "to" control edittext position 48,25 width 25 into region_2 control edittext position 5,50 width 2

24、5 into region_3 control statictext position 37,50 title "to" control edittext position 48,50 width 25 into region_4 control edittext position 5,75 width 25 into region_5 control statictext position 37,75 title "to" control edittex

25、t position 48,75 width 25 into region_6 control edittext position 5,100 width 25 into region_7 control statictext position 37,100 title "to" control edittext position 48,100 width 25 into region_8 control edittext position 5,125 width

26、25 into region_9 control statictext position 37,125 title "to" control edittext position 48,125 width 25 into region_10 control edittext position 5,150 width 25 into region_11 control statictext position 37,150 title "to" control

27、edittext position 48,150 width 25 into region_12 control okbutton title "OK" control cancelbutton title "Cancel" end sub '-------------------------------------------------------------------------------------------------生成新的显示PN图层 Sub Show_PN dim query_map_name a

28、s string,query_map_number, PN_number, pn_input as integer query_map_number=table_number '/选择表时获得的ID query_map_name=tableinfo(query_map_number , tab_info_name) '/根据表的ID,得到表的名称 dialog title "Search PN" control statictext title "Th

29、e PN you want:" control edittext into PN_input control okbutton title "OK" control cancelbutton title "Cancel" PN_number=PN_input select*from query_map_name where PN=PN_number into PN_Query set map redraw off Add Map Layer PN_Query Set map

30、layer PN_Query Display Global Global Brush (1,6316128,16777215) Label Font ("Arial",256,30,16711680,65280) With PN Auto On Overlap On set map redraw on Set Map Layer PN_Query Selectable Off select*from query_map_name where not object End sub '-----------------

31、在表中添加性能指标,并分颜色显示 Sub show_perf dim query_map_name, perftable_name as string, query_map_number, perftable_num as integer dim column_name_add as alias query_map_number=table_number query_map_name=table

32、info(query_map_number , tab_info_name) perftable_num=neighbortable_number '/前面选表时,表所在的ID perftable_name=tableinfo(perftable_num , tab_info_name) '/获得包含指标的表的名字 column_name_add=column_name add column query_map_name(column_name_add) from perftable_

33、name set to column_name_add where index=index dynamic shade window frontwindow() query_map_name with column_name_add ranges apply color use all Brush (2,0,16777215) region_1: region_2 Brush (2,white,white), region_3: region_4 Brush (2,yell

34、ow,yellow), region_5: region_6 Brush (2,green,white), region_7: region_8 Brush (2,blue,blue), region_9: region_10 brush (2,16711935,16777215), region_11: region_12 Brush (2,red,red) default Symbol (35,16777215,4) set legend wi

35、ndow frontwindow() layer prev display on shades on symbols off lines off count on title "Calldrop" Font ("Arial",0,12,0) subtitle auto Font ("Arial",0,11,0) ascending off ranges Font ("Arial",0,11,0) auto display off ,auto display on ,auto display on ,auto display on ,auto

36、display on End sub '-------------------------------------------------------------------------------------------------显示邻区关系 Sub Neighbor_tool Dim x,y as float, i, win_id, num_obj_found,row_id, neighbortable_num,num_neighbor as integer, click_table, Center_cell_index,neighbortable_name

37、 cell_nbr as string, cell_index, column_name, neighbor_srvcell, neighbor_nbrcell,neighbor_frequency, neighbor_priority, sitemap_index, sitemap_obj as Alias, singlenbr_obj as object neighbortable_num=neighbortable_number '/前面选表时,表所在的ID neighbortable_

38、name=tableinfo(neighbortable_num , tab_info_name) '/获得邻区表的名字 win_id=frontwindow() x = CommandInfo(CMD_INFO_X) y = CommandInfo(CMD_INFO_Y) num_obj_found = SearchPoint(win_id, x, y) If num_obj_found = 0 Then note "Click a sector on the map" exit sub End i

39、f click_table=SearchInfo(num_obj_found, SEARCH_INFO_TABLE) row_id = SearchInfo(num_obj_found, SEARCH_INFO_ROW) delete object from windowinfo(frontwindow(),win_info_table) '/删除装饰层OBJECT Fetch rec row_id From click_table cell_index=click_table+".index" Center

40、cell_index=str$(cell_index) select*from click_table where index=Center_cell_index into Center_cell_query '/将selection存为Center_cell_query图层 set map redraw off Add Map Layer Center_cell_query Set map layer Center_cell_query Set Map Layer Center_cell_que

41、ry Display Global Global Brush (2,blue,blue) set map redraw on Set Map Layer Center_cell_query Selectable Off neighbor_srvcell=neighbortable_name+".srvcell" neighbor_nbrcell=neighbortable_name+".nbrcell" neighbor_frequency=neighbortable_name+".frequency" neighbor_prior

42、ity=neighbortable_name+".priority" sitemap_obj=click_table+".obj" sitemap_index=click_table+".index" create index on neighbortable_name(srvcell) '/创建索引加快搜索进度 create index on click_table(index) select neighbor_nbrcell, neighbor_frequency, neighbor_priority, sitemap_obj from

43、 neighbortable_name, click_table where sitemap_index=neighbor_nbrcell and neighbor_srvcell=center_cell_index and neighbor_frequency=freq into neighbor_query num_neighbor=tableinfo(neighbor_query, tab_info_nrows) print "( "+center_cell_index+" ) has "+(num_neighbor)+" neighbors."

44、 set map redraw off Add Map Layer neighbor_query Set Map Layer neighbor_query Display global global Brush (2,green,green) Label Font ("Arial",257,18,255,16777215) With priority Auto On Overlap On Duplicates Off set map redraw on Set Map Layer neighbor_query Selectable Off

45、 for i=1 to num_neighbor '/查询双向邻区 fetch rec i from neighbor_query cell_nbr=str$(neighbor_query.nbrcell) select * from neighbortable_name where srvcell=cell_nbr and nbrcell=center_cell_index and frequency=freq into temp if tableinfo(tem

46、p, tab_info_nrows)=0 then '/未查出双向,则修改颜色为黄色 singlenbr_obj=neighbor_query.obj alter object singlenbr_obj info obj_info_brush, makebrush(2,yellow,yellow) insert into windowinfo(frontwindow(),win_info_table) (object) values(singlenbr_obj) end if next select * from click_table where not object End sub

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2025 宁波自信网络信息技术有限公司  版权所有

客服电话:4009-655-100  投诉/维权电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服