CN113160344A - Thematic map generation method and device based on front-end map visualization platform - Google Patents

Thematic map generation method and device based on front-end map visualization platform Download PDF

Info

Publication number
CN113160344A
CN113160344A CN202110354988.1A CN202110354988A CN113160344A CN 113160344 A CN113160344 A CN 113160344A CN 202110354988 A CN202110354988 A CN 202110354988A CN 113160344 A CN113160344 A CN 113160344A
Authority
CN
China
Prior art keywords
map
thematic map
attention area
thematic
vector
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.)
Pending
Application number
CN202110354988.1A
Other languages
Chinese (zh)
Inventor
刘继东
杜金波
史经业
闫芳
李雁飞
兰远鸽
杭盼盼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongke Xingtu Space Technology Co ltd
Original Assignee
Zhongke Xingtu Space Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhongke Xingtu Space Technology Co ltd filed Critical Zhongke Xingtu Space Technology Co ltd
Priority to CN202110354988.1A priority Critical patent/CN113160344A/en
Publication of CN113160344A publication Critical patent/CN113160344A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Instructional Devices (AREA)

Abstract

A thematic map generation method and device based on a front-end map visualization platform belong to the field of remote sensing technology application, and are characterized by comprising the following steps: firstly, calling a thematic map style file to generate a thematic map template; adding the vector data of the attention area to a visualization platform for thematic map display; drawing a vector frame of the attention area through a visualization platform; extracting map image data of the attention area; filling the map image data of the attention area and the vector geographic element distribution characteristics included in the vector data of the attention area into the thematic map template to form an initial attention area thematic map; editing thematic map attribute information of the thematic map of the initial attention area to obtain a thematic map of the attention area; the simple thematic map is produced simply and quickly in a fusion mode, operation of general non-geographic information professional platform users is facilitated, and the users of the common webgis platform can be helped to rapidly map geographic information of the concerned area.

Description

Thematic map generation method and device based on front-end map visualization platform
Technical Field
The invention belongs to the field of remote sensing technology application, and particularly relates to a thematic map generation method and device based on a front-end map visualization platform.
Background
With the development of geographic information system technology, geographic information technology is gradually applied to various aspects such as disaster relief, petroleum pipeline inspection, pollution monitoring, financial investment decision analysis and the like, information management or development platforms applying geographic information visualization technology for various industries are increasing day by day, economic production and living activities are greatly served, and at present, technology providing schemes which are friendly to general users and are specific to non-geographic information practitioners are concentrated in the field of visualization of the front end of webgis maps. The geographic image data and part of vector data carrying certain geographic element characteristics are displayed in a superposition mode, and certain element geographic distribution characteristics concerned by a platform user are extracted through geographic information technologies such as space analysis, buffer area analysis, spatial attribute query and the like, so that decision analysis in production or other economic activities is facilitated.
However, in the using process of the webgis platform, a user often needs to analyze the result of geographic information of a certain interested area, and the result is converted into a simple thematic map with uncomplicated requirements in a simpler and more convenient manner, so that the result is exported. However, the generation of the thematic map is still mature in the customized development of the desktop or the server, and is professional and tedious, so that the generation of the thematic map is inconvenient for non-professionals.
Disclosure of Invention
The invention aims to solve the problems that thematic maps are difficult to generate rapidly on the conventional geographic information front-end visualization platform and the requirements of the thematic maps are strict, and provides a thematic map generation method and a thematic map generation device based on the front-end map visualization platform.
In a first aspect, the present invention provides a thematic map generation method based on a front-end map visualization platform, including: firstly, calling a thematic map style file to generate a thematic map template;
adding the vector data of the attention area to a visualization platform for thematic map display;
drawing a vector frame of the attention area through a visualization platform;
extracting map image data of the attention area; extracting vector geographic element distribution characteristics included in vector data of the attention area;
filling the map image data of the attention area and the vector geographic element distribution characteristics included in the vector data of the attention area into the thematic map template to form an initial attention area thematic map;
editing thematic map attribute information of the thematic map of the initial attention area to obtain a thematic map of the attention area;
and (5) carrying out format conversion on the thematic map of the concerned area and then exporting the thematic map to finish thematic map generation.
Further, according to the thematic map generation method based on the front-end map visualization platform, the thematic map template calls the thematic map style file to automatically generate the thematic map style file.
Further, in the thematic map generation method based on the front-end map visualization platform, the thematic map attribute information includes the map name of the thematic map of the attention area and thematic map brief introduction information.
Further, according to the thematic map generation method based on the front-end map visualization platform, the formats of the thematic map of the concerned area comprise png and jpg formats.
Further, according to the thematic map generation method based on the front-end map visualization platform, vector data of the concerned area is in a geojson format; and the webgl technology is adopted for the vector geographic element distribution characteristics included in the map image data and the vector data of the extracted attention area.
In a second aspect, the present invention provides a thematic map generating device based on a front-end map visualization platform, including: the template generating module is used for calling the thematic map style file to generate a thematic map template;
the vector range determining module is used for adding the vector data of the attention area to a visualization platform for thematic map display; drawing a vector frame of the attention area through a visualization platform;
the extraction module is used for extracting map image data of the concerned area; extracting vector geographic element distribution characteristics included in vector data of the attention area;
a filling module, configured to fill the map image data of the attention area and the vector geographic element distribution features included in the vector data of the attention area into the thematic map template to form an initial attention area thematic map;
the conversion module is used for editing thematic map attribute information of the thematic map of the initial attention area to obtain the thematic map of the attention area; and (5) carrying out format conversion on the thematic map of the concerned area and then exporting the thematic map to finish thematic map generation.
In a third aspect, the present invention provides an electronic device for generating thematic map based on a front-end map visualization platform, comprising a memory and a processor; the memory for storing a computer program; the processor is configured to, when executing the computer program, implement the thematic map generation method based on the front-end map visualization platform according to the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the thematic map generation method based on a front-end map visualization platform according to the first aspect is implemented.
According to the thematic map generation method and device based on the front-end map visualization platform, a thematic map template is generated in advance on the front-end geographical visualization platform, image data are extracted in a modularized mode step by step, and a simple thematic map is produced in a simple and rapid fusion mode.
Drawings
Fig. 1 is a schematic flow chart of a thematic map generation method based on a front-end map visualization platform according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a result of a thematic map generation method based on a front-end map visualization platform according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a thematic map generation apparatus based on a front-end map visualization platform according to an embodiment of the present invention.
Detailed Description
The method and the device for generating the thematic map based on the front-end map visualization platform according to the present invention are described in detail with reference to the accompanying drawings and embodiments.
Example one
In the thematic map generation method based on the front-end map visualization platform, a thematic map style configuration file api (file type js) is called first to generate a thematic map template, and a default style is generally adopted; adding the vector data of the attention area to a visualization platform for thematic map display; drawing a vector frame of the attention area through a visualization platform; calling a thematic map template generated by the thematic map style file api; extracting map image data of the attention area; extracting vector geographic element distribution characteristics included in vector data of the attention area; filling the map image data of the attention area and the vector geographic element distribution characteristics included in the vector data of the attention area into the thematic map template to form an initial attention area thematic map; editing thematic map attribute information of the thematic map of the initial attention area to obtain a thematic map of the attention area; and (5) carrying out format conversion on the thematic map of the concerned area and then exporting the thematic map to finish thematic map generation.
In the embodiment of the disclosure, a front-end visualization API component ceium is selected for description, and the front-end visualization API component ceium can also be applied to platforms of other different map visualization components in practical application; as shown in fig. 1, the method specifically comprises the following steps:
the first step is as follows: preparing a set of open source map image tile data, such as google images, sky maps, and the like, and preparing vector data in a geojson format of chinese administrative boundary distribution, wherein the chinese administrative boundary distribution is used as a region of interest in the embodiment;
the second step is that: establishing a map server, and publishing map image tile data into a map data service according with an ogc standard by using open source map service publisher software such as a geoserver and the like according with the OpenGIS Web server specification, so that the front-end visual API (application program interface) access calling is facilitated;
the third step: building a map visualization platform based on vue + cecum;
the fourth step: adding a remote sensing image service; meanwhile, additionally adding Chinese administrative boundary distribution vectorization data;
the fifth step: drawing a vector frame of the attention area;
and a sixth step: extracting geographical image data and vector geographical element distribution characteristics of an attention area based on a webgl technology, and filling the characteristics into a prepared thematic map template (the template calls thematic map style configuration to automatically generate);
the seventh step: modifying the names of the thematic maps in the initial attention area, accompanying description of the thematic maps, etc
Eighth step: outcome derivation, converting the area of interest thematic map to png outcome derivation (canvas. todataurl ("image/png")) based on canvas component properties, generating a thematic map as shown in fig. 2.
In the above step, the sixth step includes: 1) extracting map contents in a drawing range to fill a template clipcanvas.getcontext ('2d'). drawImage (at.printcanvas dom, at.start _ x, at.start _ y, at.area _ width, at.area _ height, 0, 0, at.area _ width, and at.area _ height);
2) extracting a current map scale resolution filling template based on webgl;
3) generate a legend based on canvas + webgl (ctx. fillstyle = item. color; ctx. fillrect (0, 25 index, 30, 20); ctx. stroketext (item. label, 30, 25+25 index-10);)
According to the embodiment of the invention, on the front-end geographic visualization platform, thematic map templates are generated in advance, image data, thematic map elements such as a scale, a legend and a picture name are extracted in a modularized mode step by step to be filled and covered, and finally, the thematic map elements are converted into png and jpg format results based on canvas component characteristics to be exported, so that simple thematic map production and rapid platform analysis result plotting are realized.
Example two
In another embodiment of the present disclosure, as shown in fig. 3, the thematic map generating apparatus based on the front-end map visualization platform includes a template generating module, configured to invoke a thematic map style file to generate a thematic map template;
the vector range determining module is used for adding the vector data of the attention area to a visualization platform for thematic map display; drawing a vector frame of the attention area through a visualization platform;
the extraction module is used for extracting map image data of the concerned area; extracting vector geographic element distribution characteristics included in vector data of the attention area;
a filling module, configured to fill the map image data of the attention area and the vector geographic element distribution features included in the vector data of the attention area into the thematic map template to form an initial attention area thematic map;
the conversion module is used for editing thematic map attribute information of the thematic map of the initial attention area to obtain the thematic map of the attention area; and (5) carrying out format conversion on the thematic map of the concerned area and then exporting the thematic map to finish thematic map generation.
EXAMPLE III
The thematic map generation electronic device based on the front-end map visualization platform comprises a memory and a processor; the memory for storing a computer program; the processor is configured to, when executing the computer program, enable a computer to execute the thematic map generation method based on the front-end map visualization platform in the first embodiment, where specific generation steps are the same as those in the first embodiment and are not described again.
Example four
Another specific embodiment of the present disclosure is a computer-readable medium, where a program code is stored in the computer-readable medium, and when the program code runs on a computer, the computer is enabled to execute the thematic map generation method based on a front-end map visualization platform in the first embodiment, where specific generation steps are the same as those in the first embodiment, and are not described again.
The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium. The computer readable storage medium may be any available medium that can be read by a computer or a data storage device including one or more available media integrated servers, data centers, and the like. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., Digital Versatile Disk (DVD)), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others. The software formed by the computer stored code can be located in the storage media mature in the field of random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, etc.
The functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. A thematic map generation method based on a front-end map visualization platform is characterized by comprising the following steps:
firstly, calling a thematic map style file to generate a thematic map template;
adding the vector data of the attention area to a visualization platform for thematic map display;
drawing a vector frame of the attention area through a visualization platform;
extracting map image data of the attention area; extracting vector geographic element distribution characteristics included in vector data of the attention area;
filling the map image data of the attention area and the vector geographic element distribution characteristics included in the vector data of the attention area into the thematic map template to form an initial attention area thematic map;
editing thematic map attribute information of the thematic map of the initial attention area to obtain a thematic map of the attention area;
and (5) carrying out format conversion on the thematic map of the concerned area and then exporting the thematic map to finish thematic map generation.
2. The thematic map generation method based on the front-end map visualization platform as claimed in claim 1, wherein: and the thematic map template calls a thematic map style file to automatically generate.
3. The thematic map generation method based on the front-end map visualization platform as claimed in claim 2, wherein: the thematic map attribute information comprises a map name of a thematic map of an attention area and thematic map profile information.
4. The thematic map generation method based on the front-end map visualization platform as claimed in claim 3, wherein: the formats of the area of interest thematic map include png and jpg formats.
5. The thematic map generation method based on the front-end map visualization platform as claimed in claim 1 or 4, wherein: vector data of the attention area adopts a geojson format; and the webgl technology is adopted for the vector geographic element distribution characteristics included in the map image data and the vector data of the extracted attention area.
6. A thematic map generation device based on a front-end map visualization platform is characterized by comprising:
the template generating module is used for calling the thematic map style file to generate a thematic map template;
the vector range determining module is used for adding the vector data of the attention area to a visualization platform for thematic map display; drawing a vector frame of the attention area through a visualization platform;
the extraction module is used for extracting map image data of the concerned area; extracting vector geographic element distribution characteristics included in vector data of the attention area;
a filling module, configured to fill the map image data of the attention area and the vector geographic element distribution features included in the vector data of the attention area into the thematic map template to form an initial attention area thematic map;
the conversion module is used for editing thematic map attribute information of the thematic map of the initial attention area to obtain the thematic map of the attention area; and (5) carrying out format conversion on the thematic map of the concerned area and then exporting the thematic map to finish thematic map generation.
7. The utility model provides a thematic map generates electron device based on visual platform of front end map which characterized in that: comprising a memory and a processor; the memory for storing a computer program; the processor, when executing the computer program, is configured to implement the thematic map generation method based on the front-end map visualization platform according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, implements the thematic map generation method based on a front-end map visualization platform according to any one of claims 1 to 5.
CN202110354988.1A 2021-04-01 2021-04-01 Thematic map generation method and device based on front-end map visualization platform Pending CN113160344A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110354988.1A CN113160344A (en) 2021-04-01 2021-04-01 Thematic map generation method and device based on front-end map visualization platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110354988.1A CN113160344A (en) 2021-04-01 2021-04-01 Thematic map generation method and device based on front-end map visualization platform

Publications (1)

Publication Number Publication Date
CN113160344A true CN113160344A (en) 2021-07-23

Family

ID=76886049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110354988.1A Pending CN113160344A (en) 2021-04-01 2021-04-01 Thematic map generation method and device based on front-end map visualization platform

Country Status (1)

Country Link
CN (1) CN113160344A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104951567A (en) * 2015-07-14 2015-09-30 国家信息中心 Natural resource element level product manufacturing method and system
CN105608191A (en) * 2015-12-23 2016-05-25 云南电网有限责任公司 EnersunWebCache based method for dynamically generating cached power grid map tiles
CN109145174A (en) * 2018-08-01 2019-01-04 山东省国土测绘院 A kind of emergency geography information quick draw graphics system and its drafting method
CN110489499A (en) * 2019-05-31 2019-11-22 武汉大学 A kind of on-line intelligence special map plotting method
CN111260749A (en) * 2020-01-03 2020-06-09 云南省地图院 Method, device and storage medium for generating standard scale map
CN112465958A (en) * 2020-12-16 2021-03-09 中国电建集团昆明勘测设计研究院有限公司 WebGL-based BIM model lightweight display method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104951567A (en) * 2015-07-14 2015-09-30 国家信息中心 Natural resource element level product manufacturing method and system
CN105608191A (en) * 2015-12-23 2016-05-25 云南电网有限责任公司 EnersunWebCache based method for dynamically generating cached power grid map tiles
CN109145174A (en) * 2018-08-01 2019-01-04 山东省国土测绘院 A kind of emergency geography information quick draw graphics system and its drafting method
CN110489499A (en) * 2019-05-31 2019-11-22 武汉大学 A kind of on-line intelligence special map plotting method
CN111260749A (en) * 2020-01-03 2020-06-09 云南省地图院 Method, device and storage medium for generating standard scale map
CN112465958A (en) * 2020-12-16 2021-03-09 中国电建集团昆明勘测设计研究院有限公司 WebGL-based BIM model lightweight display method

Non-Patent Citations (7)

* Cited by examiner, † Cited by third party
Title
孙哲;赵曦;贾宁;: "基于"天地图"的地震专题图自动出图技术研究与实现――以陕西省为例", 震灾防御技术, no. 02, 15 June 2016 (2016-06-15) *
宋伟东;赵芳杰;赵开会;: "基于遥感影像的交通专题图制作", 测绘与空间地理信息, no. 10, 25 October 2018 (2018-10-25) *
宋婷婷: ""基于NewMap Server架构的在线专题制图技术研究与试验"", 《中国优秀硕士学位论文全文数据库 基础科学辑》, no. 01, 15 January 2018 (2018-01-15), pages 008 - 177 *
屈新原;李家存;赵晓丽;严城;: "面向灾害遥感快速制图的关键技术", 地理空间信息, no. 05, 28 October 2011 (2011-10-28) *
张银虎;: "基于多源数据的铁路遥感影像专题图制作探讨", 工程技术研究, no. 08, 25 April 2020 (2020-04-25) *
王重阳;: "基于Openlayers和ECharts的网络空间数据获取及可视化――以沈阳市主城区为例", 北京测绘, no. 01, 17 January 2020 (2020-01-17) *
郑川;曹彦波;李敏;李兆隆;吴艳梅;: "云南地震应急专题图模板设计与本地化软件集成应用", 华南地震, no. 04, 15 December 2016 (2016-12-15) *

Similar Documents

Publication Publication Date Title
CN112559667B (en) Map editor, map engine, map editing system, map editing method, and storage medium
CN109086286B (en) Method for producing and publishing color topographic map
CN107992589B (en) SVG map data loading method, device and system
CN110503718B (en) Three-dimensional engineering model lightweight display method
CN112256790A (en) WebGL-based three-dimensional visualization display system and data visualization method
CN110516015B (en) Method for manufacturing geographical PDF map based on map graphic data and DLG
CN108681595B (en) Geographical PDF map mixed plane coordinate system model and construction method thereof
CN115439609B (en) Three-dimensional model rendering method, system, equipment and medium based on map service
CN111639149B (en) Ocean data visualization method and device
CN113626455A (en) Method and device for updating picture library in linkage manner, electronic equipment and storage medium
CN112330532A (en) Image analysis processing method and equipment
CN112860839A (en) Water environment quality real-time monitoring method and device based on Unity3D
CN114820972A (en) Contour line and/or contour surface generation method, system, device and storage medium
KR20120075626A (en) Apparatus and method for processing electric navigational chart in web-based service
CN115375812A (en) CAD data rendering method and device, electronic equipment and storage medium
CN112396681A (en) Animation generation method and device and storage medium
CN113160344A (en) Thematic map generation method and device based on front-end map visualization platform
CN116245052A (en) Drawing migration method, device, equipment and storage medium
CN115827803A (en) Data display method and device, terminal equipment and storage medium
KR101768913B1 (en) Method of partitioning a data including geographical information, apparatus performing the same and storage medium storing a program performing the same
CA3105227C (en) Techniques for extraction of vectorized content of an oil and gas play within an unstructured file
CN114494509A (en) Label drawing method, device and equipment for online drawing and storage medium
CN114018243A (en) Map data processing method, device, equipment and storage medium
TW201317935A (en) System and method for analyzing measurement graphic documents
CN109741417B (en) Method and device for generating graphic file, computing equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination