WO2020135586A1 - 基于定制应急地图符号模版webgis显示方法及装置 - Google Patents
基于定制应急地图符号模版webgis显示方法及装置 Download PDFInfo
- Publication number
- WO2020135586A1 WO2020135586A1 PCT/CN2019/128708 CN2019128708W WO2020135586A1 WO 2020135586 A1 WO2020135586 A1 WO 2020135586A1 CN 2019128708 W CN2019128708 W CN 2019128708W WO 2020135586 A1 WO2020135586 A1 WO 2020135586A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- symbol
- style
- webgis
- map
- display
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/58—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/587—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using geographical or spatial information, e.g. location
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
Definitions
- the invention relates to the technical field of emergency map symbol display, in particular to a webgis display method and device based on a customized emergency map symbol template.
- GIS-related symbols there are more than 70 GIS-related symbols in the Standard for Emergency Emergency Plotting Symbols.
- Each project requires GIS personnel to perform complex and cumbersome symbol configuration.
- Different GIS software involves commercial versions of software: ArcGIS, SuperMap, open source UDig, QGIS, GeoServer, etc., the various symbol configuration methods are different; when the software is online, after the symbol configuration is modified, the map service needs to be restarted to take effect; each map service software has a corresponding one
- the set of WebGIS SDK requires the second developer to master and learn; many different types of symbols have similar display functions and can only be developed by WebGIS secondary developers who understand the principles of GIS.
- the related technologies mainly include the following two solutions:
- ArcGIS ArcMap and ArcGIS Server
- SuperMap desktop and iServer
- open source QGIS UDig and GeoServer cooperation
- other GIS software the general use methods and steps are as follows:
- the desktop version software edits and saves the engineering symbol templates.
- the template formats produced by each desktop version GIS software are their own formats, which cannot be used by each other;
- the webgis service software publishes the symbol template, the symbol is drawn on the server side, and the external results are provided in the form of pictures and coordinate information services;
- the front-end page calls the respective SDK API to call the service.
- map service software the use of commercial versions of software, such as ArcGIS Server, SuperMap iServer, etc., need to be purchased, and the price is very expensive; there are many open source versions, and the number of the same type of software is large, such as GeoServer, MapServer, QGIS Server and so on, personnel learning cost and maintenance cost are very high; in the actual project, if there is commercial server and open source software, it will increase the development and maintenance cost of the project.
- software such as ArcGIS Server, SuperMap iServer, etc.
- JS SDK contains some simple image point, vector point, line, and area symbol rendering methods; for example, Baidu map service and its JS SDK API, Gaode map Service and its JSSDKAPI.
- the working environment must be online Internet network environment.
- the present invention aims to solve one of the technical problems in the related art at least to a certain extent.
- an object of the present invention is to propose a webgis display method based on a customized emergency map symbol template, which has strong applicability, greatly reduces the use cost, and is simple and easy to implement.
- Another object of the present invention is to provide a webgis display device based on a customized emergency map symbol template.
- an embodiment of the present invention provides a webgis display method based on a customized emergency map symbol template, including the following steps: reading metadata about the attributes of the symbol, and obtaining the spatial coordinate field name to select the spatial geometry type ; Set the relevant function mode of symbol display according to the spatial geometry type, and set the default label style to set the symbol style of spatial geometry, and obtain the map grading condition symbol style; output the symbol object and generate the symbol display template file for visualization Display map symbols.
- the webgis display method based on a customized emergency map symbol template uses a standard map symbol display for the emergency industry, formulates a unified custom symbol style template, reduces the secondary development process, reduces the project procurement cost, and reduces secondary development
- the difficulty of staff learning reduces the cost of project implementation and operation and maintenance. It has strong applicability and greatly reduces the cost of use. It is simple and easy to implement.
- the webgis display method based on the customized emergency map symbol template according to the above embodiments of the present invention may also have the following additional technical features:
- the spatial geometry type includes one or more types of vector points, picture points, lines, areas, and composites.
- the setting of the symbol display related function mode according to the spatial geometry type further includes: setting a function mode name; setting a default symbol style, wherein the symbol style includes padding Color, outer border width, outer border color, and fill color; when the spatial geometry type is the picture point, set the picture source.
- the setting of the default labeling style further includes: label name attribute field name combination format; label text style, wherein the text style includes font size, pixel offset, One or more of background color, border color and border width.
- it further includes: obtaining a visualization component according to a symbol display related function mode and the symbol display template file.
- another embodiment of the present invention provides a webgis display device based on a customized emergency map symbol template, including: a selection module for reading metadata about symbol attributes and obtaining spatial coordinate field names to Select the space geometry type; setting module, used to set the symbol display related function mode according to the space geometry type, and set the default label style to set the space geometry symbol style, and obtain the map grading condition symbol style; visualization module, use It is used to output symbol objects and generate symbol display template files to visually display map symbols.
- the webgis display device based on a customized emergency map symbol template uses a standard map symbol display for the emergency industry, formulates a unified custom symbol style template, reduces the secondary development process, reduces the project procurement cost, and reduces secondary development
- the difficulty of staff learning reduces the cost of project implementation and operation and maintenance. It has strong applicability and greatly reduces the cost of use. It is simple and easy to implement.
- the webgis display device based on the customized emergency map symbol template according to the above embodiments of the present invention may also have the following additional technical features:
- the spatial geometry type includes one or more types of vector points, picture points, lines, areas, and composites.
- the setting module is further used to set a function mode name and set a default symbol style, wherein the symbol style includes a fill color, outer border width, outer border color and Fill color, and set the picture source when the spatial geometry type is the picture point.
- the setting module is further used to mark the name attribute field name combination format and mark the text style, where the text style includes font size, pixel offset, background color, One or more of border color and border width.
- an acquisition module configured to acquire a visualization component according to a symbol display related function mode and the symbol display template file.
- Figure 1 is a flow chart of secondary development of related technologies based on professional GIS development
- FIG. 2 is a flowchart of a webgis display method based on a customized emergency map symbol template according to an embodiment of the present invention
- FIG. 3 is a flowchart of a webgis display method based on a customized emergency map symbol template according to another embodiment of the present invention.
- FIG. 4 is a flowchart of a webgis display method based on a customized emergency map symbol template according to a specific embodiment of the present invention
- FIG. 5 is a timing diagram of visual component design according to an embodiment of the present invention.
- FIG. 6 is a flowchart of secondary development and presentation based on visual components according to an embodiment of the present invention.
- FIG. 7 is a schematic structural diagram of a webgis display device based on a customized emergency map symbol template according to an embodiment of the present invention.
- FIG. 2 is a flowchart of a webgis display method based on a customized emergency map symbol template according to an embodiment of the present invention.
- the webgis display method based on the customized emergency map symbol template includes the following steps:
- step S201 read the metadata about the attributes of the symbol, and obtain the spatial coordinate field name to select the spatial geometry type.
- the spatial geometry type includes one or more types of vector points, picture points, lines, areas, and composites.
- step S202 a symbol display related function mode is set according to the spatial geometry type, and a default label style is set to set the symbol style of the space geometry, and the map grading condition symbol style is acquired.
- an embodiment of the present invention sets a symbol-related function mode, and sets, sets a default labeling style, sets a detailed required spatial geometric symbol style, and considers the setting of the map grading condition symbol style.
- the setting of the symbol style considering the map grading conditions may be performed at the same time as the setting of the detailed required spatial geometric symbol style.
- setting the symbol display related function mode according to the space geometry type further includes: setting a function mode name; setting a default symbol style, where the symbol style includes a fill color, an outer border width, Outer border color and fill color; when the space geometry type is a picture point, set the picture source.
- setting a default label style further includes: label name attribute field name combination format; label text style, where the text style includes font size, pixel offset, background color, border One or more of color and border width.
- the embodiment of the present invention can set the style according to the attribute field name value field classification, or the style according to the familiar field name value; and then set the style of the corresponding symbol, involving the symbol size, fill color, background color, border color , Border width, etc.;
- step S203 a symbol object is output, and a symbol display template file is generated to visually display the map symbol.
- the embodiment of the present invention stores the symbol configuration result, and exports a JSON format file as needed to visually display the map symbol.
- the method further includes: obtaining a visualization component according to a symbol display related function mode and a symbol display template file.
- the visualization component can be packaged as a visualization component based on the open source Openlayer, Leafletjs, commercial [ArcGIS, SuperMap, etc.], Internet [Baidu Map, GaoDe Map, etc.] WebGIS SDK.Api.
- the combination of the display function mode and the display symbol template is easy to use for secondary development.
- the visualization component provides initialization, update, event monitoring, screen clearing, and destruction methods.
- the initialization is simplified.
- the initialized parameter objects include display function mode objects and symbol template object parameters. As shown in Figure 5, the function mode The names are as follows:
- the regular number of dot picture symbols is naturally distributed, which is suitable for the number less than 5000;
- FIG. 6 the flowchart of the secondary development based on the visualization component is shown in FIG. 6, as follows
- Step S1 initialize the map
- Step S2 instantiation of the visual component
- Step S3 setting the visual component function mode, setting attribute metadata parameters and setting symbol template files
- Step S4 setting data, map display
- Step S5 it is judged whether the map refresh is needed, if yes, step S4 is executed, if no, step S6 is executed;
- step S6 it is determined whether the component needs to be destroyed, if not, step S5 is executed, and if so, it ends.
- the method of the embodiment of the present invention facilitates the emergency accumulation of industry GIS related symbol configuration achievements, effectively reduces the secondary development process, and reduces the difficulty of secondary development.
- the skill requirements of webgis secondary developers in the project only need to master the basic JSSDKApi can.
- a unified custom symbol style template is developed for the emergency industry to use standard map symbol display to reduce the secondary development process, reduce the project procurement cost, and reduce the second
- the difficulty of learning by secondary developers reduces the cost of project implementation and operation and maintenance. It has strong applicability and greatly reduces the cost of use. It is simple and easy to implement.
- FIG. 7 is a schematic structural diagram of a webgis display device based on a customized emergency map symbol template according to an embodiment of the present invention.
- the webgis display device 10 based on the customized emergency map symbol template includes: a selection module 100, a setting module 200 and a visualization module 300.
- the selection module 100 is used to read the metadata about the attributes of the symbols and obtain the names of the spatial coordinate fields to select the spatial geometry type.
- the setting module 200 is used to set a function mode related to symbol display according to the spatial geometry type, and set a default labeling style to set the symbol style of the spatial geometry, and obtain the map grading condition symbol style.
- the visualization module 300 is used to output symbol objects and generate symbol display template files to visually display map symbols.
- the device 10 of the embodiment of the present invention can reduce the secondary development process, reduce the procurement cost of the project, reduce the learning difficulty of the secondary developer, reduce the cost of project implementation and operation and maintenance, have strong applicability, and greatly reduce the use cost, simple Easy to implement.
- the spatial geometry type includes one or more types of vector points, picture points, lines, areas, and composites.
- the setting module 200 is further used to set the function mode name and set the default symbol style, where the symbol style includes a fill color, an outer border width, an outer border color, and a fill color, And when the spatial geometry type is a picture point, set the picture source.
- the setting module 200 is further used to label the name attribute field name combination format and label the text style, where the text style includes font size, pixel offset, background color, border color and One or more of the border width.
- the apparatus 10 of the embodiment of the present invention further includes: an acquisition module.
- the obtaining module is used to obtain the visual component according to the symbol display related function mode and the symbol display template file.
- a unified custom symbol style template is developed for the emergency industry to use standard map symbol display to reduce the secondary development process link, reduce the project procurement cost, and reduce the second
- the difficulty of learning by secondary developers reduces the cost of project implementation and operation and maintenance. It has strong applicability and greatly reduces the cost of use. It is simple and easy to implement.
- first and second are used for description purposes only, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features.
- the features defined as “first” and “second” may include at least one of the features explicitly or implicitly.
- the meaning of “plurality” is at least two, such as two, three, etc., unless specifically defined otherwise.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Remote Sensing (AREA)
- Human Computer Interaction (AREA)
- Library & Information Science (AREA)
- Instructional Devices (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
一种基于定制应急地图符号模版webgis显示方法及装置,其中,方法包括以下步骤:读取符号有关属性的元数据,并获取空间坐标字段名称,以选择空间几何类型(S201);根据空间几何类型设置符号显示相关功能模式,并设置缺省标注样式,以设置空间几何的符号样式,并且获取地图分级条件符号样式(S202);输出符号对象,并生成符号显示模板文件,以可视化展示地图符号(S203)。该方法针对应急行业使用标准地图符号展现,制定统一自定义的符号样式模版,减少二次开发流程环节,降低项目的采购成本,降低二次开发人员的学习难度,减少项目实施和运维成本,适用性强、且大大降低了使用成本,简单易实现。
Description
相关申请的交叉引用
本申请要求北京辰安科技股份有限公司、清华大学于2018年12月29日提交的、发明名称为“基于定制应急地图符号模版webgis显示方法及装置”的、中国专利申请号“201811645630.9”的优先权。
本发明涉及应急地图符号展示技术领域,特别涉及一种基于定制应急地图符号模版webgis显示方法及装置。
目前,《突发事件应急标绘符号规范》标准中现有GIS相关70多种符号,每个项目中都需要有GIS人员进行复杂和繁琐的符号配置,不同的GIS软件涉及到商业版软件:ArcGIS、SuperMap、开源UDig、QGIS、GeoServer等等,各种符号配置方法也不一样;软件在线运行情况下,符号配置修改后,还需重启地图服务才可以生效;各个地图服务软件都有对应一套WebGIS SDK Api需要二次开发人员掌握和学习;很多不同种类的符号,具有类似的展现功能,只能由懂得GIS原理的WebGIS二次开发人员开发。
相关技术中,主要包括以下两种解决方案:
1、基于GIS平台的解决方案
ArcGIS【ArcMap和ArcGIS Server】、SuperMap【desktop和iServer】、开源QGIS、UDig和GeoServer配合等GIS软件,大致使用方法和步骤如下:
a)桌面版软件进行工程符号模版编辑和保存,各个桌面版GIS软件制作的模版格式都是各自的格式,互相之间不能通用;
b)webgis服务软件进行发布符号模版,符号的绘制在服务器端,对外结果以图片和坐标信息方式提供服务;
c)前端页面中sdk api调用服务;
如果有改动符号样式,需要使用桌面版编辑,然后重启webgis服务,前端页面调用各自sdk api调用服务。
现有技术方案的一套基于专业GIS开发的二次开发流程如图1所示。
然而,基于专业GIS平台的解决方案存在如下的局限性:
(1)采用专业GIS软件编辑符号的缺点:需要掌握GIS基本制图理论和GIS制图软 件技巧;采用使用商业版本软件,例如ArcGIS Desktop,SuperMap Desktop等,需要购买,而且价格很贵;开源版本多,相同种类软件个数多,例如QGIS、uDig等,人员学习成本和维护成本都很高;不同GIS软件编辑的符号样式文档不可以相互转换。
(2)采用地图服务软件带来的缺点:采用使用商业版本软件,例如ArcGIS Server,SuperMap iServer等,需要购买,而且价格很贵;开源版本多,相同种类软件个数多,例如GeoServer、MapServer、QGIS Server等,人员学习成本和维护成本都很高;实际项目中,如果有商业服务器和开源软件,会增加项目的开发和维护成本。
(3)目前商业GIS软件都有各自的WebGIS SDK,目前商业软件商推出ArcGIS WebGIS JS SDK Api、SuperMap WebGIS JS SDK Api等,开源代表OpenLayer、Leaflet js;互联网地图服务商Baidu Map Api。然而,需要项目二次开发掌握多套,增加我们人员成本;都不支持复杂的应急标绘符号,例如线状和面状相关的符号,需要进行二次开发。
2、基于互联网地图服务和JS SDK API的解决方案
目前有些互联网地图服务提供在线互联网地图服务及在线JS SDK API,其中JS SDK API中包含部分简单图片点、矢量点、线、面符号渲染方法;例如百度地图服务及其JS SDK API,高德地图服务及其JS SDK API。
然而,基于互联网地图服务和JS SDK API的解决方案存在如下的局限性:
(1)在一个项目中选定一家互联网地图服务及器JS SDK API,就决定了不能使用其他家的成果,具有排他互联网地图成果性;
(2)各家的符号样式定义和JS SDK API用法都不一样,需要二次开发人员掌握多套,这样显然不易于积累;
(3)工作环境都必须在线互联网网络环境。
发明内容
本发明旨在至少在一定程度上解决相关技术中的技术问题之一。
为此,本发明的一个目的在于提出一种基于定制应急地图符号模版webgis显示方法,该方法适用性强、且大大降低了使用成本,简单易实现。
本发明的另一个目的在于提出一种基于定制应急地图符号模版webgis显示装置。
为达到上述目的,本发明一方面实施例提出了一种基于定制应急地图符号模版webgis显示方法,包括以下步骤:读取符号有关属性的元数据,并获取空间坐标字段名称,以选择空间几何类型;根据所述空间几何类型设置符号显示相关功能模式,并设置缺省标注样式,以设置空间几何的符号样式,并且获取地图分级条件符号样式;输出符号对象,并生成符号显示模板文件,以可视化展示地图符号。
本发明实施例的基于定制应急地图符号模版webgis显示方法,针对应急行业使用标准地图符号展现,制定统一自定义的符号样式模版,减少二次开发流程环节,降低项目的采 购成本,降低二次开发人员的学习难度,减少项目实施和运维成本,适用性强、且大大降低了使用成本,简单易实现。
另外,根据本发明上述实施例的基于定制应急地图符号模版webgis显示方法还可以具有以下附加的技术特征:
进一步地,在本发明的一个实施例中,所述空间几何类型包括矢量点、图片点、线、面和复合中的一种或多种类型。
进一步地,在本发明的一个实施例中,所述根据所述空间几何类型设置符号显示相关功能模式,进一步包括:设置功能模式名称;设置缺省的符号样式,其中,所述符号样式括填充颜色、外边框宽度、外边框颜色和填充色;在所述空间几何类型为所述图片点时,设置图片来源。
进一步地,在本发明的一个实施例中,所述设置缺省标注样式,进一步包括:标注名称属性字段名称组合格式;标注文本样式,其中,所述文本样式包括字体大小、像素偏移量、背景色、边框色和边框宽度中的一种或多种。
进一步地,在本发明的一个实施例中,还包括:根据符号显示相关功能模式和所述符号显示模板文件获取可视化组件。
为达到上述目的,本发明另一方面实施例提出了一种基于定制应急地图符号模版webgis显示装置,包括:选择模块,用于读取符号有关属性的元数据,并获取空间坐标字段名称,以选择空间几何类型;设置模块,用于根据所述空间几何类型设置符号显示相关功能模式,并设置缺省标注样式,以设置空间几何的符号样式,并且获取地图分级条件符号样式;可视化模块,用于输出符号对象,并生成符号显示模板文件,以可视化展示地图符号。
本发明实施例的基于定制应急地图符号模版webgis显示装置,针对应急行业使用标准地图符号展现,制定统一自定义的符号样式模版,减少二次开发流程环节,降低项目的采购成本,降低二次开发人员的学习难度,减少项目实施和运维成本,适用性强、且大大降低了使用成本,简单易实现。
另外,根据本发明上述实施例的基于定制应急地图符号模版webgis显示装置还可以具有以下附加的技术特征:
进一步地,在本发明的一个实施例中,所述空间几何类型包括矢量点、图片点、线、面和复合中的一种或多种类型。
进一步地,在本发明的一个实施例中,所述设置模块进一步用于设置功能模式名称,并设置缺省的符号样式,其中,所述符号样式括填充颜色、外边框宽度、外边框颜色和填充色,且在所述空间几何类型为所述图片点时,设置图片来源。
进一步地,在本发明的一个实施例中,所述设置模块进一步用于标注名称属性字段名称组合格式,并标注文本样式,其中,所述文本样式包括字体大小、像素偏移量、背景色、 边框色和边框宽度中的一种或多种。
进一步地,在本发明的一个实施例中,还包括:获取模块,用于根据符号显示相关功能模式和所述符号显示模板文件获取可视化组件。
本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:
图1为相关技术的基于专业GIS开发的二次开发流程图;
图2为根据本发明一个实施例的基于定制应急地图符号模版webgis显示方法的流程图;
图3为根据本发明另一个实施例的基于定制应急地图符号模版webgis显示方法的流程图;
图4为根据本发明一个具体实施例的基于定制应急地图符号模版webgis显示方法的流程图;
图5为根据本发明一个实施例的可视化组件设计时序图;
图6为根据本发明一个实施例的基于可视化组件的二次开发展现的流程图;
图7为根据本发明一个实施例的基于定制应急地图符号模版webgis显示装置的结构示意图。
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。
下面参照附图描述根据本发明实施例提出的基于定制应急地图符号模版webgis显示方法及装置,首先将参照附图描述根据本发明实施例提出的基于定制应急地图符号模版webgis显示方法。
图2是本发明一个实施例的基于定制应急地图符号模版webgis显示方法的流程图。
如图2所示,该基于定制应急地图符号模版webgis显示方法包括以下步骤:
在步骤S201中,读取符号有关属性的元数据,并获取空间坐标字段名称,以选择空间几何类型。
可以理解的是,如图3和图4所示,判定符号模版是否已经存储在,存在就是编辑;不存在需要新建一个。新建一个符号模版工程;读取符号相关的元数据说明,明确存储空 间数据的列名称,选择符号明确的空间几何类型。
进一步地,在本发明的一个实施例中,空间几何类型包括矢量点、图片点、线、面和复合中的一种或多种类型。
在步骤S202中,根据空间几何类型设置符号显示相关功能模式,并设置缺省标注样式,以设置空间几何的符号样式,并且获取地图分级条件符号样式。
可以理解的是,如图4所示,本发明实施例设置符号相关功能模式,并设置,设置缺省标注样式,设置详细要求的空间几何符号样式,且考虑地图分级条件符号样式设置。其中,考虑地图分级条件符号样式设置可以与详细要求的空间几何符号样式的设置同时进行。
进一步地,在本发明的一个实施例中,根据空间几何类型设置符号显示相关功能模式,进一步包括:设置功能模式名称;设置缺省的符号样式,其中,符号样式包括填充颜色、外边框宽度、外边框颜色和填充色;在空间几何类型为图片点时,设置图片来源。
具体而言,如图4所示,设置功能模式名称,并设置缺省得符号样式,其中矢量涉及填充颜色、外边框宽度、外边框颜色、填充色;图片符号涉及:设置图片来源,这里图片格式我们使用Base64格式字符串,旋转角度、高度、宽度等。
进一步地,在本发明的一个实施例中,设置缺省标注样式,进一步包括:标注名称属性字段名称组合格式;标注文本样式,其中,文本样式包括字体大小、像素偏移量、背景色、边框色和边框宽度中的一种或多种。
可以理解的是,本发明实施例可以根据属性字段名称值域分类设置样式,也可根据熟悉字段名称值设置样式;然后设置对应符号的样式,涉及到符号大小,填充色,背景色,边框色,边框宽度等等;
在步骤S203中,输出符号对象,并生成符号显示模板文件,以可视化展示地图符号。
可以理解的是,如图4所示,本发明实施例对符号配置结果存储,根据需要导出JSON格式的文件,从而可视化展示地图符号。
进一步地,在本发明的一个实施例中,还包括:根据符号显示相关功能模式和符号显示模板文件获取可视化组件。
可以理解的是,可视化组件可以基于开源Openlayer,Leafletjs、商业【ArcGIS、SuperMap等】、互联网【Baidu Map,GaoDe Map等】WebGIS SDK Api封装成可视化组件。显示功能模式和显示符号模板结合,对于二次开发来说易上手。
具体而言,可视化组件提供了初始化、更新、事件监听、清屏、销毁方法,其中初始化简化了,其中初始化的参数对象包含显示功能模式对象和符号模版对象参数,如图5所示,功能模式名称如下:
(1)点状图片符号常规数量自然分布,适用于数量小于5000数量;
(2)点状图片符号大数量自然分布,适用于数量大于5000数量;
(3)点状图片符号聚合分布展现;
(4)点状图片符号小比例尺聚合,大比例尺自然分布;
(5)分组占比统计,圆环展现;
(6)根据属性字段分组总数统计,圆状展现;
(7)点状矢量展现;
(8)线状展现;
(9)面状展现;
(10)复合几何状展现。
进一步地,基于可视化组件的二次开发展现的流程图如图6所示,具体如下
步骤S1,初始化地图;
步骤S2,可视化组件实例化;
步骤S3,设置可视化组件功能模式、设置属性元数据参数和设置符号模板文件;
步骤S4,设置数据,地图显示;
步骤S5,判断是否需要地图刷新,如果是,则执行步骤S4,如果否,则执行步骤S6;
步骤S6,判断是否需要销毁组件,如果否,则执行步骤S5,如果是,则结束。
综上,本发明实施例的方法方便应急积累行业GIS相关符号配置成果,有效减少二次开发流程,降低二次开发难度,项目中webgis二次开发人员技能要求:只需掌握基本JS SDK Api即可。
根据本发明实施例提出的基于定制应急地图符号模版webgis显示方法,针对应急行业使用标准地图符号展现,制定统一自定义的符号样式模版,减少二次开发流程环节,降低项目的采购成本,降低二次开发人员的学习难度,减少项目实施和运维成本,适用性强、且大大降低了使用成本,简单易实现。
其次参照附图描述根据本发明实施例提出的基于定制应急地图符号模版webgis显示装置。
图7是本发明一个实施例的基于定制应急地图符号模版webgis显示装置的结构示意图。
如图7所示,该基于定制应急地图符号模版webgis显示装置10包括:选择模块100、设置模块200和可视化模块300。
其中,选择模块100用于读取符号有关属性的元数据,并获取空间坐标字段名称,以选择空间几何类型。设置模块200用于根据空间几何类型设置符号显示相关功能模式,并设置缺省标注样式,以设置空间几何的符号样式,并且获取地图分级条件符号样式。可视化模块300用于输出符号对象,并生成符号显示模板文件,以可视化展示地图符号。本发明实施例的装置10可以减少二次开发流程环节,降低项目的采购成本,降低二次开发人员的学习难度,减少项目实施和运维成本,适用性强、且大大降低了使用成本,简单易实现。
进一步地,在本发明的一个实施例中,空间几何类型包括矢量点、图片点、线、面和复合中的一种或多种类型。
进一步地,在本发明的一个实施例中,设置模块200进一步用于设置功能模式名称,并设置缺省的符号样式,其中,符号样式包括填充颜色、外边框宽度、外边框颜色和填充色,且在空间几何类型为图片点时,设置图片来源。
进一步地,在本发明的一个实施例中,设置模块200进一步用于标注名称属性字段名称组合格式,并标注文本样式,其中,文本样式包括字体大小、像素偏移量、背景色、边框色和边框宽度中的一种或多种。
进一步地,在本发明的一个实施例中,本发明实施例的装置10还包括:获取模块。其中,获取模块用于根据符号显示相关功能模式和符号显示模板文件获取可视化组件。
需要说明的是,前述对基于定制应急地图符号模版webgis显示方法实施例的解释说明也适用于该实施例的基于定制应急地图符号模版webgis显示装置,此处不再赘述。
根据本发明实施例提出的基于定制应急地图符号模版webgis显示装置,针对应急行业使用标准地图符号展现,制定统一自定义的符号样式模版,减少二次开发流程环节,降低项目的采购成本,降低二次开发人员的学习难度,减少项目实施和运维成本,适用性强、且大大降低了使用成本,简单易实现。
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。
尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。
Claims (10)
- 一种基于定制应急地图符号模版webgis显示方法,其特征在于,包括以下步骤:读取符号有关属性的元数据,并获取空间坐标字段名称,以选择空间几何类型;根据所述空间几何类型设置符号显示相关功能模式,并设置缺省标注样式,以设置空间几何的符号样式,并且获取地图分级条件符号样式;以及输出符号对象,并生成符号显示模板文件,以可视化展示地图符号。
- 根据权利要求1所述的基于定制应急地图符号模版webgis显示方法,其特征在于,所述空间几何类型包括矢量点、图片点、线、面和复合中的一种或多种类型。
- 根据权利要求2所述的基于定制应急地图符号模板webgis显示方法,其特征在于,所述根据所述空间几何类型设置符号显示相关功能模式,进一步包括:设置功能模式名称;设置缺省的符号样式,其中,所述符号样式包括填充颜色、外边框宽度、外边框颜色和填充色;在所述空间几何类型为所述图片点时,设置图片来源。
- 根据权利要求1所述的基于定制应急地图符号模板webgis显示方法,其特征在于,所述设置缺省标注样式,进一步包括:标注名称属性字段名称组合格式;标注文本样式,其中,所述文本样式包括字体大小、像素偏移量、背景色、边框色和边框宽度中的一种或多种。
- 根据权利要求1所述的基于定制应急地图符号模板webgis显示方法,其特征在于,还包括:根据符号显示相关功能模式和所述符号显示模板文件获取可视化组件。
- 一种基于定制应急地图符号模版webgis显示装置,其特征在于,包括:选择模块,用于读取符号有关属性的元数据,并获取空间坐标字段名称,以选择空间几何类型;设置模块,用于根据所述空间几何类型设置符号显示相关功能模式,并设置缺省标注样式,以设置空间几何的符号样式,并且获取地图分级条件符号样式;以及可视化模块,用于输出符号对象,并生成符号显示模板文件,以可视化展示地图符号。
- 根据权利要求6所述的基于定制应急地图符号模版webgis显示装置,其特征在于,所述空间几何类型包括矢量点、图片点、线、面和复合中的一种或多种类型。
- 根据权利要求7所述的基于定制应急地图符号模板webgis显示装置,其特征在于,所述设置模块进一步用于设置功能模式名称,并设置缺省的符号样式,其中,所述符号样式包括填充颜色、外边框宽度、外边框颜色和填充色,且在所述空间几何类型为所述图片 点时,设置图片来源。
- 根据权利要求6所述的基于定制应急地图符号模板webgis显示装置,其特征在于,所述设置模块进一步用于标注名称属性字段名称组合格式,并标注文本样式,其中,所述文本样式包括字体大小、像素偏移量、背景色、边框色和边框宽度中的一种或多种。
- 根据权利要求6所述的基于定制应急地图符号模板webgis显示装置,其特征在于,还包括:获取模块,用于根据符号显示相关功能模式和所述符号显示模板文件获取可视化组件。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811645630.9A CN109783088A (zh) | 2018-12-29 | 2018-12-29 | 基于定制应急地图符号模版webgis显示方法及装置 |
| CN201811645630.9 | 2018-12-29 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020135586A1 true WO2020135586A1 (zh) | 2020-07-02 |
Family
ID=66499647
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2019/128708 Ceased WO2020135586A1 (zh) | 2018-12-29 | 2019-12-26 | 基于定制应急地图符号模版webgis显示方法及装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN109783088A (zh) |
| WO (1) | WO2020135586A1 (zh) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115470425A (zh) * | 2022-08-31 | 2022-12-13 | 中国人民解放军陆军边海防学院 | 一种地图符号设计方法和装置 |
| CN115797577A (zh) * | 2022-11-15 | 2023-03-14 | 中国运载火箭技术研究院 | 基于数字高程模型的地形地貌信息模型的构建系统及方法 |
| CN121638200A (zh) * | 2025-12-16 | 2026-03-10 | 北京市地质调查研究所 | 一种空间数据文件符号化处理方法、设备、介质及产品 |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109783088A (zh) * | 2018-12-29 | 2019-05-21 | 北京辰安科技股份有限公司 | 基于定制应急地图符号模版webgis显示方法及装置 |
| CN110245206B (zh) * | 2019-06-20 | 2023-08-25 | 腾讯科技(深圳)有限公司 | 地图样式的获取方法、装置、服务器、终端及存储介质 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120011471A1 (en) * | 1998-09-18 | 2012-01-12 | Vepse Technology Co., L.L.C. | Real estate value map computer system |
| CN102509511A (zh) * | 2011-11-25 | 2012-06-20 | 武汉大学 | 基于gis数据的快速地图制图系统 |
| CN103309944A (zh) * | 2013-05-14 | 2013-09-18 | 广东南方数码科技有限公司 | 一种实现图库一体化的地物符号化方法 |
| CN109783088A (zh) * | 2018-12-29 | 2019-05-21 | 北京辰安科技股份有限公司 | 基于定制应急地图符号模版webgis显示方法及装置 |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101427103A (zh) * | 2006-02-17 | 2009-05-06 | 英特图形软件技术公司 | 通过函数样式的基于属性的符号标示 |
| JP2007226149A (ja) * | 2006-02-27 | 2007-09-06 | Denso Corp | 地図表示装置及びプログラム |
| CN101281699A (zh) * | 2008-05-14 | 2008-10-08 | 武汉大学 | 地理要素实例符号化方法 |
| CN102402531A (zh) * | 2010-09-13 | 2012-04-04 | 方正国际软件有限公司 | 地理信息符号处理方法及系统 |
| CN105589982A (zh) * | 2014-10-23 | 2016-05-18 | 亿阳信通股份有限公司 | 基于符号模板导出设计图纸的方法和装置 |
| CN108880659B (zh) * | 2018-06-28 | 2022-07-01 | 福州大学 | 一种基于北斗短报文的应急地图符号化方法 |
-
2018
- 2018-12-29 CN CN201811645630.9A patent/CN109783088A/zh active Pending
-
2019
- 2019-12-26 WO PCT/CN2019/128708 patent/WO2020135586A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120011471A1 (en) * | 1998-09-18 | 2012-01-12 | Vepse Technology Co., L.L.C. | Real estate value map computer system |
| CN102509511A (zh) * | 2011-11-25 | 2012-06-20 | 武汉大学 | 基于gis数据的快速地图制图系统 |
| CN103309944A (zh) * | 2013-05-14 | 2013-09-18 | 广东南方数码科技有限公司 | 一种实现图库一体化的地物符号化方法 |
| CN109783088A (zh) * | 2018-12-29 | 2019-05-21 | 北京辰安科技股份有限公司 | 基于定制应急地图符号模版webgis显示方法及装置 |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115470425A (zh) * | 2022-08-31 | 2022-12-13 | 中国人民解放军陆军边海防学院 | 一种地图符号设计方法和装置 |
| CN115797577A (zh) * | 2022-11-15 | 2023-03-14 | 中国运载火箭技术研究院 | 基于数字高程模型的地形地貌信息模型的构建系统及方法 |
| CN121638200A (zh) * | 2025-12-16 | 2026-03-10 | 北京市地质调查研究所 | 一种空间数据文件符号化处理方法、设备、介质及产品 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109783088A (zh) | 2019-05-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| AU2018247213B2 (en) | Robust and efficient method for generating high-quality triangle mesh representation for geometry bounded by bezier splines | |
| CN103959281B (zh) | 用于将第三方内容与在线文档签名相关联的方法 | |
| JP4786943B2 (ja) | テーブル、マトリクス、およびその混合によるデザインを含む柔軟なレポートデザインのためのシステムおよび方法 | |
| US10664556B2 (en) | Adaptable user interface layout | |
| US20020109725A1 (en) | Control apparatus and control method for starting application software on a computer, and multi-monitor computer, client-server system, and storage medium using the same | |
| CN112084750B (zh) | 一种贴纸处理方法、装置、电子设备及存储介质 | |
| US20210042381A1 (en) | Interactive and selective coloring of digital vector glyphs | |
| CN107870911B (zh) | 一种数据可视化展示方法和设备 | |
| CN102662921B (zh) | 一种文档处理方法、装置和编辑器 | |
| CN111553131A (zh) | Psd文件解析方法、装置、设备及可读存储介质 | |
| CN113742530A (zh) | 基于svg实现数字化海报图片生成处理的系统、方法、装置、处理器及其存储介质 | |
| US10089120B2 (en) | Widgets in digital dashboards | |
| CN110310226B (zh) | 图片的拼接显示方法及系统 | |
| CN106155988A (zh) | 基于excel的数据图表绘制方法及相关装置 | |
| CN105976322A (zh) | 电网综合信息监控图形生成系统及方法 | |
| CN109783088A (zh) | 基于定制应急地图符号模版webgis显示方法及装置 | |
| Ledermann | Minimum dimensions for cartographic symbology–history, rationale and relevance in the digital age | |
| CN111090976B (zh) | 基于动态数据的检验文档生成方法及装置 | |
| CN100568286C (zh) | 标签的动态创建方法及系统 | |
| JP5404969B1 (ja) | 電子マニュアル閲覧装置およびシステム | |
| CN115756436A (zh) | 模板配置建设可视化大屏的装置及方法 | |
| CN112639690A (zh) | 用于在动态键盘接口内定位动画图像的方法和系统 | |
| CN113345048A (zh) | 地理信息图像编辑方法、装置及计算机设备 | |
| CN114675910A (zh) | 一种面向分布式服务的组件布局方法与系统 | |
| Yu et al. | Matplotlib 2. x By Example |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19904228 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 19904228 Country of ref document: EP Kind code of ref document: A1 |