阅读:2286回复:1
mapobject第二贴
<H2 >1.1<FONT face="Times New Roman">MapObjects</FONT>的数据源</H2>
<P ><FONT face="Times New Roman"> </FONT>你可通过<FONT face="Times New Roman">MapObjects</FONT>使用形文件,图像文件,属性表或通过<FONT face="Times New Roman">ESRI</FONT>的专用数据库引擎连接的专用数据库。</P> <P >形文件是地图数据的矢量形式,图像文件是栅格图像或尤指航空或卫量的畸变图像的纠正照片,属性表是可用<FONT face="Times New Roman">ODBC</FONT>装入的任意格式。<FONT face="Times New Roman"> </FONT>专用数据库是网络上通过<FONT face="Times New Roman">ESRI</FONT>专用数据库引擎连接的<FONT face="Times New Roman">UNIX</FONT>服务器。<FONT face="Times New Roman"> </FONT></P> <P ><FONT face="Times New Roman"> </FONT>形文件适用于中小型地图数据。而大型数据<FONT face="Times New Roman">(</FONT>省,国家道路网<FONT face="Times New Roman">)</FONT>,你就需使用专用数据库。</P> <P ><FONT face="Times New Roman"> </FONT>用<FONT face="Times New Roman">MapObjects</FONT>编写的软件是可伸缩的。最初你可用形文件。当用户需要与大型数据库连接时,几乎所有代码都可被移到与专用数据库连接后的工作中,你仅需修改打开数据源的几行代码。</P> <H3 ><FONT size=5>形文件</FONT></H3> <P ><FONT face="Times New Roman"> </FONT>形文件是<FONT face="Times New Roman">ESRI</FONT>提供的存储地理数据的矢量格式。这就意味着地图元素以<FONT face="Times New Roman">X</FONT>,<FONT face="Times New Roman">Y</FONT>形式出现。其坐标系是笛卡尔坐标。注意,笛卡尔坐标与屏幕坐标有所不同。</P> <P ><FONT face="Times New Roman"> </FONT>每一元素的几何形状以包括一组矢量坐标的形的形式存储。其属性存放在与形文件相连的<FONT face="Times New Roman">dBASE</FONT>的记录中。</P> <P >以下是得到形文件的不同方法。</P> <P >§ 购卖商业地图数据。</P> <P >§ <FONT face="Times New Roman">MapObjects</FONT>提供的光盘。</P> <P >§ <FONT face="Times New Roman">ARcView</FONT>,<FONT face="Times New Roman">ARC/INFO </FONT>等<FONT face="Times New Roman"> ESRI </FONT>产品的数据。</P> <P >§ 编写程序从其它格式中转换。</P> <P ><FONT face="Times New Roman"> </FONT>一个形文件由三种文件组成,主文件<FONT face="Times New Roman">(*.shp)</FONT>包含几何形状。索引文件<FONT face="Times New Roman">(*.shx)</FONT>包含数据的索引。数据库文件<FONT face="Times New Roman">(*.dbf)</FONT>包含形的属性<FONT face="Times New Roman">,</FONT>你可以修改字段的定义。</P> <P >每一个形文件包含一种类型<FONT face="Times New Roman">(</FONT>点<FONT face="Times New Roman"> </FONT>弧<FONT face="Times New Roman"> </FONT>多边形<FONT face="Times New Roman">)</FONT></P> <P >§ 点有一个<FONT face="Times New Roman">(X</FONT>,<FONT face="Times New Roman">Y)</FONT>坐标和一个属性。</P> <P >§ 弧段包含一条或一组<FONT face="Times New Roman">(</FONT>可连,可不连<FONT face="Times New Roman">)</FONT>的多义线。一条多义线是一组有序结点。每一弧段有一个属性记录。</P> <P >§ 多边形包括一个或多个边界,一个边界是一个无交叉点的闭合环,一个边界可嵌于一多边形中而形成环形。边界的方向决定它是否代表区域内的面积。每一多边形有一属性记录。</P> <P ><FONT face="Times New Roman"> </FONT>形文件通过<FONT face="Times New Roman">ODBC</FONT>读入,<FONT face="Times New Roman">ODBC</FONT>在装<FONT face="Times New Roman">MapObjects</FONT>的同时被装入并注册。</P> <P ><FONT face="Times New Roman"> ARC/INFO</FONT>用户应注意形文件中弧,多边形的定义不同于<FONT face="Times New Roman"> ARC/INFO coverage</FONT>中的定义。形文件无拓扑,因此,形文件允许你集合简单元素来合成元素。如,把几条<FONT face="Times New Roman">polyoline</FONT>会成<FONT face="Times New Roman">arc</FONT>。通过形文件,你可快速显示图形并具有一简单数据模型<FONT face="Times New Roman">; </FONT>以简单数据模型换取快速显示,这使得对形文件进行拓扑编辑或高级分析变得十分困难。</P> <P ><FONT face="Times New Roman"> </FONT>形文件是一种通用格式,如果你想编写程序直接读写形文件,你可以从<FONT face="Times New Roman">ESRI</FONT>网点<FONT face="Times New Roman"> http://www.esri.com</FONT>上下载<FONT face="Times New Roman">ArcView V 2.0</FONT>形文件描述。</P> <H3 ><FONT size=5>图像<FONT face="Times New Roman">(Image)</FONT>文件</FONT></H3> <P ><FONT face="Times New Roman"> </FONT>你可通过<FONT face="Times New Roman">MapObjects</FONT>编写应用程序来显示多种图像文件。在地图中图像多来自航空照片和卫星图像。</P> <P ><FONT face="Times New Roman"> </FONT>图像文件依靠带有灰度值或色标的一组像元来表示图片,这些像元无属性连接,其坐标系统与形文件不同。</P> <P ><FONT face="Times New Roman"> </FONT>你可把图像文件精确重叠于大地坐标的形文件。<FONT face="Times New Roman">MapObjects (</FONT>或其它<FONT face="Times New Roman"> ESRI </FONT>软件<FONT face="Times New Roman">)</FONT>用<FONT face="Times New Roman">world files</FONT>来配准图像。</P> <P ><FONT face="Times New Roman"> </FONT>一个<FONT face="Times New Roman">world</FONT>文件是一个简单的文本文件,它包括数学参数来定义转换关系,其公式为:</P> <P ><FONT face="Times New Roman">x' = Ax + By + C</FONT></P> <P ><FONT face="Times New Roman">y' = Dx + Ey + F</FONT></P> <P ><FONT face="Times New Roman">x' </FONT>像元在地图上的计算坐标值<FONT face="Times New Roman">X</FONT>。</P> <P ><FONT face="Times New Roman">y' </FONT>像元在地图上的计算坐标值<FONT face="Times New Roman"> Y</FONT>。</P> <P ><FONT face="Times New Roman">x </FONT>像元列数。</P> <P ><FONT face="Times New Roman">y </FONT>像元行数。</P> <P ><FONT face="Times New Roman">A X</FONT>轴上像元的尺寸。</P> <P ><FONT face="Times New Roman">B,D </FONT>旋转关系项。</P> <P ><FONT face="Times New Roman">E </FONT>负的<FONT face="Times New Roman">Y</FONT>轴上像元的尺寸。</P> <P ><FONT face="Times New Roman">C,F </FONT>左上角像元中心的<FONT face="Times New Roman">X Y</FONT>地图坐标。</P> <P ><FONT face="Times New Roman"> </FONT>注意<FONT face="Times New Roman"> E </FONT>为<FONT face="Times New Roman">"</FONT>负<FONT face="Times New Roman">"</FONT>值,因为,形文件坐标与图像坐标<FONT face="Times New Roman">Y</FONT>方向正向反。</P> <P ><FONT face="Times New Roman"> world</FONT>文件是包含<FONT face="Times New Roman">A</FONT>,<FONT face="Times New Roman">B</FONT>,<FONT face="Times New Roman">C</FONT>,<FONT face="Times New Roman">D</FONT>,<FONT face="Times New Roman">E</FONT>,<FONT face="Times New Roman">F</FONT>值的连续行文本文件。</P> <P ><FONT face="Times New Roman"> </FONT>注意<FONT face="Times New Roman"> MapObjects</FONT>不支持图像旋转。这样<FONT face="Times New Roman"> B</FONT>,<FONT face="Times New Roman">D</FONT>的值在<FONT face="Times New Roman"> world </FONT>文件中是被忽略的。为果需要旋转,你可用<FONT face="Times New Roman"> ESRI</FONT>的<FONT face="Times New Roman">ARC GRID</FONT>。</P> <P >以下是<FONT face="Times New Roman">MapObjects</FONT>支持的图像文件格式。</P> <P ><p><FONT face="Times New Roman"> </FONT></p></P> <P >名称<FONT face="Times New Roman"> </FONT>描述<FONT face="Times New Roman"> </FONT>扩展名<FONT face="Times New Roman"> World file</FONT>扩展名</P> <P >BMP Windows bitmap *.bmp *.bpw<p></p></P> <P >TIFF Tag image file *.tif *.tfw<p></p></P> <P >SUN Sun raster file *.sun *.snw<p></p></P> <P >ERDAS ERDAS GIS or LAN *.gis *.gsw<p></p></P> <P >IMPELL IMPELL bitmap *.rls *.rlw<p></p></P> <P >BIL Band interleaved by line *.bil *.blw<p></p></P> <P >BIP Band interleaved by pixel *.bip *.bpw<p></p></P> <P >BSQ Band sequential *.bsq *.bqw<p></p></P> <P ><p><FONT face="Times New Roman"> </FONT></p></P> <H3 ><FONT size=5>属性表</FONT></H3> <P >用<FONT face="Times New Roman">MapObjects</FONT>编写的应用程序,可通过一种关系与外部属性表相连。关系是连接元素表<FONT face="Times New Roman">(</FONT>元素表可是形文件的<FONT face="Times New Roman">dBASE</FONT>表,也可是从<FONT face="Times New Roman">SDE</FONT>层中得到的表<FONT face="Times New Roman">)</FONT>与属性表的表。为了这种连接,可安装<FONT face="Times New Roman"> ODBC</FONT>。这种关系留存于应用程序运行期间,它不会被写入文件中。<FONT face="Times New Roman"> </FONT></P> <P ><FONT face="Times New Roman"> </FONT>要建立这种关系。你要确认一个元素表的某一字段,一个要与之建立关系的属性表和该属性表的一个字段。属性表的相关字段必须是<FONT face="Times New Roman">primary key</FONT>或允许在其上建立一独一无二的索引。有一例外,在少于<FONT face="Times New Roman">100</FONT>个记录的小型元素表上可建立无特殊字段的关系。</P> <P ><FONT face="Times New Roman"> </FONT>一旦建立了关系,它就在元素表上建立了一种纽带,你可通过属性表的字段查询属性,但你不能在<FONT face="Times New Roman">MapObjects</FONT>中通过<FONT face="Times New Roman">SQL</FONT>表达式向里面增加数据。</P> <H3 ><FONT size=5>空间数据引擎</FONT></H3> <P ><FONT face="Times New Roman"> </FONT>如果你采用大规模地图数据组来组织工作,见意考虑使用空间数据引擎<FONT face="Times New Roman">(SDE)</FONT>,一种高性能制图数据服务器。</P> <P ><FONT face="Times New Roman"> </FONT>通过<FONT face="Times New Roman">SDE</FONT>,空间数据可存放于<FONT face="Times New Roman">UNIX</FONT>服务器上。用户的<FONT face="Times New Roman">SDE</FONT>应用程序可基于<FONT face="Times New Roman">UNIX</FONT>或<FONT face="Times New Roman">WIN</FONT>环境被编写,<FONT face="Times New Roman">SDE</FONT>提供软件开发和数据管理能力:</P> <P >§ 管理大规模地理数据,提供地图无缝显示。</P> <P >§ 通过某种商业关系数据库存储数据。</P> <P >§ 通过一组高效的尖端空间数据操作来查询空间数据。</P> <P ><FONT face="Times New Roman"> SDE</FONT>包括一个<FONT face="Times New Roman">C</FONT>语言应用程序接口<FONT face="Times New Roman">(API)</FONT>,它提供最大能力的执行效率和极大的灵活性。下一章,我们将详细解绍与<FONT face="Times New Roman">SDE</FONT>的连接。</P> <H2 >1.2纵览<FONT face="Times New Roman">MapObjects</FONT></H2> <P ><FONT face="Times New Roman"> MapObjects</FONT>包含一组具有属性,事件和方法的目标。</P> <P ><FONT face="Times New Roman"> </FONT>你已经看到你可通过地图控件快速建立一简单应用程序,但实际的应用中,需要使用<FONT face="Times New Roman">OLE Automation objects</FONT>。当你初次使用<FONT face="Times New Roman">MapObjects</FONT>你应了解这些目标、属性和方法。这些对于<FONT face="Times New Roman">MapObjects</FONT>的全部组织是非常有用的。</P> <P ><FONT face="Times New Roman">MapObjects</FONT>的目标分为四组:</P> <P align=center>§ 数据通道目标组</P> <P align=center>§ 地图显示目标组</P> <P align=center>§ 几何图形目标组</P> <P align=center>§ 地址匹配目标组</P> <H3 ><FONT size=5>数据通道目标组</FONT></H3> <P ><FONT face="Times New Roman"> </FONT>通过数据通道目标组,你能建立与地图数据的联系。增加属性值,从地图元素上反馈属性信息。数据通道目标组由以下部件组成:</P> <P ><B ><FONT face="Times New Roman"> </FONT></B><B >数据连接</B><FONT face="Times New Roman">(Data Connection)</FONT>目标是<FONT face="Times New Roman">MapObjects</FONT>通向地图数据的通道。它包括属性和方法来建立与地理数据集合<FONT face="Times New Roman">(GeoDatasets)</FONT>的联系。</P> <P ><B ><FONT face="Times New Roman"> </FONT></B><B >地理数据集合</B><FONT face="Times New Roman">( GeoDataset)</FONT>目标代表制图数据并可引用图层。它可引用形文件或<FONT face="Times New Roman">SDE layer</FONT>的数据。</P> <P ><B ><FONT face="Times New Roman"> </FONT></B><B >地理数据集合</B>是对于一个数据连接的所有地理数据集合目标的总合。它是一特定文件夹中所有形文件或<FONT face="Times New Roman">SDE</FONT>数据库中所有<FONT face="Times New Roman">SDE</FONT>层。</P> <P ><B ><FONT face="Times New Roman"> </FONT></B><B >记录集合</B><FONT face="Times New Roman">(Record set)</FONT>目标代表一个图层的记录。如果你做了一个选择集,它就代表所选记录。它类似于数据库指针。</P> <P ><FONT face="Times New Roman"> <B >TableDesc</B></FONT>目标给你关于与记录集相连的表的字段的信息。</P> <P ><FONT face="Times New Roman"> </FONT><B >表</B><FONT face="Times New Roman">(Table)</FONT>目标是一个只读数据通道目标。它代表来自<FONT face="Times New Roman">ODBC </FONT>数据源的一个表单。你可增加一表作为与图层目标的关联或为了大批地址匹配。</P> <P ><FONT face="Times New Roman"> </FONT><B >字段集合</B>包括记录集目标的字段目标。</P> <P ><FONT face="Times New Roman"> </FONT><B >统计</B>目标代表关于一个记录集的简单统计信息。你首先应用一方法计算关于记录集的统计值,然后可在统计目标中检查结果。</P> <P ><FONT face="Times New Roman"> </FONT><B >字串集合</B>是一组标准字符串数据类型集合。你可通过它从其它目标中取值来自接口控件<FONT face="Times New Roman">(</FONT>如列表框<FONT face="Times New Roman">)</FONT>中增加数据。</P> <H3 ><FONT size=5>地图显示目标组</FONT></H3> <P ><FONT face="Times New Roman"> </FONT>通过地图显示目标组,你能用符号或专题描述画一张地图。你也可加入图像做为背景,在地图上显示动态数据。地图显示目标组由以下部件组成:</P> <P ><FONT face="Times New Roman"> </FONT><B >地图控件</B>使你能显示图层、图像层,和动态跟踪图层目标,你可编写代码来控制鼠标驱动绘图事件,设置显示参数,用方法可画元素,闪烁选择的元素,计算点与元素的距离,输入线,圆,三角。</P> <P ><FONT face="Times New Roman"> </FONT><B >层</B><FONT face="Times New Roman">(Layer)</FONT>集合是服务于地图控件的图层目标和影像层目标的集合。</P> <P ><FONT face="Times New Roman"> </FONT><B >图层</B>目标代表带有一些显示属性的地理数据集合目标。它可让你处理专题地图,此目标有几个方法来查找和选择地理元素。</P> <P ><FONT face="Times New Roman"> </FONT><B >图像层</B>目标代表一作为地图控件上的背景的影像文件。</P> <P ><FONT face="Times New Roman"> </FONT><B >动态跟踪图层</B><FONT face="Times New Roman">(Tracking Layer)</FONT>目标让你能动态拖拽元素而无需重显。这对实时数据获取是十分理想的<FONT face="Times New Roman">(</FONT>如<FONT face="Times New Roman">GPS)</FONT>。它也可用于显示基本几何形状<FONT face="Times New Roman">(</FONT>如三角、圆<FONT face="Times New Roman">)</FONT>和描述性文本。它们都不是地图数据的一部分。</P> <P ><FONT face="Times New Roman"> <B >Geo Event</B></FONT>目标代表可加到<FONT face="Times New Roman">Tracking Layer</FONT>目标上的点元素。</P> <P ><FONT face="Times New Roman"> </FONT><B >符号</B><FONT face="Times New Roman">(symbol)</FONT>目标是广泛使用的目标,它影响如何在地图上显示元素的许多方面。其属性包括:颜色、字形、大小、形状。</P> <P ><FONT face="Times New Roman"> </FONT><B >文本</B><FONT face="Times New Roman">(Textsymbol) </FONT>目标代表文本的某些属性<FONT face="Times New Roman">(</FONT>如准线、字型<FONT face="Times New Roman">)</FONT></P> <P ><FONT face="Times New Roman"> <B >ClassBreaksRenderer</B></FONT>目标使你能在图层目标中通过分类的办法依数值字段显示元素。</P> <P ><FONT face="Times New Roman"> <B >ValueMapRender</B></FONT>目标使你在图层目标中通过特殊字段中单独的值,用符号来显示元素。</P> <P ><FONT face="Times New Roman"> <B >LableRenderer</B></FONT>目标使你在图层目标中,依元素的某一字段的属性标注文本。</P> <H3 ><FONT size=5>几何图形目标组</FONT></H3> <P ><FONT face="Times New Roman"> </FONT>几何图形目标组提供几种功效:依从图层中选择的元素反馈几何信息;向图层添加几何目标;向地图中画几何目标而不更新图层。几何图形目标组由以下部件组成:</P> <P ><FONT face="Times New Roman"> </FONT><B >矩形</B><FONT face="Times New Roman">(Rectangle)</FONT>目标经常用来设置和反馈地图范围,也用来画矩形。</P> <P ><FONT face="Times New Roman"> </FONT><B >点集合</B>存贮线和多边形目标的坐标。</P> <P ><FONT face="Times New Roman"> </FONT><B >点</B>目标代表具有<FONT face="Times New Roman">X</FONT>、<FONT face="Times New Roman">Y</FONT>坐标的点。</P> <P ><FONT face="Times New Roman"> </FONT><B >线</B>目标代表地图上的一条线。</P> <P ><B >多边形</B>目标代表多边形。它的头一个点和最后一个点在它的点集合上是相同的。</P> <P ><FONT face="Times New Roman"> </FONT><B >椭圆</B>目标代表椭圆和圆。</P> <H3 ><FONT size=5>地址匹配目标组</FONT></H3> <P ><FONT face="Times New Roman"> </FONT>地址匹配目标组让你进入一图层上的某个地址,该地址具有街道和地址范围并返回一个位置,你也可发现十字路口的位置和地名。地址匹配目标组由以下部件组成:</P> <P ><FONT face="Times New Roman"> </FONT><B >地址匹配</B><FONT face="Times New Roman">(Address Matcher)</FONT>目标让你列出含有地址范围的道路中心线的地理数据集合<FONT face="Times New Roman">,</FONT>并具有为单个或一批地址匹配的方法。</P> <P ><FONT face="Times New Roman"> </FONT><B >地址</B>目标代表关于<FONT face="Times New Roman">Address Matcher</FONT>目标的方法中标准化地址。</P> <P ><FONT face="Times New Roman"> </FONT><B >定位目标</B><FONT face="Times New Roman">(Place Locator)</FONT>让你列出带有地名的地理数据集并通过一个方法找出地名的位置。</P> <P ><FONT face="Times New Roman"> </FONT><B >地址位置</B><FONT face="Times New Roman">(Address Location)</FONT>目标包含一段代码指示是否<FONT face="Times New Roman">(</FONT>或如何<FONT face="Times New Roman">) </FONT>一个地址被解决如果已被解决指出与地址匹配的图型位置。</P> <H2 >1.3<FONT face="Times New Roman"> moView </FONT>应用程序</H2> <P ><FONT face="Times New Roman"> </FONT>我们提供一种叫作<FONT face="Times New Roman">moView</FONT>的应用程序来展示<FONT face="Times New Roman">MapObjects</FONT>许多功能的优点并提供模板,在这本书的许多章节将通过代码片段和来自于<FONT face="Times New Roman"> moView </FONT>及其它例子的应用来揭示<FONT face="Times New Roman">MapObjects</FONT>。</P> <P ><FONT face="Times New Roman"> </FONT>你可在<FONT face="Times New Roman">MapObjects</FONT>光盘的例子目录中找到<FONT face="Times New Roman">moView</FONT>,如要学习只需考贝<FONT face="Times New Roman">moView</FONT>文件夹到你的系统目录中。</P> <P ><FONT face="Times New Roman"> moView</FONT>是一种普通简单的制图应用程序。它的接口围绕着地图控件而调整,这种类型叫作地图中枢<FONT face="Times New Roman">(map ceneric)</FONT>,也许在你的应用程序中地图很象是一个附件而不是核心。</P> <P ><FONT face="Times New Roman"> </FONT>在应用程序中,没有硬编译代码<FONT face="Times New Roman">(Hard coded)</FONT>的数据源,你可使用任何<FONT face="Times New Roman">MapObjects</FONT>可接受的数据。<FONT face="Times New Roman">moView</FONT>展示了许多事件、属性和方法。并提供一个框架使你在开发程序时可踊跃前进。</P> <P ><FONT face="Times New Roman"> </FONT>你可为某特定市场建立纵向应用程序。这时你可使用<FONT face="Times New Roman">moView</FONT>片段,它给你的应用程序做向导。并可扩展为特定应用程序所设计的接口。</P> <H3 ><FONT size=5>运行<FONT face="Times New Roman"> moView </FONT></FONT></H3> <P ><FONT face="Times New Roman"> </FONT>一但在<FONT face="Times New Roman">VB</FONT>内装入<FONT face="Times New Roman">moView</FONT>,你可按<FONT face="Times New Roman">F5</FONT>或点<FONT face="Times New Roman">Run</FONT>菜单中的<FONT face="Times New Roman"> Start</FONT>。</P> <P ><FONT face="Times New Roman"> </FONT>当你打开<FONT face="Times New Roman">moView</FONT>你就会看到一个主表和一个空地图显示区,你可点工具条中第二个按钮<FONT face="Times New Roman">(</FONT>地图目录<FONT face="Times New Roman">)</FONT>来引入图层,地图目录表很象<FONT face="Times New Roman">VB</FONT>中地图控件属性表单。</P> <H3 ><FONT size=5><FONT face="Times New Roman">moView </FONT>命令集</FONT></H3> <P ><FONT face="Times New Roman">moView</FONT>的主要命令被装在主表的工具条中。</P> <P ><B >打印</B>,向缺省打印机输出地图控件上的当前显示。</P> <P ><B >查找</B>,可产生一元素查找表,通过它你可根据属性来定位元素。</P> <P ><B >空间选择</B><FONT face="Times New Roman">(Spatial select)</FONT>,将产生空间选择表,通过它可实行<FONT face="Times New Roman">MapObjects</FONT>的所有空间寻找方法。</P> <P ><B >地址匹配</B><FONT face="Times New Roman">(Adress matching)</FONT>,可产生地址匹配表,通过它可执行基础地址匹配。</P> <P ><B >撑满</B><FONT face="Times New Roman">(Full extent)</FONT>,在地图控件中撑满地图包括所有图层中的所有元素。</P> <P ><B >放大</B><FONT face="Times New Roman">( Zoom in )</FONT>,开窗放大。</P> <P ><B >缩小</B><FONT face="Times New Roman">(Zoom out )</FONT>,以鼠标点为中心降低地图比例二倍。</P> <P ><B >漫游</B><FONT face="Times New Roman">(Pan)</FONT></P> <P ><B >标注</B><FONT face="Times New Roman">(Edeneify)</FONT>,标注鼠标点或附近。</P> <P ><B >图形</B><FONT face="Times New Roman">(Graphics)</FONT>,激活图形工具条可画几何图形。</P> <H3 ><FONT size=5>框架开发</FONT></H3> <P ><FONT face="Times New Roman"> </FONT>用<FONT face="Times New Roman">VB</FONT>建立一地图应用程序的用户接口是一项特殊的要求。因为<FONT face="Times New Roman">VB</FONT>提供的控件最适合交互式文本和表,对于图形仅为边缘插图功能象地图的图式。<FONT face="Times New Roman">moView</FONT>的一个重要的中心任务是解决建立地图用户接口问题。</P> <P ><FONT face="Times New Roman"> </FONT>我们不选用第三方控件,因为我们不能预言或假设你除了<FONT face="Times New Roman">VB</FONT>提供的控件以外使用什么控件。为建立地图应用程序的用户接口。<FONT face="Times New Roman"> </FONT>你可选择任何一个厂商提供的控件。</P> <P ><FONT face="Times New Roman"> </FONT>对于<FONT face="Times New Roman">moView </FONT>应用程序的源代码和表你都有通道与连接,无论你有无<FONT face="Times New Roman">VB</FONT>经验,<FONT face="Times New Roman">moView </FONT>的代码对你都是有价值的。</P> <H3 ><FONT size=5><FONT face="Times New Roman">moView </FONT>的方针</FONT></H3> <P ><FONT face="Times New Roman"> </FONT>你会发现<FONT face="Times New Roman"> moView </FONT>应用程序在<FONT face="Times New Roman">VB</FONT>下安装了一些程序标准,这些应用程序提高了应用程序的健壮性、可读性和可靠性。你的选择是由你和应用程序的大小和特性决定的。对于一成功的应用程序开发来说。程序标准是一个基本部份。</P> <P ><FONT face="Times New Roman"> </FONT>在<FONT face="Times New Roman">moView</FONT>中使用的一些程序方法:</P> <P >用控件的标准前缀的命名约定。</P> <P >整个代码中大量的描述性注释。</P> <P >变量范围限制和全局变量限制。</P> <P >在开始阶段装入并隐藏表来优化执行。</P> <P >向标准模型中压缩数据和方法。</P> |
|
1楼#
发布于:2007-11-28 00:03
支持 拿走了 哈哈 虽然现在还不是怎么懂 但是我想将来一定有用的 谢谢了<img src="images/post/smile/dvbbs/em01.gif" />
|
|