CN106503204A - The shared MapGIS dot-form map symbol methods of OMS - Google Patents
The shared MapGIS dot-form map symbol methods of OMS Download PDFInfo
- Publication number
- CN106503204A CN106503204A CN201610948514.9A CN201610948514A CN106503204A CN 106503204 A CN106503204 A CN 106503204A CN 201610948514 A CN201610948514 A CN 201610948514A CN 106503204 A CN106503204 A CN 106503204A
- Authority
- CN
- China
- Prior art keywords
- symbol
- point map
- point
- oms
- mapgis
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000013507 mapping Methods 0.000 claims abstract description 57
- 238000013075 data extraction Methods 0.000 claims abstract description 8
- 238000006243 chemical reaction Methods 0.000 claims description 8
- 238000000605 extraction Methods 0.000 claims description 5
- 239000007787 solid Substances 0.000 description 7
- 238000013506 data mapping Methods 0.000 description 5
- 238000011161 development Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 238000011160 research Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000004888 barrier function Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000005065 mining Methods 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Remote Sensing (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
Abstract
本发明公开了一种OMS共享MapGIS点状地图符号方法,包括:(1)MapGIS点状地图符号数据提取:将MapGIS点状地图符号导出为XML格式文件,并针对该类XML文件符号信息读取与遍历;(2)MapGIS点状地图符号属性信息向OMS地图符号映射:从提取的信息中分析出MapGIS点状地图符号的属性信息,并将属性信息共享到OMS点状地图符号;(3)MapGIS点状地图符号形状信息向OMS地图符号映射:从MapGIS点状地图符号提取的信息中,识别MapGIS点状地图符号形状类别,针对不同形状信息分别映射为OMS地图符号的点状地图符号。该方法能大大提高异构平台中点状地图符号的可复用效率。
The invention discloses a method for OMS sharing MapGIS point map symbols, including: (1) MapGIS point map symbol data extraction: exporting MapGIS point map symbols into XML format files, and reading symbol information for this type of XML file and traversal; (2) MapGIS point map symbol attribute information to OMS map symbol mapping: analyze the attribute information of MapGIS point map symbols from the extracted information, and share the attribute information with OMS point map symbols; (3) MapGIS point map symbol shape information to OMS map symbol mapping: From the information extracted from MapGIS point map symbols, identify the shape category of MapGIS point map symbols, and map different shape information into point map symbols of OMS map symbols. This method can greatly improve the reusability efficiency of point map symbols in heterogeneous platforms.
Description
技术领域technical field
本发明涉及地理信息共享与可视化表达领域,具体涉及一种MapGIS点状地图符号共享至开放式地图符号模型(OMS)的方法。The invention relates to the field of geographic information sharing and visual expression, in particular to a method for sharing MapGIS point map symbols to an open map symbol model (OMS).
背景技术Background technique
地图符号共享是地理信息可视化表达与共享的重要研究领域,地图符号共享技术主要解决因平台差异性带来的“符号信息孤岛”问题。在实际生产中,不同平台的地图符号独立存储,相互没有交集,在数据共享时,难以实现地图符号信息的同步共享,从而造成大量符号数据冗余存在,带来较大的地图符号重复制作的工作量。Map symbol sharing is an important research field in the visual expression and sharing of geographic information. The map symbol sharing technology mainly solves the problem of "symbol information islands" caused by platform differences. In actual production, the map symbols of different platforms are stored independently and have no intersection with each other. When sharing data, it is difficult to realize the synchronous sharing of map symbol information, resulting in a large amount of symbol data redundancy, which brings about a large number of repeated map symbols. workload.
我国的GIS技术兴起和发展,离不开传统的GIS平台的多元化演变。目前,活跃在GIS领域中的商业GIS平台主要有ArcGIS、Super Map、MapGIS、Geo Star等。这些平台被广泛应用于国土、规划、农林、环保、测绘等领域,逐步演变形成了由GIS平台垄断行业市场的格局,可以称之为的“难以打破的GIS行业间技术壁垒”。这种现象的产生严重阻碍了各行业间的信息传送,也大大限制了GIS平台与行业融合的空间。GIS学者们对此展开了大量的技术研究和学术探索,数据共享和开源GIS理念应运而生。数据共享专门针对异构GIS平台空间数据组织形式,提出相互间的数据交换方法,这些地理空间数据共享技术和方法日益趋于成熟和稳健。然而,在地理信息表达环节,“被人冷落”的地图符号却亦因平台差异,难以和地理空间数据同步共享。The rise and development of my country's GIS technology is inseparable from the diversified evolution of the traditional GIS platform. At present, commercial GIS platforms active in the GIS field mainly include ArcGIS, Super Map, MapGIS, Geo Star, etc. These platforms are widely used in land, planning, agriculture and forestry, environmental protection, surveying and mapping and other fields, and gradually evolved into a pattern in which GIS platforms monopolize the industry market, which can be called "difficult to break technical barriers between GIS industries". The occurrence of this phenomenon seriously hinders the information transmission among various industries, and also greatly limits the space for the integration of GIS platforms and industries. GIS scholars have launched a lot of technical research and academic exploration, and the concept of data sharing and open source GIS came into being. Data sharing is specifically aimed at the spatial data organization form of heterogeneous GIS platforms, and proposes mutual data exchange methods. These geospatial data sharing technologies and methods are becoming more mature and robust. However, in the process of expressing geographic information, it is difficult to share synchronously with geospatial data because of platform differences.
在矿产、地质应用领域,多采用MapGIS平台作为空间数据表达和存储的GIS平台,MapGIS平台中地图符号包含了点、线、面三类地图符号,点状地图符号可划分为矢量点状地图符号、字体点状地图符号和栅格点状地图符号,其中,以点状地图符号结构最为复杂,亦难以与MapGIS空间数据同步共享。面对这一问题,传统的解决方案则是采用符号对照表的形式,构建一套共享目标平台上的点状地图符号对照表,建立索引对应关系。这种方案一方面需要耗费大量时间制作目标平台的点状地图符号库;另一方面,针对地图符号的更新和变动,则亦需要进行更新,带来较大的符号编辑工作量。名称为“AutoCAD图块与基于路径的点状地图符号交换方法”(申请号201019026028.1,公开号101783023B)、名称为“TrueType符号与基于路径的点状地图符号交换方法”(申请号201019026034.7,公开号101799933B)、名称为“图元法点状地图符号与基于路径的点状地图符号交换方法”(申请号201019026026.2,公开号101751683B)的专利,公开了AutoCAD图块、TrueType符号以及图元法点状地图符号与基于路径的点状地图符号交换方法,但它们均未涉及开放式地图符号(OMS)共享MapGIS点状地图符号方法。In the field of mining and geological applications, the MapGIS platform is often used as the GIS platform for spatial data expression and storage. The map symbols in the MapGIS platform include three types of map symbols: point, line, and plane. Point map symbols can be divided into vector point map symbols , font point map symbols and raster point map symbols, among which point map symbols have the most complex structure and are difficult to share with MapGIS spatial data synchronously. Faced with this problem, the traditional solution is to use the form of a symbol comparison table to build a set of point-shaped map symbol comparison tables on the shared target platform to establish index correspondence. On the one hand, this solution needs to spend a lot of time to create the point map symbol library of the target platform; on the other hand, for the update and change of map symbols, it also needs to be updated, which brings a large symbol editing workload. The name is "AutoCAD block and path-based point map symbol exchange method" (application number 201019026028.1, publication number 101783023B), and the name is "TrueType symbol and path-based point map symbol exchange method" (application number 201019026034.7, publication number 101799933B), the patent titled "Exchanging Method for Point Map Symbols by Primitive Method and Point Map Symbol Based on Path" (Application No. 201019026026.2, Publication No. 101751683B), discloses AutoCAD blocks, TrueType symbols and point map symbols by primitive method Map symbols and path-based point map symbol exchange methods, but none of them involve the Open Map Symbol (OMS) shared MapGIS point map symbol method.
为解决上述问题,需要一种地图符号共享方法,利用该方法能够在ArcGIS平台中使用MapGIS平台下的点状地图符号,实现OMS共享MapGIS点状地图符号,提高地图符号的使用效率。In order to solve the above problems, a map symbol sharing method is needed. By using this method, the point map symbols under the MapGIS platform can be used in the ArcGIS platform, so that the OMS can share the MapGIS point map symbols and improve the efficiency of the use of map symbols.
发明内容Contents of the invention
本发明旨在完善现有地图符号共享方面存在的缺陷,解决异构平台中点状地图符号共享问题。引入开放地图符号模型(Open Map Symbol符号模型,简称为OMS符号模型),提出OMS地图符号共享MapGIS点状地图符号图元方法,提供MapGIS点符号图元向OMS点状地图符号模型映射方案,实现OMS符号共享MapGIS点状地图符号。The invention aims to improve the defects existing in the sharing of existing map symbols, and solve the problem of sharing point map symbols in heterogeneous platforms. Introduce the open map symbol model (Open Map Symbol symbol model, OMS symbol model for short), propose OMS map symbol sharing MapGIS point map symbol primitive method, provide MapGIS point symbol primitive to OMS point map symbol model mapping scheme, realize OMS symbols share MapGIS point map symbols.
本发明采用的技术方案为:The technical scheme adopted in the present invention is:
OMS共享MapGIS点状地图符号方法,该方法包括MapGIS点状地图符号数据提取、MapGIS点状地图符号属性信息向OMS地图符号映射、MapGIS点状地图符号形状信息向OMS地图符号映射三个部分;OMS shares the MapGIS point map symbol method, which includes MapGIS point map symbol data extraction, mapping of MapGIS point map symbol attribute information to OMS map symbols, and mapping of MapGIS point map symbol shape information to OMS map symbols.
所述MapGIS点状地图符号数据提取包括以下几个步骤:The MapGIS point map symbol data extraction includes the following steps:
步骤11,MapGIS点状地图符号库导出:在MapGIS符号浏览器中,选择所需共享的点状地图符号库,将MapGIS点状地图符号库以XML格式保存至本地计算机中;Step 11, exporting the MapGIS point map symbol library: In the MapGIS symbol browser, select the point map symbol library to be shared, and save the MapGIS point map symbol library to the local computer in XML format;
步骤12,XML格式MapGIS点状地图符号数据信息提取:遍历点状地图符号库中的每个地图符号节点,获取MapGIS点状地图符号数据信息;Step 12, XML format MapGIS point map symbol data information extraction: traverse each map symbol node in the point map symbol library to obtain MapGIS point map symbol data information;
所述MapGIS点状地图符号属性向OMS地图符号映射包括以下几个步骤:The mapping of the MapGIS point map symbol attribute to the OMS map symbol includes the following steps:
步骤21,MapGIS点状地图符号基本信息映射:针对步骤12中获取的XML符号库头文件信息,提取点状地图符号库名称以及包含点状地图符号个数信息;遍历XML符号库头文件的点状符号节点,提取每一个符号的头文件信息,包括符号类别、数据长度、图元个数、符号中心点、符号编码和符号名称;针对获取的符号库头文件,基于OMS地图符号结构创建空的符号库对象;针对XML符号库头文件中每一个点状地图符号节点的遍历过程,创建OMS点状地图符号,并设置当前OMS点状地图符号的符号类别、路径个数、符号编码以及符号名称的属性信息;Step 21, MapGIS point map symbol basic information mapping: for the XML symbol library header file information obtained in step 12, extract the point map symbol library name and the number of point map symbols; traverse the points of the XML symbol library header file Shape symbol node, extract the header file information of each symbol, including symbol category, data length, number of primitives, symbol center point, symbol code and symbol name; for the obtained symbol library header file, create an empty space based on the OMS map symbol structure symbol library object; for the traversal process of each point map symbol node in the XML symbol library header file, create an OMS point map symbol, and set the symbol category, path number, symbol code and symbol of the current OMS point map symbol attribute information of the name;
步骤22,MapGIS点状地图符号包围合映射:针对获取的XML符号库头文件中点状地图符号信息中图元形状信息,求算出所有图元点的坐标X、Y的最大值和最小值,由此构造成点状地图符号最大的外接矩形,将该外接矩形信息作为包围盒,映射至OMS点状地图符号的包围盒中的点状地图符号;Step 22, MapGIS point map symbol enclosing mapping: for the graph element shape information in the point map symbol information in the obtained XML symbol library header file, calculate the maximum and minimum values of coordinates X and Y of all graph element points, Thus, the largest circumscribing rectangle of the point map symbol is constructed, and the circumscribing rectangle information is used as a bounding box to map to the point map symbol in the bounding box of the OMS point map symbol;
步骤23,MapGIS点状地图符号单位映射:针对MapGIS点状地图符号的形状坐标信息,进行单位换算;Step 23, MapGIS point map symbol unit mapping: perform unit conversion for the shape coordinate information of the MapGIS point map symbol;
所述MapGIS点状地图符号形状信息向OMS地图符号映射是指:针对读取的XML符号库头文件中每一个点状地图符号遍历,获取遍历中第i个点状地图符号的符号项节点,该节点为点状地图符号的几何信息,针对该节点中的空间信息向OMS点状地图符号的路径映射,具体包括以下几个步骤:The mapping of the MapGIS point map symbol shape information to the OMS map symbol refers to: for each point map symbol traversal in the read XML symbol library header file, obtain the symbol item node of the ith point map symbol in the traversal, The node is the geometric information of the point map symbol, and the spatial information in the node is mapped to the path of the OMS point map symbol, which specifically includes the following steps:
步骤31,点状地图符号类别判读:针对步骤12获取的MapGIS点状地图符号数据信息中不同类别的地图符号,筛选出点状类型的地图符号,判断点状地图符号类别,类别分为:矢量点符号、栅格点符号和TrueType字体符号,根据点状地图符号的类别执行下面的步骤32、步骤33或步骤34;Step 31, Interpretation of point map symbol category: For map symbols of different types in the MapGIS point map symbol data information obtained in step 12, filter out point type map symbols, and determine the point map symbol category. The category is divided into: vector For point symbols, grid point symbols and TrueType font symbols, perform the following step 32, step 33 or step 34 according to the category of point map symbols;
步骤32,矢量点符号向OMS点状地图符号映射:将矢量点符号的每一个图元分别映射为OMS矢量路径图层,并将所有映射后的矢量路径图层添加至OMS点状地图符号中;Step 32, mapping the vector point symbol to the OMS point map symbol: map each graphic element of the vector point symbol to an OMS vector path layer, and add all the mapped vector path layers to the OMS point map symbol ;
步骤33,栅格点符号向OMS点状地图符号映射:将栅格点符号数据映射为OMS纹理路径图层,并将纹理路径图层添加至OMS点状地图符号;Step 33, mapping the grid point symbol to the OMS point map symbol: mapping the grid point symbol data to an OMS texture path layer, and adding the texture path layer to the OMS point map symbol;
步骤34,TrueType字体点状地图符号向OMS点状地图符号映射:将TrueType字体符号映射为OMS字体路径图层,并添加至OMS点状地图符号;Step 34, mapping the TrueType font point map symbol to the OMS point map symbol: mapping the TrueType font symbol to the OMS font path layer, and adding it to the OMS point map symbol;
步骤35,OMS点状地图符号存储:将转换后的点状地图符号存放至OMS点状地图符号库中。Step 35, storing OMS point map symbols: storing the converted point map symbols in the OMS point map symbol library.
本发明的OMS共享MapGIS点状地图符号方法针对异构GIS平台地图符号特点,引进OMS开放地图符号模型,提出OMS共享MapGIS点状地图符号方法,提供了MapGIS符号库点状地图符号信息提取、MapGIS点状地图符号属性信息映射方法、MapGIS点状地图符号形状信息映射方法,为MapGIS地图点状图元共享至OMS开放地图符号模型提供了一种新的技术方案,验证了OMS地图符号模型的开放性和兼容性,有助于减少点状地图符号共享过程中出现的信息缺失问题,大大提高异构平台中点状地图符号的可复用效率。The OMS shared MapGIS point map symbol method of the present invention aims at the map symbol characteristics of the heterogeneous GIS platform, introduces the OMS open map symbol model, proposes the OMS shared MapGIS point map symbol method, and provides MapGIS symbol library point map symbol information extraction, MapGIS The point map symbol attribute information mapping method and the MapGIS point map symbol shape information mapping method provide a new technical solution for the sharing of MapGIS map point primitives to the OMS open map symbol model, and verify the openness of the OMS map symbol model. It helps to reduce the problem of missing information in the sharing process of point map symbols, and greatly improves the reusability efficiency of point map symbols in heterogeneous platforms.
附图说明Description of drawings
图1为本发明的OMS共享MapGIS点状地图符号结构示意图;Fig. 1 is the OMS shared MapGIS point map symbol structural representation of the present invention;
图2为本发明的MapGIS点状地图符号属性与形状结构示意图;Fig. 2 is the MapGIS dot map symbol attribute and the shape structure schematic diagram of the present invention;
图3为本发明的OMS点状地图符号结构示意图;Fig. 3 is a schematic structural representation of the OMS dotted map symbol structure of the present invention;
图4为本发明的MapGIS矢量符号映射为OMS路径点状地图符号图层示意图;Fig. 4 is that the MapGIS vector symbol mapping of the present invention is the schematic diagram of the OMS path point shape map symbol layer;
图5为本发明的MapGIS字体图元映射为OMS字体点状地图符号图层示意图;Fig. 5 is that the MapGIS font graphic element of the present invention is mapped to the OMS font dotted map symbol layer schematic diagram;
图6为本发明的MapGIS栅格图元映射为OMS栅格点状地图符号图层示意图。Fig. 6 is a schematic diagram of the mapping of MapGIS raster primitives into OMS raster point map symbol layers according to the present invention.
具体实施方式detailed description
下面结合附图与实施例对本发明做进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
如图1所示,OMS共享MapGIS点状地图符号方法,该方法包括了MapGIS点状地图符号数据提取、MapGIS点状地图符号属性数据映射和MapGIS点状地图符号形状数据向OMS映射三个部分。MapGIS点状地图符号数据提取指本发明设计的将MapGIS点状地图符号导出为XML格式文件,并针对该类XML文件符号信息读取与遍历的方法;MapGIS点状地图符号属性数据映射是指从提取的信息中分析出MapGIS点状地图符号的属性信息,并将属性信息共享到OMS点状地图符号的方法;MapGIS点状地图符号形状数据向OMS映射是指从MapGIS点状地图符号提取的信息中,识别MapGIS点状地图符号形状类别,针对不同形状信息分别映射为OMS地图符号的点状地图符号。以下分别说明各个实现步骤,以提供参考。As shown in Figure 1, OMS shares the MapGIS point map symbol method, which includes three parts: MapGIS point map symbol data extraction, MapGIS point map symbol attribute data mapping, and MapGIS point map symbol shape data mapping to OMS. MapGIS point-like map symbol data extraction refers to the MapGIS point-like map symbol that the present invention designs is exported as XML format file, and at the method for this class XML file symbol information reading and traversal; MapGIS point-like map symbol attribute data mapping refers to from The method of analyzing the attribute information of MapGIS point map symbols from the extracted information, and sharing the attribute information with OMS point map symbols; the mapping of MapGIS point map symbol shape data to OMS refers to the information extracted from MapGIS point map symbols In , the shape category of MapGIS point map symbols is identified, and different shape information is mapped to point map symbols of OMS map symbols. Each implementation step is described below for reference.
本实例以Windows 7为操作系统环境,MapGIS K9二次开发版为实验平台,采用Microsoft Visual studio2010为开发环境,C++、XML为开发语言,OMS符号预览器为成果验证平台,MapGIS点状地图符号库通过XML格式输出为.xml格式文件,OMS地图符号库输出文件为.LS格式符号库文件存储。This example uses Windows 7 as the operating system environment, MapGIS K9 secondary development version as the experimental platform, Microsoft Visual studio2010 as the development environment, C++, XML as the development language, OMS symbol previewer as the result verification platform, and MapGIS point map symbol library The XML format is output as a .xml format file, and the output file of the OMS map symbol library is stored as a .LS format symbol library file.
(一)MapGIS点状地图符号库数据提取包括以下几个步骤:(1) Data extraction of MapGIS point map symbol library includes the following steps:
步骤1MapGIS点状地图符号库导出;Step 1MapGIS point map symbol library export;
步骤2XML格式MapGIS点状地图符号信息提取。Step 2 XML format MapGIS point map symbol information extraction.
具体实施步骤如下:The specific implementation steps are as follows:
步骤1MapGIS点状地图符号库导出,指MapGIS K9版本的地图编辑器中,打开地图符号库管理器,选择所需共享的点状地图符号库,点击“整库导出为XML格式”按钮,在弹出保存对话框中,选择导出XML文件路径并保存。Step 1 MapGIS point map symbol library export refers to the map editor of MapGIS K9 version, open the map symbol library manager, select the point map symbol library to be shared, and click the "export the whole library to XML format" button, in the pop-up In the Save dialog box, select the export XML file path and save it.
步骤2XML格式MapGIS点状地图符号数据信息提取,指针对XML格式的MapGIS点状地图符号文件,读取XML格式点状地图符号库信息,包括识别和读取了MapGIS点状地图符号库的XML根节点信息和子节点信息,其中XML根节点描述了MapGIS点状地图符号所属软件版本、文件路径;子节点信息分为三类:符号库头信息、符号库的子分类信息以及符号库中具体符号信息,其中符号库头信息包括了符号库标识、符号库名称、符号库的子分类数、所包含符号个数,符号库的子分类信息包括子类编码和子类名称,符号库中具体符号信息包括符号头信息和符号图元信息两类,其中符号头信息包括符号类型、符号分类码、数据长度、子图元个数、符号原点、符号编码、名称、删除标识和颜色信息,符号图元信息包括子图元数、图元轮廓线信息、数据长度、填充的属性信息以及图元形状信息。Step 2 XML format MapGIS point map symbol data information extraction, pointing to the XML format MapGIS point map symbol file, read the XML format point map symbol library information, including identifying and reading the XML root of the MapGIS point map symbol library Node information and sub-node information, where the XML root node describes the software version and file path of the MapGIS point map symbol; sub-node information is divided into three categories: symbol library header information, symbol library subcategory information, and symbol information in the symbol library , where the header information of the symbol library includes the symbol library identification, the name of the symbol library, the number of subcategories of the symbol library, and the number of symbols contained, the subcategory information of the symbol library includes the subcategory code and the name of the subcategory, and the specific symbol information in the symbol library Including symbol header information and symbol primitive information, where symbol header information includes symbol type, symbol classification code, data length, number of sub-picture elements, symbol origin, symbol code, name, deletion mark and color information, symbol primitive The information includes the number of sub-primitives, outline information of primitives, data length, attribute information of filling and shape information of primitives.
(二)MapGIS点状地图符号属性数据映射包括以下几个步骤:(2) MapGIS point map symbol attribute data mapping includes the following steps:
步骤1MapGIS点状地图符号基本信息映射;Step 1MapGIS point map symbol basic information mapping;
步骤2MapGIS点状地图符号包围合映射;Step 2MapGIS dotted map symbols surround and map;
步骤3MapGIS点状地图符号单位映射。Step 3MapGIS point map symbol unit mapping.
具体实施步骤如下:The specific implementation steps are as follows:
步骤1MapGIS点状地图符号基本信息映射,针对XML格式下的点状地图符号库属性信息,构建符号库类,存储符号库名称、符号子类、符号数信息,将符号库属性映射至OMS点状地图符号库的符号库名称、符号类别;针对MapGIS点状地图符号属性,构建符号类,存储符号名称、符号编码、所属子类、符号图元、符号颜色、轮廓、填充信息,将该构建好的符号类映射到OMS点状地图符号的名称、编码、所述类别属性中,该存储结构如图2所示;Step 1MapGIS point map symbol basic information mapping, according to the point map symbol library attribute information in XML format, construct a symbol library class, store symbol library name, symbol subclass, symbol number information, and map symbol library attributes to OMS point shape The symbol library name and symbol category of the map symbol library; according to the MapGIS point map symbol attributes, build a symbol class, store the symbol name, symbol code, subclass, symbol primitive, symbol color, outline, fill information, and build it The symbol class is mapped to the name, code, and category attribute of the OMS point map symbol, and the storage structure is as shown in Figure 2;
步骤2MapGIS点状地图符号包围合映射,针对获取的XML中点状地图符号信息中图元形状信息,求算出所有图元点的X,Y最大值和最小值,由此构造成点状地图符号最大的外接矩形,将该外接矩形信息作为包围盒,映射至OMS点状地图符号的包围盒中。Step 2MapGIS point map symbol enclosing mapping, according to the shape information of the primitive in the point map symbol information in XML, calculate the maximum and minimum values of X and Y of all primitive points, and thus construct a point map symbol The largest circumscribing rectangle, the circumscribing rectangle information is used as a bounding box, and mapped to the bounding box of the OMS point map symbol.
步骤3MapGIS点状地图符号单位映射,针对MapGIS点状地图符号的形状坐标信息,进行相应单位换算。在MapGIS地图符号编辑器中,地图符号单位为毫米,在转换成的XML文件中,地图符号单位则是万分之一毫米,在进行单位换算的时候,根据OMS不同单位换算需求,建立一一映射转换模式,实现对毫米、厘米、分米、英镑等单位的换算方法;Step 3 MapGIS point map symbol unit mapping, according to the shape coordinate information of the MapGIS point map symbol, perform corresponding unit conversion. In the MapGIS map symbol editor, the map symbol unit is millimeter, and in the converted XML file, the map symbol unit is ten-thousandth of a millimeter. When performing unit conversion, according to the different unit conversion requirements of OMS, establish one by one Mapping conversion mode to realize conversion methods for millimeters, centimeters, decimeters, pounds, etc.;
(三)MapGIS点状地图符号形状数据映射包括以下几个步骤:(3) MapGIS point map symbol shape data mapping includes the following steps:
步骤1点状地图符号类别判读:用于从MapGIS符号库中筛选出点状地图符号,针对点状地图符号,从头文件中符号类别节点中识别点状地图符号类别并分别处理;Step 1 Interpretation of point map symbol categories: used to filter out point map symbols from the MapGIS symbol library, for point map symbols, identify point map symbol categories from the symbol category nodes in the header file and process them separately;
步骤2矢量点符号向OMS点状地图符号映射:用于将矢量点符号的每一个图元分别映射为OMS矢量路径图层,并将所有映射后的矢量路径图层添加至OMS点状地图符号中;Step 2 Mapping vector point symbols to OMS point map symbols: used to map each graphic element of vector point symbols to OMS vector route layers, and add all mapped vector route layers to OMS point map symbols middle;
步骤3栅格点符号向OMS点状地图符号映射;Step 3: mapping the grid point symbol to the OMS point map symbol;
步骤4TrueType字体点状地图符号向OMS点状地图符号映射;Step 4 Mapping of TrueType font point map symbols to OMS point map symbols;
步骤5OMS点状地图符号存储。Step 5 OMS point map symbol storage.
具体实施步骤如下:The specific implementation steps are as follows:
步骤1点状地图符号类头文件解析:针对当前MapGIS点状地图符号库,遍历具体的Symbol节点,读取并遍历Symbol节点下的Symbol Head子节点,获取符号类别节点的值,判断节点值若为257,则该点符号为矢量点符号;若该节点值为258,则该点符号为栅格点符号;若节点值为260,则该点符号为TrueType字体符号类型;若节点值为其他枚举值,则表明改符号不是点状地图符号,不进行点符号形状信息映射;Step 1 Analysis of point map symbol class header file: For the current MapGIS point map symbol library, traverse the specific Symbol node, read and traverse the Symbol Head child node under the Symbol node, obtain the value of the symbol category node, and judge whether the node value is If the node value is 257, the point symbol is a vector point symbol; if the node value is 258, the point symbol is a grid point symbol; if the node value is 260, the point symbol is a TrueType font symbol type; if the node value is other enumeration value, it indicates that the symbol is not a point map symbol, and no point symbol shape information mapping is performed;
步骤2矢量点符号向OMS点状地图符号映射:针对MapGIS矢量点状地图符号,遍历并读取符号节点下的Symbol Item图元,判断矢量点符号每一个子图的图元类别,主要包括线(曲线)、填充区、实心圆、空心圆、圆弧六类,分别针对每一类子图图元类别,建立图元与矢量路径图层的映射模型,具体映射方法如下:Step 2 Mapping vector point symbols to OMS point map symbols: for MapGIS vector point map symbols, traverse and read the Symbol Item primitives under the symbol node, and determine the primitive category of each submap of the vector point symbol, mainly including lines (curve), filled area, solid circle, hollow circle, and arc, respectively, for each type of submap primitive category, establish a mapping model between the primitive and the vector path layer. The specific mapping method is as follows:
(1)线(曲线)子图元映射方法(1) Line (curve) sub-graphic entity mapping method
MapGIS线(曲线)图元以离散点坐标序列存储在Line节点下,图元信息包括笔画颜色、笔画宽度。针对线(曲线)图元轨迹,遍历所有图元坐标对,判断是否为折线起点:如果是,则在OMS中Path->MoveTo至MapGIS折线图元的首节点,如果不是:采取Path->LineTo方法,绘制连接到上一点,直至遍历到最后一个坐标点,构建为一条OMS路径;线(曲线)子图元的笔画颜色、笔宽直接映射为OMS简单笔画样式;线(曲线)子图元不具备填充内容,故针对该类图元进行填充映射;MapGIS line (curve) primitives are stored under the Line node as a sequence of discrete point coordinates, and the primitive information includes stroke color and stroke width. For the trajectory of the line (curve) primitive, traverse all the coordinate pairs of the primitive to determine whether it is the starting point of the polyline: if yes, then in OMS, Path->MoveTo to the first node of the MapGIS polyline primitive, if not: take Path->LineTo Method, drawing is connected to the previous point until traversing to the last coordinate point to construct an OMS path; the stroke color and pen width of the line (curve) sub-entity are directly mapped to the OMS simple stroke style; the line (curve) sub-entity There is no filling content, so filling mapping is performed for this type of primitive;
(2)填充区子图元映射方法(2) Mapping method of sub-graphic elements in filled area
MapGIS填充区图元的填充边界路径以闭合的离散点坐标序列存储在Polygon节点下,坐标序列的起点和终点为同一坐标点,构成封闭区间。针对MapGIS填充区图元边界,遍历坐标序列,调用OMS中Path的Path->MoveTo、Path->LineTo方法构造路径,遍历至终点时调用Path->Close方法,实现填充区闭合;填充区轮廓笔画信息通过OuterPen、OuterColor获取笔画线宽及颜色,直接映射为OMS简单笔画样式;填充区填充颜色通过InterColor节点获取填充颜色,转换为OMS简单填充样式;The filling boundary path of the MapGIS filling area primitive is stored under the Polygon node as a closed discrete point coordinate sequence. The starting point and the ending point of the coordinate sequence are the same coordinate point, forming a closed interval. Aiming at the map element boundary of the filled area in MapGIS, traverse the coordinate sequence, call the Path->MoveTo and Path->LineTo methods of Path in OMS to construct the path, and call the Path->Close method when traversing to the end point to realize the closure of the filled area; outline strokes of the filled area The information obtains the stroke line width and color through OuterPen and OuterColor, and directly maps it to the OMS simple stroke style; the fill color of the filled area obtains the fill color through the InterColor node, and converts it to the OMS simple fill style;
(3)实心圆子图元映射方法(3) Solid circle sub-graphic element mapping method
实心圆子图元由正圆形状轮廓和内部填充构成,以圆心及圆周上通过垂直方向直径的点确定实心圆位置。针对实心圆子图元,读取Center和S_DOT节点坐标信息,调用OMS路径的Path->AddCircle方法创建矢量路径;实心圆轮廓笔画颜色及线宽信息映射为OMS简单笔画样式;实心圆填充颜色通过构建OMS简单填充样式构建;The solid circle sub-entity is composed of a perfect circle shape outline and internal filling, and the position of the solid circle is determined by the center of the circle and the point on the circumference that passes through the diameter in the vertical direction. For the solid circle sub-graphic element, read the coordinate information of the Center and S_DOT nodes, and call the Path->AddCircle method of the OMS path to create a vector path; the outline stroke color and line width information of the solid circle are mapped to the OMS simple stroke style; the fill color of the solid circle is constructed OMS simple filling style construction;
(4)空心圆子图元映射方法(4) Hollow circle sub-graphic element mapping method
空心圆子图元仅包含正圆形状(不含填充),以圆心及圆周上通过垂直方向直径的点确定空心圆位置。针对空心圆子图元向OMS矢量路径图层映射,获取圆心、半径信息,调用Path->AddCircle方法创建矢量路径;空心圆子图元路径的线宽、颜色信息映射为OMS的简单笔画样式;The hollow circle sub-entity only contains the shape of a perfect circle (without filling), and the position of the hollow circle is determined by the center of the circle and the point on the circumference that passes through the diameter in the vertical direction. Map the hollow circle sub-entity to the OMS vector path layer, obtain the center and radius information, and call the Path->AddCircle method to create a vector path; the line width and color information of the hollow circle sub-entity path are mapped to the simple stroke style of OMS;
(5)圆弧子图元映射方法(5) Arc sub-graphic element mapping method
圆弧子图元为空心圆圆周的一个部分(不含填充),以圆心、圆周上的起点、圆周上的终点确定圆弧图元位置。针对圆弧子图元映射模型,获取Center及S_DOT节点坐标信息,通过调用OMS的Path->AddArc方法构建路径;圆弧子图元路径的颜色及线宽信息由OuterPen、OuterColor节点获取,并映射为OMS的简单笔画样式;The arc sub-entity is a part of the circumference of the hollow circle (excluding filling), and the position of the arc primitive is determined by the center of the circle, the starting point on the circumference, and the end point on the circumference. For the arc sub-primitive mapping model, obtain the coordinate information of the Center and S_DOT nodes, and construct the path by calling the Path->AddArc method of OMS; the color and line width information of the arc sub-prime path is obtained by the OuterPen and OuterColor nodes, and mapped Simple stroke style for OMS;
步骤3栅格点符号向OMS点状地图符号映射:针对MapGIS栅格点符号,读取RasterData节点下的栅格图片路径,读取Bitmap至内存中,通过创建纹理路径图层,调用OMS的TexturePointSymbolLayer->SetTexturePath方法实现将栅格点符号向OMS的纹理路径图层映射;Step 3 Mapping the grid point symbol to the OMS point map symbol: for the MapGIS grid point symbol, read the path of the raster image under the RasterData node, read the Bitmap to the memory, and call the TexturePointSymbolLayer of OMS by creating a texture path layer ->SetTexturePath method realizes the mapping of the grid point symbol to the texture path layer of OMS;
步骤4TrueType字体点状地图符号向OMS点状地图符号映射:针对MapGIS的TrueType字体符号,读取字体的TTF代码(一般为十六进制码)及字体名称,通过构造路径字体符号,调用FontPointSymbol->SetFontFamily、FontPointSymbol->SetCode方法设置字体名称与字符编码,完成TrueType字体点状地图符号向OMS字体符号的映射。Step 4 Mapping of TrueType font point map symbols to OMS point map symbols: For TrueType font symbols of MapGIS, read the TTF code (usually hexadecimal code) and font name of the font, and call FontPointSymbol- >SetFontFamily, FontPointSymbol->SetCode method to set the font name and character code, and complete the mapping from TrueType font point map symbols to OMS font symbols.
步骤5OMS点状地图符号存储:针对上述步骤完成的MapGIS点状地图符号映射结果,获取构造的OMS点状地图符号,读取OMS地图符号库,调用SymbolLibrary->AddLineSymbol和Save方法将转换结果保存到指定路径下。Step 5 OMS point map symbol storage: According to the MapGIS point map symbol mapping result completed in the above steps, obtain the constructed OMS point map symbol, read the OMS map symbol library, call SymbolLibrary->AddLineSymbol and Save method to save the conversion result to under the specified path.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610948514.9A CN106503204B (en) | 2016-11-02 | 2016-11-02 | OMS shared MapGIS point map symbol method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610948514.9A CN106503204B (en) | 2016-11-02 | 2016-11-02 | OMS shared MapGIS point map symbol method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106503204A true CN106503204A (en) | 2017-03-15 |
CN106503204B CN106503204B (en) | 2019-05-14 |
Family
ID=58322146
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610948514.9A Active CN106503204B (en) | 2016-11-02 | 2016-11-02 | OMS shared MapGIS point map symbol method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106503204B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109682381A (en) * | 2019-02-22 | 2019-04-26 | 山东大学 | Big visual field scene perception method, system, medium and equipment based on omnidirectional vision |
CN114548039A (en) * | 2022-02-28 | 2022-05-27 | 中国铁路设计集团有限公司 | Method for making and using special drawing symbolic system based on font design |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101751683A (en) * | 2010-02-03 | 2010-06-23 | 南京师范大学 | Figure element dot symbol and dot map symbol exchange method based on path |
CN101783023A (en) * | 2010-02-03 | 2010-07-21 | 南京师范大学 | Method for exchanging AutoCAD (computer-aided design) graphic block with point map symbol based on path |
CN101799933A (en) * | 2010-02-03 | 2010-08-11 | 南京师范大学 | Conversion method of TrueType symbol and spotted map symbol based on path |
CN104851118A (en) * | 2015-05-25 | 2015-08-19 | 滁州学院 | Method for sharing CorelDraw point symbol in ArcGIS |
-
2016
- 2016-11-02 CN CN201610948514.9A patent/CN106503204B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101751683A (en) * | 2010-02-03 | 2010-06-23 | 南京师范大学 | Figure element dot symbol and dot map symbol exchange method based on path |
CN101783023A (en) * | 2010-02-03 | 2010-07-21 | 南京师范大学 | Method for exchanging AutoCAD (computer-aided design) graphic block with point map symbol based on path |
CN101799933A (en) * | 2010-02-03 | 2010-08-11 | 南京师范大学 | Conversion method of TrueType symbol and spotted map symbol based on path |
CN104851118A (en) * | 2015-05-25 | 2015-08-19 | 滁州学院 | Method for sharing CorelDraw point symbol in ArcGIS |
Non-Patent Citations (4)
Title |
---|
吴新强 等: "MapGIS地学数据和符号库的ArcGIS转换方案", 《MAPGIS地学数据和符号库的ARCGIS转换方案》 * |
王本林 等: "MapGIS点状符号共享方法研究", 《滁州学院学报》 * |
陈梦琳: "GIS与图形系统地图符号共享的数据模型与方法研究", 《中国优秀硕士学位论文全文数据库 基础科学辑》 * |
陈泰生 等: "基于PB符号的图元类点状符号共享研究", 《地理与地理信息科学》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109682381A (en) * | 2019-02-22 | 2019-04-26 | 山东大学 | Big visual field scene perception method, system, medium and equipment based on omnidirectional vision |
CN114548039A (en) * | 2022-02-28 | 2022-05-27 | 中国铁路设计集团有限公司 | Method for making and using special drawing symbolic system based on font design |
Also Published As
Publication number | Publication date |
---|---|
CN106503204B (en) | 2019-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109636887B (en) | A two-dimensional electronic technical drawing format conversion and vectorization interactive system | |
CN111008422B (en) | A method and system for making a real-world map of a building | |
CN101751449B (en) | Spatial overlap analysis method and system used in geographic information system | |
CN103309944B (en) | A kind of cultural symbol method realizing map library management | |
CN113628291B (en) | Multi-shape target grid data vectorization method based on boundary extraction and combination | |
CN104391991B (en) | A kind of conversion method from AutoCAD data to GIS spatial data | |
CN104851118B (en) | The shared CorelDraw point symbol methods of ArcGIS | |
CN102136218A (en) | Automatic collocation method for map lettering during map making through computer | |
CN103679804A (en) | System and method for automatically building three-dimensional model of data of underground pipeline | |
CN105512235B (en) | A kind of GIS and AutoCAD method for interchanging data and intermediate file | |
CN104598553B (en) | A kind of method of the Mapping Geological Map automatic Synthesis of combined type | |
CN101840582B (en) | Boundary digitizing method of cadastral plot | |
CN106250129A (en) | The vector quantization dynamic drawing method of symbol based on meta graph recognition model | |
WO2024108580A1 (en) | Multi-dimensional parameterized city information model construction method and system, and computer device | |
CN101789030A (en) | Virtual geographical environment (VGE) symbolic model and map symbol sharing system and method based on same | |
CN103268633A (en) | A method for isosurface construction of raster data | |
CN110489511B (en) | Method, system and electronic device and medium for correcting elevation error of contour line | |
CN105913475A (en) | Dynamic visualized method of space-time change process | |
CN106503204A (en) | The shared MapGIS dot-form map symbol methods of OMS | |
CN105590333A (en) | Method for determination of point-surface topological relation on the basis of delta-shaped region equation | |
CN104866549B (en) | A kind of terrain environment Database Systems suitable for Multi-Agent simulation | |
US12211126B2 (en) | Run-length stripping method for generating skeleton lines of complex plain river networks | |
CN111915720B (en) | Automatic conversion method from building Mesh model to CityGML model | |
CN109086515A (en) | The modeling method of primary equipment pictorial information in intelligent substation SSD based on SVG | |
CN103942819A (en) | Method and device for drawing geologic symbols |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |