南方CASS地籍数据向MAPGIS地籍数据格式转换的实现

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

南方CASS地籍数据向MAPG I S
地籍数据格式转换的实现
谢爱萍
(甘肃林业职业技术学院测绘工程系,甘肃天水 712020)
摘要:文中通过分析南方CASS和MAPGI S地籍数据的文本格式特点,介绍了应用VB实现地籍数据从南方CASS向MAPGI S转换的方法。

关键词:南方CASS;MAPGI S;地籍;数据格式;转换
中图分类号:P208 文献标识码:B 文章编号:1001-358X(2008)04-0043-03
南方CASS是基于Aut oCAD平台开发的数字地形地籍测图软件,具有完善的地形地籍绘图和编辑功能,可以进行多种图形格式的转换,具有较强的数据交换能力,具有通用性、易用性,适用于各类用户。

MAPGI S是武汉中地信息工程有限公司研制的具有
,它是集数字制图、数据库管理及空间分析为一体的地理信息系统软件,是进行现代化管理和决策的先进工具,广泛应用于我国土地管理等部门。

本文主要讨论应用VB实现南方CASS测绘的地籍权属数据向MAPGI S 地籍格式数据转换的方法。

1 南方CAS S和MAP G I S地籍数据格式
111 南方CASS的地籍权属数据格式
CASS710的原始测量的地籍权属数据文件扩展名是“1qs”,该文件可利用绘制的权属图生成,内容包括宗地号、宗地名、土地类别、界址点及其坐标等。

可用来绘制权属图和输出地籍报表,同时用于其他软件的地籍文本格式文件进行交换,该文件的数据格式如下:
 宗地号
 权利人
 土地类别
 界址点号
 界址点坐标Y(东方向)
 界址点坐标X(北方向)
 …
 E,面积
 …
 E
第一行为宗地编号;第二行为权利人,第三行为土地类别编码,下一行开始为界址点号,界址点坐标Y(东方向),界址点坐标X(北方向),界址点结束的下一行的字母E为宗地结束标志;文件最后一行的字母E为文件结束标志;界址点坐标的单位为“米”。

每块宗地结束行的字母E后面是可选项,表示宗地面积,用逗号隔开。

112 MapGI S的地籍数据格式
MapGI S地籍数据的文件扩展名为“1zd”,该文件可利用MapGI S数字测图绘制的权属图生成,也可直接使用纯文本编辑根据野外测绘得到的界址点数据生成,文本格式如下:对于每一个宗地,第一行为宗地号,前面带#标志,紧接着“宗地号”、“面积”、“地类”、“权利人”,以后为可选项,以逗号隔开。

下面各行为每个界址点的“点号”、“X坐标”、“Y坐标”、“界址点类型”、“界址点等级”,一个文件可以记录多个宗地,文件以“##”结尾。

注意这里界址点的坐标系是测量坐标系(与正常的XY是反的)如下图1所示。

图1 MAPG I S地籍数据文本格式
34
第4期2008年10月
矿 山 测 量
M I N E S URVEYI N G
No14
Oct12008
2 地籍格式数据转换的实现
利用VB 新建一个标准EXE 工程,将其Cap ti on 属性改为“CASS 权属转换为MAPGI S 地籍”。

在菜单“工程”下,打开“部件”对话框,找到M icr os oft R ichText Box 610和公共对话框M icr os oft Common D ial og 610并选中它们,单击“确定”按钮。

这时左边
的工具栏上出现了我们刚才新添的两个控件了。

211 界面设计
在VB 系统下设计如下界面,在窗体上绘制R ichText Box 、Commn D ial og 和四个按钮,打开按钮
为装入CASS 权属文件,参数设置按钮为设置宗地的街道位数、街坊位数和宗地位数。

转换按钮为把装入的CASS 权属文件转换为MAPGI S 地籍数据文件,保存按钮为把转换的数据输出,文本显示框为R ich 2Text Box 控件。

宗地参数设置界面如图2所示。

图2 宗地参数设置界面
212 属性定义
控件的属性设置如下表1所示。

表1 控件的属性设置
mane 属性
For m cap ti on =“CASS 权属转换为MAPGI S 地籍”
open cap ti on =“打开”
D ial og cap ti on =“宗地参数设置”zhuanhuan cap ti on =“转换”save
cap ti on =“保存”
R ichText B ox1Scr oll B ar =“2-rtf Vertical ”
213 代码编写
21311 在For m 窗体下编写如下代码:
′声明文件类型D i m sFind A s String
D i m FileType,FiType A s String
′初始化程序Private Sub For m _Load ()Me 1Height =6000Me 1W idth =8000End Sub
′设置编辑框的位置和大小
Private Sub For m _Resize ()On Err or Resume Next ′出错处理R ichText B ox11T op =100R ichText B ox11Left =2
R ichText B ox11Height =ScaleHeight -104R ichText B ox11W idth =Scale W idth -4End Sub
′设置宗地参数
Private Sub Command1_Click ()D ial og 1Show End Sub
′打开文件
Private Sub Open_Click ()
CommonD ial og11Filter ="权属文档(31qs )|3
1qs|文本文档(31txt )|31txt|所有文件(313)|313"
CommonD ial og11ShowOpen
R ichText B ox11Text =""′清空文本框File Na me =CommonD ial og11File Na me R ichText B ox11LoadFile File Na me
End Sub
′CASS 权属转换为MAPGI S 地籍Private Sub zhuanhuan_Click ()D i m zdh,syz,lyxz A s String D i m m ianji A s String D i m zz,e A s String D i m n,m ,kk,p A s I nteger D i m zd m j A s String D i m zuobiao ()A s String
Open CommonD ial og11File Na me For I nput A s #1Open "c:\mapz ongdi 1zd"For Out put A s #2Do W hile Not EOF (1)
 L ine I nput #1,zdh ′读入宗地号
 I f zdh ="E"Then Exit Do L ine I nput #1,syz ′读入使用者 L ine I nput #1,lyxz ′读入土地利用现状 m =Seek (1)′记录指针位置
4
4第4期 矿 山 测 量 2008年10月
 n=0
 zz="a"′zz值变为非E
 Do W hile Left(zz,1)<>"E"′计算点坐标行数
L ine I nput#1,zz
n=n+1
 Loop
 Seek#1,m
 ReD i m zuobiao(n-1)A s String
 For i=1To(n-1)
L ine I nput#1,zuobiao(i)
 Next i
 I nput#1,e
 I nput#1,m ianji
 ′写入mapgis格式起点
 Print#2,"#";Left(zdh,jd ws);"-";M id (zdh,4,jf ws);"-";
 Print#2,R ight(zdh,zdws);",";m ianji; ",";lyxz;",";syz;",,,,,,"
 For i=1To(n-1)Step3
Print#2,zuobiao(i);",";zuobiao(i+ 2);",";;zuobiao(i+1);",,"
 Next i
 Print#2,zuobiao(1);",";zuobiao(3); ",";zuobiao(2);",,"
Loop
Print#2,"##"
Cl ose#1
Cl ose#2
File Na me="c:\mapz ongdi1zd"
R ichText B ox11LoadFile File Na me
End Sub
′保存文件
Private Sub Save_Click()
 Common D ial og11Filter="宗地文档(31zd)| 31zd|文本文档(31txt)|31txt|所有文件(313)| 313"
 CommonD ial og11ShowSave
 I f CommonD ial og11File Na me=""Then
Exit Sub
 End I f
 Open Common D ial og11File Na me For Out put A s
#1
 Print#1,R ichText B ox11Text
 Cl ose#1
End Sub
21312 在D ial og对话框窗体下编写如下代码: Op ti on Ex p licit
Private Sub Cancel B utt on_Click()
End
End Sub
Private Sub For m_Load()
Text11Text="3"
Text21Text="2"
Text31Text="3"
End Sub
Private Sub OK Butt on_Click()
jdws=Text11Text
jf ws=Text21Text
zd ws=Text31Text
D ial og1H ide
End Sub
21313 填加模块,并声明街道、街坊和宗地位数变量
Op ti on Ex p licit
Gl obal jdws A s String
Gl obal jf ws A s String
Gl obal zd ws A s String
214 程序调试运行及可执行EXE文件生成
运行程序,按打开按钮,调入南方CASS权属文件,设置宗地参数,默认街道、街坊和宗地位数分别为3、2、3,按确定,按转换按钮,文本框显示MAPGI S 地籍数据格式,保存数据,扩展名命为“1zd”。

最后生成可执行EXE文件。

3 结 论
(1)在GI S迅速发展的今天,如何使数据资源共享,充分利用软件的优势互补,优化数字化生产的工艺流程,降低生产成本,提高劳动生产率,是推动GI S 行业向前的一个重要问题,有待于今后进一步的探讨和总结。

(2)对于两个不同数据格式的转换,首先要了解两种数据的特点、联系和区别。

然后根据数据的对
(下转第79页)
第4期 谢爱萍:南方C ASS地籍数据向MAPGI S地籍数据格式转换的实现 2008年10月
物较贫乏,水丝蚓、颤蚓等寡毛类较多;而建设后期的沉陷水域中软体动物较多,水丝蚓、颤蚓等寡毛类较少。

因此建议在矿井建设初期在沉陷水域中以放养鲤、鲫等杂食性鱼类为主,后期的沉陷水域中以放养青鱼为主。

发展渔业生产,要以养鱼为主,多种经营,综合利用。

鱼用饵料应利用饲养家畜、家禽的粪便和磨豆腐的下脚料等。

同时因沉陷区水域周围的堤埂较宽,有陆地建造禽棚和网栏家禽的条件,可以鱼、禽、草综合养殖。

即水中养鱼、水面养鸭、岸边种植牧草。

用水底污泥肥草、草料养畜禽、畜禽粪便和水草喂鱼、鱼粪和食物残渣肥泥。

从而作到各个因子互相利用,促进生态系统的良性循环。

21314 矿区生态系统类型转换所采取恢复措施的有效性
五沟井田开采后,由于地面下沉而引发地表沉陷,并在沉陷超过2m的地段常年积水。

使得该地段地表覆盖的各类植被全部死亡,现由通过陆地绿色植物的光合作用、蒸腾作用调节自然环境的陆生生态系统,逐渐转变为大面积沉陷水域调节自然环境的水生生态系统。

由于地表沉陷的面积是不断增大的,沉陷水域的面积也是不断增大的,因此水生生态系统的范围也是不断扩大的。

陆生生态系统范围逐渐缩小,水生生态系统范围逐渐扩大,始终处于一种相对的动态平衡中。

对工业场地和场外公路两侧的绿化,可以在一定程度上提高矿区的绿化率。

虽然和自然生态系统相比,人工绿地的生物初级生产不占主导地位,甚至是微不足道的,但人工绿地的景观作用功能和环境保护功能对矿区居民的生活和工作环境是十分重要的。

它不仅具有供给氧气、削减噪声、滞尘灭菌、吸滤有毒有害气体等净化环境的功能,而且有利于调节气候、防御风沙、保持水土,同时还起到美化环境,监测环境污染的作用。

3 结 语
五沟矿井是皖北煤电集团新建设的煤炭资源开发项目,井田开采后,将造成大量的土地沉陷,破坏当地的生态平衡。

项目实施后将带来显著的经济效益 生态效益和社会效益。

通过复垦和恢复措施可减少风沙、调节气候、净化空气、美化环境,改善五沟矿区生物圈的生态环境。

煤层开采后,井田范围内将出现陆生生态系统和水生生态系统并存的格局,在采取土地复垦、矿区绿化和发展渔业生产后,可以在一定程度上提高区域的生物多样性,对井田范围内的生态环境具有一定的改善作用。

土地复垦是关系国计民生的大事,不仅对发展农业生产和煤炭事业有重要意义,而且是促进矿区可持续发展的必由之路。

作者简介:吴新恒(1973-),男,1993年7月毕业于北京煤校,现在皖北煤电集团公司五沟煤矿工作,一直从事煤矿矿山测量与土地复垦工作。

(收稿日期:2008-06-30)
(上接第45页)
照关系对数据文件进行读写操作。

从要转换的数据格式中读出数据,写入到需要的数据格式。

(3)实现南方CASS地籍权属数据向MAPGI S地籍格式数据的转换,将使用户可以充分的利用南方CASS的地籍测绘数据,有效的建立MAPGI S地籍信息管理系统,加快我国城镇地籍调查工作的后期建库工作。

参考文献:
[1] 周利等1CASS数据格式转换为Map I nfo数据格式的设
计[J]1西部探矿工程,2004(12)1
[2] 魏保峰等1南方C ASS向MAPGI S的数据转换探讨[J]1
露天采矿技术,2007(4)1
[3] 吴信才1地理信息系统原理与方法[M]1北京:电子工
业出版社,19981
[4] 秦永乐1V isual Basic测绘程序设计[M]1黄河水利出
版社,20051
[5] 曹必武等1基于GI S的测绘综合管理系统设计[J]1
矿山测量,2008(2)1
作者简介:谢爱萍(1973-),男,甘肃天水人,硕士,讲师,现从事测绘和地理信息系统应用的教学与研究工作。

(收稿日期:2008-06-10)
第4期 吴新恒等:五沟矿区土地复垦及生态恢复措施探讨 2008年10月
ENGL I SH ABSTRACTS O F M A I N ART I CL ES I N TH I S I SSUE
The Latest Development of Photogrammetric Technology in "Coal-aerophot ogrammetry———A s a main depart ment in field of coal photogrammetric technology in our country," Coal-Aerophot ogrammetry"(als o called er ophotogramme2 try Gr oup of Depart ment of Coal and M ine)takes on more than95percent phot ogrammetric mapp ing task in coal are2 a.I n recent years,photogrammetric technology has devel2 oped rap idly.I n this paper,it has a focus on the develo2 p ing history of"Coal-Aer ophotogrammetry"in photo2 grammetric mapp ing and aerophot ography and app licati ons of the latest s patial data collecting technology.(Lai Bailian et al.)
Analysis on Mapp ing Precisi on occurred in Electr onic Total Stati on———W ith the development and app licati ons of mod2 ern high and new technologies,it urges the surveying and drawing j obs being transiting fr om traditional surveying and mapp ing technology t o modern figure surveying and map2 p ing.The total stati on is taking an increasing percentile app licati ons in today’s surveying and mapp ing works.This year,Zhaokou branch of J inling ir on ore is also equipped with a t otal station,so it is necessary to analyze the caused reas ons and size of measuring err or of total station in using p r ocess.(L i Baoguo et al.)
App lications of Leica Axyz/MT M on Checking M ine Hoist2 ing W inch———I n this paper,the app lied method of Leica Axyz/MT M industrial measuring system on accurately de2 ter m ining the winch p rincipal axis orientati on,central coor2 dinates,tight w ire obliquity and biggest deflexi on angle of tight w ire is intr oduced.(Zheng W enhua)
Study on the innovative activities of graduate education in engineering disci p lines———Based on the analysis of inno2 vative activities of CUMT B,the paper discusses the meas2 ures of i mp roving the quality of graduate educati on in engi2 neering disci p lines under new situation.Specially intr odu2 cing the p ractice and consideration of holding graduate edu2 cati on forum,doct oral graduate comp rehensive exam ination and refor m ing the evaluati on and review methods of doctoral dissertations in recent years.
(Ma Xinhong)
Design of CoalM ine Exp loiting Subsidence I ntegrative Soft2 ware Package Based on GI S———Based on the intr oduction of research backgr ound of M I SPAS s oft ware package,the frame structure of the soft ware package is given,and the function modules and key techniques in devel op ing the s oft2 ware package are intr oduced concisely.The coal m ine ex2 p l oiting subsidence integrative s oft ware package based on GI S is designed,which is suitable for multi-means of data samp ling,has comp lete data p r ocessing and analyzing functions,manages infor mation efficiently,and orients the s paci ous science and technology pers onnel.(Lu W eicai et al.)
The Establishment of3D D igital Landscape of a Planned U rban A rea Based on3DGPS———U tilizing the designing data for urban p lanning,the3D digital landscape of a p lanned urban area is constructed in I M AGIS.I n view of the insufficiency of3D model of the co mp licated structure not t o be created in I M AGIS,the method of combining 3DS MAX and I M AGIS has been given.After joining attrib2 ute data to s patial data,the3D s patial query and analysis has been realized.The3D digital landscape of a p lanned urban area constructed using above method can be app lica2 ble widely for various fields of urban p lanning,urban re2 newal,exp loitation of real estate,environmental monitoring etc.(W ang J ing wei)
The Updated G AM I T Soft ware’s Function and Characteris2 tics and Its App lication Examp le Analysis———W ith the G AM IT s oft ware’s unceasing p romoti on,since2000year, the automatic batch running scri p t p rocedure sh_gam it writ2 ten by C-shell along with the soft ware package has been p r ovided,which integrates the tedious works of data p repa2 ration and p r ocessing,s o it si mp lifies the usage of the G AM IT s oft ware.After the G AM IT10.3versi on,G AM I T p r ovides a brand-new EXE execution document installing pattern,which si m p lifies the installation p rocess of G AM I T s oft ware.I n this paper,it mainly intr oduces the updated G AM IT’s functions and characteristics,installati on p r ocess,and the si mp lified usage with actual examp le. (Ma Hongbin et al.)
Achievement on Transfor m ing Cadastral Data For mat fr om South CASS to MAPGI S———Based on the analysis of for2 mat characteristics both of South CASS and MAPGI S cadas2 tral data text,the paper introduces an achieving method on transfor m ing cadastral data for mat fr om South CASS to MAPGI S by VB.(Xie A i’p ing)
Practice and Analysis of Height Fitting in GPS Engineering Control Net work———In order t o deter m ine the nor mal height of GPS contr ol points in s ome region which are measured difficulty by leveling,during the setting of GPS contr ol net w ork and subsequent i mp lementation of the p r o2 bining an actual examp le of GPS contr ol net work, and app lying curve fitting and Hardy Functi on interpola2 ti on,it works out relatively accurate nor mal height of GPS contr ol point difficulty measured by leveling,and deter2 m ines a higher p recise fitting surface of quasi geoid in the region,which establishes the fundamental data t o s olve the nor mal height of GPS control point of the subsequent p r o2 ject in the regi on.(Cui Jin)
Study of Gray Model U sed in Predicting City Surface Sub2 sidence———This paper has a brief introduction on the gray system theory,and establishes the gray p redicting G M(1, 1)model by using a colu mn of ti me series observati on data of a single bench mark in Xi’an.Then it p redicts the recent surface subsidence in Xi’an by this model.The findings show the forecasting result of gray model is in a coincidence with the actual results.A t the same ti me,the gray model p redicting p rogram is written by VB to p r ove its validity and effectiveness thr ough experi m ents,and drawing up the height fallout p lot by computer.(Cheng Shu et al.)
App licati on of Non-euqal interval Grey Model G M(1,1) in Predicting Building Settlement———I n this paper,based on non-equal interval grey model G M(1,1)modeling in reference[1],the non-equal interval grey model is ad2 vanced by settlement observation oscillation sequences. And on the i m p roved non-equal interval grey model G M (1,1),the building settlement is p redicted and analyzed using the settlement monitoring data of a tall building in Q ingdao City.Thr ough comparing the p redicting result with the model uni mp r oved,it p r oves the p racticability,correct2 ness and effectiveness of the advanced model.(L iu bin et al.)。

相关文档
最新文档