CN110209856A - A kind of the map rendering method and device of O&M of transmitting electricity - Google Patents
A kind of the map rendering method and device of O&M of transmitting electricity Download PDFInfo
- Publication number
- CN110209856A CN110209856A CN201910523976.XA CN201910523976A CN110209856A CN 110209856 A CN110209856 A CN 110209856A CN 201910523976 A CN201910523976 A CN 201910523976A CN 110209856 A CN110209856 A CN 110209856A
- Authority
- CN
- China
- Prior art keywords
- data
- electricity
- map
- vectorlayer
- transmission line
- 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
Links
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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/54—Browsing; Visualisation therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/56—Information retrieval; Database structures therefor; File system structures therefor of still image data having vectorial format
Abstract
The invention discloses the map rendering methods and device of a kind of O&M of transmitting electricity.In one embodiment, obtains tile map data and obtain transmission line of electricity VectorLayer data;It is rendered according to the tile map data and transmission line of electricity VectorLayer data.By implementing above-described embodiment, map can be frequently rendered under the scene in power station and complicated overhead transmission line in face of network system substantial amounts.
Description
Technical field
The present invention relates to technical field of geographic information more particularly to a kind of the map rendering methods and device of O&M of transmitting electricity.
Background technique
Coral lattice tile is to draw fixed PNG and JPG picture set in server end in advance, and grid tile can not retain
The space characteristics of data;Vector tile is not appropriate for data and updates frequently, and data volume is big, the field of the complicated multiplicity of rendering mode
Scape.And currently, frequently rendering map under the scene in power station and complicated overhead transmission line in face of network system substantial amounts
It is that grid tile and vector tile cannot be accomplished.
Summary of the invention
Technical problem to be solved by the present invention lies in provide the map rendering method and device of a kind of O&M of transmitting electricity, energy
Under the scene of enough power stations in face of network system substantial amounts and complicated overhead transmission line, map is frequently rendered.
In order to solve the above-mentioned technical problems, the present invention provides a kind of map rendering methods of O&M of transmitting electricity, comprising:
It obtains tile map data and obtains transmission line of electricity VectorLayer data;
It is rendered according to the tile map data and transmission line of electricity VectorLayer data.
Further, described to be rendered according to tile map data and transmission line of electricity VectorLayer data, it is to pass through wash with watercolours
Dye engine is rendered, and the rendering engine is the OpenGL map rendering engine in conjunction with Mapnik geography information frame.
Further, the tile map data and transmission line of electricity VectorLayer data are buffered in memory database
's.
Further, described if the tile map data and VectorLayer data are not present in memory database
Tile map data and transmission line of electricity VectorLayer data are stored in local data base.
The embodiment of the present invention also provides a kind of map rendering device of O&M of transmitting electricity, comprising:
Data capture unit 11 obtains tile map data and obtains transmission line of electricity VectorLayer data;
Rendering unit 12 is rendered according to the tile map data and transmission line of electricity VectorLayer data.
Further, described to be rendered according to tile map data and transmission line of electricity VectorLayer data, it is to pass through wash with watercolours
Dye engine is rendered, and the rendering engine is the OpenGL map rendering engine in conjunction with Mapnik geography information frame.
Further, the tile map data and transmission line of electricity VectorLayer data are buffered in memory database
's.
Further, described if the tile map data and VectorLayer data are not present in memory database
Tile map data and transmission line of electricity VectorLayer data are stored in local data base.
The utility model has the advantages that compared in the prior art, the present invention can after front end obtains transmission line of electricity vector data, watt
VectorLayer is rendered on the basis of piece figure layer and the tile figure layer that is added to is shown, can be realized huge in face of network system quantity
Under the scene in big power station and complicated overhead transmission line, map is frequently rendered.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the flow diagram of the map rendering method of transmission of electricity O&M provided in an embodiment of the present invention;
Fig. 2 is the structural schematic diagram of the map rendering device of transmission of electricity O&M provided in an embodiment of the present invention;
Fig. 3 is that the tile map made based on the present invention is superimposed dirty area's thermodynamic chart (vector figure layer);
Fig. 4 is tile map superposition mountain fire point diagram (vector figure layer) made based on the present invention
Fig. 5 is that (circle is bigger, and number is bigger based on the tile map superposition lightning strike spot bubble diagram of the invention made;Vector figure layer)
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction
Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded
Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment
And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is
Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
It should be noted that number of steps description merely for convenience as used herein, does not execute to as to step
The restriction of sequencing.
Refering to fig. 1, the map rendering method of the transmission of electricity O&M, comprising:
S11, tile map data are obtained and obtain transmission line of electricity VectorLayer data.
S12, it is rendered according to the tile map data and transmission line of electricity VectorLayer data.
In specific embodiment, the transmission line of electricity VectorLayer data include route, pylon account and relatively
Manage spatial data.
Wherein, described to be rendered according to tile map data and transmission line of electricity VectorLayer data, it is to be drawn by rendering
It holds up and is rendered, the rendering engine is the OpenGL map rendering engine in conjunction with Mapnik geography information frame.
Step S11 and step S12 will be described in detail below;
Firstly, response user terminal requests show the instruction of map, respectively from tile map service and vector data service
Middle acquisition tile map data and transmission line of electricity VectorLayer data;
Rendering engine is according to will be in the portion that terminal screen is shown in the tile map data acquisition electronics map of the acquisition
Divide the included corresponding map segment of segment number, rendering engine draws institute using grid Rendering on the terminal screen
State map segment.
The segment number according in electronic map by the size in the part that terminal screen is shown (region to be shown), in
Heart point latitude and longitude coordinates and the current display scale ruler of electronic map are determined.
Specifically, according to the size in the region to be shown, central point determine the region to be shown it is described electronically
The regional scope covered in figure, and it is corresponding with the regional scope under different display scales from being chosen in preset segment number
Segment number;The segment number of selection segment number corresponding with the display scale, which is determined as the region to be shown, is included
Segment number.
The polar plot number of plies that rendering engine uses vector Rendering will acquire according to the VectorLayer data of the acquisition
According to being rendered to map segment.
The rendering engine is acquired described by tile map data and transmission line of electricity VectorLayer data respectively
Map segment is overlapped, and is shown to superimposed map segment.
In a preferred embodiment, it is described state tile map data and transmission line of electricity VectorLayer data be buffered in
In deposit data library, the memory database is Redis database;If the tile map data and VectorLayer data are not deposited
It is in memory database, then the tile map data and transmission line of electricity VectorLayer data are stored in local data base
, the local data base is respectively MongDB database and MySQL database;The rendering engine can carry out two-dimensional map wash with watercolours
The rendering of the map of dye and/or three-dimensional.
Introduction based on the present embodiment, compared in the prior art, the present invention can obtain transmission line of electricity vector in front end
After data, VectorLayer is rendered on the basis of tile figure layer and the tile figure layer that is added to is shown, can be realized in face of electricity
Under the scene of the huge power station of net system quantity and complicated overhead transmission line, map is frequently rendered.
Referring to Fig.2, the map rendering device of the transmission of electricity O&M, comprising:
Data capture unit 11 obtains tile map data and obtains transmission line of electricity VectorLayer data;
Rendering unit 12 is rendered according to the tile map data and transmission line of electricity VectorLayer data.
In specific embodiment, the transmission line of electricity VectorLayer data include route, pylon account and relatively
Manage spatial data.
Wherein, described to be rendered according to tile map data and transmission line of electricity VectorLayer data, it is to be drawn by rendering
It holds up and is rendered, the rendering engine is the OpenGL map rendering engine in conjunction with Mapnik geography information frame.
The present embodiment will be described in detail below:
Data capture unit obtains tile map data and transmission of electricity from tile map service and vector data service respectively
Route VectorLayer data;
Rendering engine is according to will be in the portion that terminal screen is shown in the tile map data acquisition electronics map of the acquisition
Divide the included corresponding map segment of segment number, rendering engine draws institute using grid Rendering on the terminal screen
State map segment.
The segment number according in electronic map by the size in the part that terminal screen is shown (region to be shown), in
Heart point latitude and longitude coordinates and the current display scale ruler of electronic map are determined.
Specifically, according to the size in the region to be shown, central point determine the region to be shown it is described electronically
The regional scope covered in figure, and it is corresponding with the regional scope under different display scales from being chosen in preset segment number
Segment number;The segment number of selection segment number corresponding with the display scale, which is determined as the region to be shown, is included
Segment number.
The polar plot number of plies that rendering engine uses vector Rendering will acquire according to the VectorLayer data of the acquisition
According to being rendered to map segment.
The rendering engine is acquired described by tile map data and transmission line of electricity VectorLayer data respectively
Map segment is overlapped, and is shown to superimposed map segment.
In specific embodiment, the transmission line of electricity VectorLayer data include route, pylon account and relatively
Manage spatial data;
It is described to state tile map data and transmission line of electricity VectorLayer data are buffered in memory database, it is described in
Deposit data library is Redis database;
If the tile map data and VectorLayer data are not present in memory database, the tile map number
It is stored in local data base according to transmission line of electricity VectorLayer data, the local data base is respectively MongDB data
Library and MySQL database;
Specifically, rendering engine can carry out two-dimensional map rendering and/or the map rendering of three-dimensional.
Introduction based on the present embodiment, compared in the prior art, the present invention can obtain transmission line of electricity vector in front end
After data, VectorLayer is rendered on the basis of tile figure layer and the tile figure layer that is added to is shown, can be realized in face of electricity
Under the scene of the huge power station of net system quantity and complicated overhead transmission line, map is frequently rendered.
In a preferred embodiment, it is described state tile map data and transmission line of electricity VectorLayer data be buffered in
In deposit data library, the memory database is Redis database;If the tile map data and VectorLayer data are not deposited
It is in memory database, then the tile map data and transmission line of electricity VectorLayer data are stored in local data base
, the local data base is respectively MongDB database and MySQL database;The rendering engine can carry out two-dimensional map wash with watercolours
The rendering of the map of dye and/or three-dimensional.
Introduction based on the present embodiment, compared in the prior art, the present invention can obtain transmission line of electricity vector in front end
After data, VectorLayer is rendered on the basis of tile figure layer and the tile figure layer that is added to is shown, can be realized in face of electricity
Under the scene of the huge power station of net system quantity and complicated overhead transmission line, map is frequently rendered.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above is a preferred embodiment of the present invention, it is noted that for those skilled in the art
For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as
Protection scope of the present invention.
Claims (8)
1. a kind of map rendering method for O&M of transmitting electricity characterized by comprising
It obtains tile map data and obtains transmission line of electricity VectorLayer data;
It is rendered according to the tile map data and transmission line of electricity VectorLayer data.
2. the map rendering method of transmission of electricity O&M as described in claim 1, which is characterized in that described according to tile map data
It is rendered with transmission line of electricity VectorLayer data, is rendered by rendering engine, the rendering engine is to combine
The OpenGL map rendering engine of Mapnik geography information frame.
3. the map rendering method of transmission of electricity O&M as described in claim 1, which is characterized in that tile map data and defeated
Electric line VectorLayer data are buffered in memory database.
4. as claimed in claim 3 transmission of electricity O&M map rendering method, which is characterized in that if the tile map data and
VectorLayer data are not present in memory database, then the tile map data and transmission line of electricity VectorLayer data are to deposit
It is stored in local data base.
5. a kind of map rendering device for O&M of transmitting electricity characterized by comprising
Data capture unit obtains tile map data and obtains transmission line of electricity VectorLayer data;
Rendering unit is rendered according to the tile map data and transmission line of electricity VectorLayer data.
6. the map rendering device of transmission of electricity O&M as claimed in claim 5, which is characterized in that described according to tile map data
It is rendered with transmission line of electricity VectorLayer data, is rendered by rendering engine, the rendering engine is to combine
The OpenGL map rendering engine of Mapnik geography information frame.
7. the map rendering device of transmission of electricity O&M as claimed in claim 5, which is characterized in that tile map data and defeated
Electric line VectorLayer data are buffered in memory database.
8. as claimed in claim 7 transmission of electricity O&M map rendering device, which is characterized in that if the tile map data and
VectorLayer data are not present in memory database, then the tile map data and transmission line of electricity VectorLayer data are to deposit
It is stored in local data base.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910523976.XA CN110209856A (en) | 2019-06-17 | 2019-06-17 | A kind of the map rendering method and device of O&M of transmitting electricity |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910523976.XA CN110209856A (en) | 2019-06-17 | 2019-06-17 | A kind of the map rendering method and device of O&M of transmitting electricity |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110209856A true CN110209856A (en) | 2019-09-06 |
Family
ID=67793066
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910523976.XA Pending CN110209856A (en) | 2019-06-17 | 2019-06-17 | A kind of the map rendering method and device of O&M of transmitting electricity |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110209856A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110599891A (en) * | 2019-09-23 | 2019-12-20 | 东方电子股份有限公司 | Map rendering method for power grid equipment |
CN110990515A (en) * | 2019-12-05 | 2020-04-10 | 中国南方电网有限责任公司 | Power grid graph browsing method, system, device, computer equipment and storage medium |
CN111915690A (en) * | 2020-08-03 | 2020-11-10 | 北京吉威空间信息股份有限公司 | Thermodynamic diagram data reduction method based on vector tiles |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107590226A (en) * | 2017-09-05 | 2018-01-16 | 中国电子科技集团公司第二十八研究所 | A kind of map vector rendering intent based on tile |
CN109408657A (en) * | 2018-11-13 | 2019-03-01 | 国家基础地理信息中心 | A kind of ultra-large spatial data rapid drafting method and system |
-
2019
- 2019-06-17 CN CN201910523976.XA patent/CN110209856A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107590226A (en) * | 2017-09-05 | 2018-01-16 | 中国电子科技集团公司第二十八研究所 | A kind of map vector rendering intent based on tile |
CN109408657A (en) * | 2018-11-13 | 2019-03-01 | 国家基础地理信息中心 | A kind of ultra-large spatial data rapid drafting method and system |
Non-Patent Citations (2)
Title |
---|
刘玉栋: "基于WebGIS的城市地下电力管线管理系统设计与开发", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
周 侃等: "基于 MapX 的卫星遥感影像地图导航系统设计", 《测控遥感与导航定位》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110599891A (en) * | 2019-09-23 | 2019-12-20 | 东方电子股份有限公司 | Map rendering method for power grid equipment |
CN110599891B (en) * | 2019-09-23 | 2021-09-14 | 东方电子股份有限公司 | Map rendering method for power grid equipment |
CN110990515A (en) * | 2019-12-05 | 2020-04-10 | 中国南方电网有限责任公司 | Power grid graph browsing method, system, device, computer equipment and storage medium |
CN111915690A (en) * | 2020-08-03 | 2020-11-10 | 北京吉威空间信息股份有限公司 | Thermodynamic diagram data reduction method based on vector tiles |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110209856A (en) | A kind of the map rendering method and device of O&M of transmitting electricity | |
CN104408297B (en) | General Aviation weather information handles system | |
CA2582583C (en) | Stitching of paths for improved text-on-path rendering of map labels | |
CN110379010A (en) | Three-dimensional geographic information method for visualizing and system based on video fusion | |
CN103258472B (en) | The disposal route of electronic chart and device, server and system | |
CN103929412B (en) | Method for constructing interactive situation in network environment | |
CN102647512A (en) | All-round display method of spatial information | |
CN103914877A (en) | Three-dimensional model multi-detail-level structure based on extension combination | |
CN109102093A (en) | The determination method, apparatus and electronic equipment of single hot spot region under a kind of net about vehicle | |
CN112435337A (en) | Landscape visual field analysis method and system | |
CN108846900A (en) | Improve the method and system of spatial impression of the user in source of houses virtual three-dimensional space figure | |
CN105871826A (en) | Method and device for sharing geographic position between terminals | |
CN108198099A (en) | The guidance method and system of augmented reality, device, server and computer readable storage medium | |
CN205987391U (en) | Tourist attraction visitor's system of playing based on GPS location | |
CN104616119A (en) | Method and device used for providing history order data and method and device used for providing real-time order list | |
CN106488402B (en) | Ground is made an inventory rendering method and relevant device | |
CN109934932A (en) | A kind of method and system for realizing information push based on augmented reality | |
CN102024377B (en) | 3D map layered display method and device | |
CN110222068A (en) | A kind of map updating method and device of O&M of transmitting electricity | |
CN106845008B (en) | A kind of processing method and processing device of VR equipment | |
CN106373175A (en) | Terrain height graph data loading method | |
CN103345302A (en) | Virtual roaming system based on positioning and posture perception and achieving method thereof | |
CN112035694B (en) | Lightweight front-end GIS two-dimensional and three-dimensional integrated display method | |
CN108228723A (en) | WEB three-dimensional modeling datas construction method and computer readable storage medium | |
CN107454168B (en) | Three-dimensional geological model publishing and visualization method and system based on snapshot technology |
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 |