GIS项目程序的设计与实现
无需注册登录,支付后按照提示操作即可获取该资料.
摘 要 近年来,地理信息系统(GIS)是储存和处理与地理空间分布有关信息的集合。在各行各业得到越来越广泛的应用,GIS以其混合数据结构和独特的地理空间分析功能独树一帜 在税务系统中也开始广泛的应用,不仅仅表现为提高管理的效率,而且增加了管理的功能。通过对组件式GIS技术的分析,还比较了WebGIS和VC++等技术,我们决定选用VC++基于进行GIS的开发企业分布地理信息系统。 本系统借助计算机完成企业的分布的电子地图,首先注册才能获取应用的权限,实现了鹰眼功能,一个地区地图的放大 缩小 漫游,箭头 编号标柱 点选 框选 圆选 选择符号 图层控制 按企业编号,企业名字查找 及企业的添加,删除等功能,当然后几项功能只有管理员才可以有使用权限。当选择选择方式进行选择之后,可以显示出被选中企业的名字,然后你可以点击企业的名字在地图上就会把这个企业的位置显放大显示在中心位置,况且不断的闪烁,还可以显示企业的详细信息
关键词: VC++; 地理信息系统; 电子地图
ABSTRACT
Recently, geographical information system (GIS) is the combination of savior and operation and information regarding distribution of geographical space. Applied to more and more wide fields of industry, GIS has developed a school of one´s own with its mixed structure of data and the unique annalistic of geographical space, making it start to be employed into tax system. All the above can be approved by improving efficiency of management as well as increasing capability of management. Through annalistic GIS technique of subassembly and comparison to WebGIS and VC++, we decide to adopt VC++ based on geographical information system of enterprise distribution that was projected for second times.
By dint of computer, the system complete the electrical map of enterprise distribution which be utilized only after the first registration. It realizes such features as eye of hawk zoom out and zoom in of a city's map, roam, arrowhead, marks of serial number, dot option, column option, round option, optical symbol, drawing control, giving number according enterprises, seeking a name of enterprise, adding to and delete enterprise, etc. certainly the latter several features only be eligible to the administrators. When choose the optical type and select from them, the selected name of enterprise would be visible, and then click the name of enterprise. As result of this, the name of enterprise will be amplifier and show in the center of a map, flickering continuously, show the detailed information of a company.
Owing to the limit of time and condition, I am afraid that the unfinished features that I should have planned to complete in a form of C/S need to realize in the later extending.
Key words:VC++; GIS; electrical map
目 录
1 实现图形系统的文档和视图..........................................1
1.1 组织矢量图形系统的图形元素类....................................1
1.2 组织矢量图形系的文档................................................3
1.2.1 组织面向对象的文档管理机制....................................3
1.2.2 利用MFC摸板创建管理图形元素对象指针的对象............3
1.2.3 实现矢量图形系统的文档..........................................3
1.2.4 实现文档的管理功能................................................3
1.3 实现矢量图形系统的视图.............................................5
1.3.1 建立坐标系............................................................5
1.3.2 实现各类图形元素的绘制功能....................................6
1.3.3 实现视图...............................................................6
1.4 各类图形元素几何属性的计算.......................................7
2 鼠标交互绘图............................................................7
2.1 用鼠标绘图要解决的主要问题.......................................7
2.1.1 捕获鼠标操作消息...................................................7
2.1.2 捕捉所有的鼠标输入................................................7
2.1.3 在屏幕上拖动图形...................................................7
2.1.4 保存图形数据到文档................................................7
2.1.5 将图形以实际的形态重画..........................................7
2.2 交互绘制各类图形元素................................................8
3 矢量图形系统的操作功能..........................................9
3.1 增加图形操作菜单......................................................9
3.2 图形重画..................................................................9
3.3 图形放大和摆动.........................................................11
3.4 重画上屏和重画首屏...................................................11
3.5 显示全图..................................................................13
3.5.1 各类图形元素的边界矩形计算....................................13
3.5.2 实现显示全图功能...................................................13
3.6 提高矢量图形系统重画速度的基本方法...........................14
3.6.1 提高图形重画速度的方法..........................................14
3.6.2 提高图形元素的绘制速度..........................................16
4 图形的选中、移动、旋转、删除.................................16
4.1 鼠标点选图形元素......................................................16
4.2 图形移动..................................................................20
4.3 图形旋转..................................................................21
4.3.1 点与点的旋转操作...................................................21
4.3.2 各类图形元素的旋转操作..........................................22
4.3.3 实现旋转操作功能...................................................22
4.4 图形元素的删除.........................................................22
5 数据库应用程序开发技术..........................................24
5.1 创建基于ODBC的数据库应用程序.................................24
5.2 CRecordSet类功能分析.............................................24
5.3 CRecordView视图类分析.............................................26
6 实现数据库浏览功能................................................27
6.1 创建一个数据库浏览视图.............................................27
6.2 创建一个CRecordSet派生类对象.................................28
6.3 实现数据库浏览试图...................................................28
7 实现数据库编辑功能................................................28
7.1 建立并初始化存储记录指针的变量.................................28
7.2 建立数据库编辑功能操作菜单.......................................29
7.3 建立编辑数据记录的对话框类.......................................29
7.4 增加和修改数据记录...................................................29
7.5 删除记录..................................................................29
8 通用数据库过滤功能................................................30
8.1 过滤操作的实现方式...................................................30
8.2 创建组织过滤条件的对话框类.......................................30
8.3 组织过滤条件编辑器的各种功能....................................30
8.4 在数据库浏览视图中实现过滤功能.................................31
8.5 增加过滤条件编辑器的功能..........................................31
参考文献........................................................................33
城市的信息化为城市GIS发展带来了机遇。实际上,城市信息化表现为政府管理与决策的信息化(数字政府),企业管理、决策与服务的信息化(数字企业),市民生活的信息化(数字城市生活),即"数字城市"。由此可见,城市GIS是"数字城市"最核心的部分,可以分为政府GIS、企业GIS和社会GIS。"数字城市"的发展,要求政府、企业和社会GIS通过数据通信网络将政府、企业和社会联成一个整体,实现资源的共享。