[go: up one dir, main page]

CN112559619A - Method and device for drawing spatial distribution map, electronic equipment and readable storage medium - Google Patents

Method and device for drawing spatial distribution map, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN112559619A
CN112559619A CN202011419185.1A CN202011419185A CN112559619A CN 112559619 A CN112559619 A CN 112559619A CN 202011419185 A CN202011419185 A CN 202011419185A CN 112559619 A CN112559619 A CN 112559619A
Authority
CN
China
Prior art keywords
elements
spatial
rendering
distribution map
map
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
CN202011419185.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.)
3Clear Technology Co Ltd
Original Assignee
3Clear 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 3Clear Technology Co Ltd filed Critical 3Clear Technology Co Ltd
Priority to CN202011419185.1A priority Critical patent/CN112559619A/en
Publication of CN112559619A publication Critical patent/CN112559619A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs

Landscapes

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

Abstract

The invention discloses a method and a device for drawing a spatial distribution map, electronic equipment and a readable storage medium, wherein the method comprises the following steps: generating GIS data as a distribution map base map by GIS data processing software; loading administrative division data for the distribution diagram base by calling a matplotlib drawing library and a cartopy package of python to obtain an administrative division base diagram; acquiring environmental elements and/or meteorological elements of each site; drawing a first spatial interpolation distribution map according to the administrative region base map and the environmental elements and/or meteorological elements of each site; and performing level rendering on the first spatial interpolation distribution map according to the environment element and/or the meteorological element to draw a first region rendering map. The invention solves the problem that the specific spatial distribution map can only be drawn through the inherent template in the prior art, realizes the free combination of geographic elements, environmental elements and meteorological elements, and has rich display and convenient operation.

Description

Method and device for drawing spatial distribution map, electronic equipment and readable storage medium
Technical Field
The invention relates to the technical field of surveying and mapping, in particular to a method and a device for drawing a spatial distribution map, electronic equipment and a readable storage medium.
Background
In the mapping field, the monitoring data of the spatial distribution map is collected by monitoring stations, and each monitoring station is distributed with geographic elements (geographic administrative division data) and environmental elements (AQI, PM)2.5、PM10、SO2、CO、NO2、O3) And the concentration of meteorological elements (wind, temperature, humidity, air pressure and precipitation) also have spatial distribution characteristics, so that the pollution condition of each region and each time can be visually displayed by drawing a spatial distribution diagram. Spatial profile rendering is typically performed by calling a rendering library, such as: the american Environmental Systems Research Institute (ESRI) company ArcEngine, the beijing hypergap, the gioxins series software GeoStar, and the like, which are software libraries of the ESRI company, have a large volume and are cumbersome to install and require commercial license authorization. The traditional method for drawing the spatial distribution map comprises the following steps: firstly, a template is made, map color matching is completed, a packaged interface is called, and a spatial distribution diagram is drawn, but the method can only generate a specific spatial distribution diagram through the template.
With the development of the technology, the spatial distribution map can be realized in different ways, but the arbitrary superposition of the environmental elements and the meteorological elements on the geographic elements cannot be realized, and the drawing is performed only through the inherent template, so that the method is only suitable for the drawing requirements of the current scene and cannot be used universally.
Aiming at the problem that the specific spatial distribution map can only be drawn through the inherent template singly and a plurality of types of spatial distribution maps cannot be drawn synchronously in the prior art, an effective solution is not provided.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a method, an apparatus, an electronic device, and a readable storage medium for drawing a spatial distribution map, so as to solve the problem that in the prior art, only a specific spatial distribution map can be drawn through an inherent template singly, and multiple types of spatial distribution maps cannot be drawn simultaneously.
Therefore, the embodiment of the invention provides the following technical scheme:
in a first aspect of the present invention, a method for drawing a spatial distribution map is provided, including:
generating GIS data as a distribution map base map by GIS data processing software;
loading administrative division data for the distribution diagram base by calling a matplotlib drawing library and a cartopy package of python to obtain an administrative division base diagram;
acquiring environmental elements and/or meteorological elements of each site;
drawing a first spatial interpolation distribution map according to the administrative region base map and the environment elements and/or meteorological elements of each station;
and performing level rendering on the first spatial interpolation distribution map according to the environment elements and/or the meteorological elements, and drawing a first region rendering map.
Optionally, a first spatial interpolation distribution map is drawn according to the administrative region base map in combination with the environmental elements and/or meteorological elements of the various sites, and the method further includes:
performing spatial interpolation by adopting IDW according to the environment elements and/or the meteorological elements to form interpolation data of each grid point; each grid point is obtained by dividing an area to be monitored according to longitude and latitude;
and cutting through a geographical boundary, and drawing the first spatial interpolation distribution map according to the interpolation data.
Optionally, the method further comprises:
and when the first spatial interpolation distribution map simultaneously shows the environmental elements and the meteorological elements, showing the meteorological elements through contour lines.
Optionally, the first spatial interpolation distribution map is subjected to level rendering according to the environmental elements and/or the meteorological elements, and a first region rendering map is drawn, and the method further includes:
determining the pollution level of each administrative area according to the environmental elements and/or the meteorological elements and the geographical partition codes;
and rendering the pollution level of each administrative district according to the color corresponding to each pollution level.
Optionally, the method further comprises:
at least the environmental elements include: PM (particulate matter)2.5、PM10、NO2、SO2When the concentration value of CO is determined, PM is calculated2.5/PM10、NO2/SO2、SO2/CO、NO2The ratio of/CO;
combining PM of each station according to the administrative region base map2.5/PM10、NO2/SO2、SO2/CO、NO2The ratio of/CO, and drawing a second spatial interpolation distribution graph;
according to the PM2.5/PM10、NO2/SO2、SO2/CO、NO2And performing level rendering on the second spatial interpolation distribution map by the ratio of/CO, and drawing a second zone rendering map.
In a second aspect of the present invention, there is provided a spatial distribution map drawing apparatus, including:
the generating module is used for generating GIS data as a distribution map base map through GIS data processing software;
the calling module is used for loading administrative division data for the distribution diagram base by calling a matplotlib drawing library and a cartopy package of python to obtain an administrative division base diagram;
the acquisition module is used for acquiring environmental elements and/or meteorological elements of each site;
the first drawing module is used for drawing a first spatial interpolation distribution map according to the administrative region base map and the environment elements and/or meteorological elements of each station;
and the second drawing module is used for performing level rendering on the first spatial interpolation distribution map according to the environment elements and/or the meteorological elements and drawing a first region rendering map.
Optionally, the first drawing module further includes:
the interpolation unit is used for carrying out spatial interpolation by adopting IDW according to the environment elements and the meteorological elements to form interpolation data of each grid point; each grid point is obtained by dividing an area to be monitored according to longitude and latitude;
and the drawing unit is used for cutting through a geographical boundary and drawing the first spatial interpolation distribution map according to the interpolation data.
Optionally, the apparatus further comprises:
and the display module is used for displaying the meteorological elements through contour lines when the first spatial interpolation distribution map simultaneously displays the environmental elements and the meteorological elements.
In a third aspect of the present invention, there is provided an electronic device comprising:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method of spatial histogram rendering as described in any one of the above first aspects.
In a fourth aspect of the present invention, there is provided a computer-readable storage medium comprising:
a computer readable storage medium having stored thereon computer instructions, which when executed by a processor, implement the method of spatial histogram rendering as described in any one of the above first aspects.
The technical scheme of the embodiment of the invention has the following advantages:
the embodiment of the invention provides a method and a device for drawing a spatial distribution map, electronic equipment and a readable storage medium, wherein the method comprises the following steps: generating GIS data as a distribution map base map by GIS data processing software; loading administrative division data for the distribution diagram base by calling a matplotlib drawing library and a cartopy package of python to obtain an administrative division base diagram; acquiring environmental elements and/or meteorological elements of each site; drawing a first spatial interpolation distribution map according to the administrative region base map and the environmental elements and/or meteorological elements of each site; and performing level rendering on the first spatial interpolation distribution map according to the environment elements and/or meteorological elements to draw a first region rendering map. The problem that in the prior art, a specific spatial distribution map can only be drawn through an inherent template singly, and multiple types of spatial distribution maps cannot be drawn synchronously is solved. The embodiment of the invention realizes the free combination of the geographic elements, the environmental elements and the meteorological elements, the user can freely combine and draw under the conditions selected by the webpage according to the specific requirements, and the drawing configured according to any area is realized, so the operation is convenient and fast.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart of a profiling method according to an embodiment of the invention;
fig. 2 is a block diagram of a histogram rendering apparatus according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like indicate orientations or positional relationships based on those shown in the drawings, and are used merely for convenience of description and for simplicity of description, and do not indicate or imply that the referenced device or element must have a particular orientation, be constructed in a particular orientation, and be operated, and thus should not be considered as limiting the present application. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In this application, the word "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known structures and processes are not set forth in detail in order to avoid obscuring the description of the present application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
In accordance with an embodiment of the present invention, there is provided a distribution drawing method embodiment, it is noted that the steps illustrated in the flowchart of the figure may be performed in a computer system, such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
In this embodiment, a method for drawing a distribution diagram is provided, which can be used in environmental, meteorological and geographic monitoring systems, such as air detection systems, temperature detection systems, river monitoring systems, etc., fig. 1 is a flowchart of a method for drawing a distribution diagram according to an embodiment of the present invention, as shown in fig. 1, the flowchart includes the following steps:
and step S101, generating GIS data as a distribution map base map through GIS data processing software. Specifically, GIS data can be generated rapidly and conveniently through GIS data processing software, so that a distribution map base map can be generated rapidly, and the timeliness of the data is ensured.
And step S102, loading the administrative division data for the distribution diagram base by calling a matplotlib drawing library and a cartopy package of python to obtain the administrative division base. In particular, Python has advantages in processing data, such as fast development speed, small code amount, and rich data processing packets. The matplotlib drawing library and the cart package called by the embodiment of the invention are data processing packages possessed by Python, and terrain elements are superposed on the distribution map base map by calling open-source cart terrain data.
Step S103, acquiring environmental elements and/or meteorological elements of each site.
And step S104, drawing a first spatial interpolation distribution map according to the administrative region base map and the environmental elements and/or meteorological elements of each station. Specifically, in the embodiment of the present invention, when the interpolation distribution map is drawn, geographic elements, environmental elements, and/or meteorological elements may be displayed in the map, so that any superposition of the interpolation distribution map display elements is realized.
And step S105, performing level rendering on the first spatial interpolation distribution map according to the environment elements and/or the meteorological elements, and drawing a first region rendering map. Specifically, the embodiment of the invention performs level rendering on the environmental elements and/or meteorological elements in the process of drawing the interpolation distribution diagram, realizes the random superposition of the elements in the region rendering diagram, and is convenient for users to observe.
The spatial distribution map in the traditional technology can be realized in different modes, but the environment element and the meteorological element can not be arbitrarily superposed on the geographic element, and the drawing is only carried out through an inherent template, so that the method is only suitable for the drawing requirement of the current scene and can not be universal. Through the steps, the embodiment of the invention combines the geographic elements (geographic administrative division data) and the environmental elements (AQI and PM)2.5、PM10、SO2、CO、NO2、O3) The spatial interpolation distribution diagram, the region rendering diagram and the city and site dot diagram are drawn by randomly superposing meteorological elements (wind, temperature, humidity, air pressure and precipitation), so that fusion of multiple sources and multiple elements and automatic drawing of the spatial distribution diagram of any region are realized, and the problems that a specific spatial distribution diagram can only be drawn through an inherent template singly and multiple types of spatial distribution diagrams cannot be drawn synchronously in the prior art are solved. The embodiment of the invention realizes the free combination of the geographic elements, the environmental elements and the meteorological elements, performs free combination drawing on the webpage under the condition of selecting the conditions according to the specific requirements of the user, realizes the drawing configured according to any area, and has convenient operation.
Step S104 involves drawing a first spatial interpolation distribution map according to the administrative region base map in combination with the environmental elements and/or meteorological elements of each site, and in an alternative embodiment, performing spatial interpolation by IDW according to the environmental elements and/or meteorological elements to form interpolated data of each grid point, where each grid point may be obtained by dividing the region to be monitored according to longitude and latitude, clipping through a geographic boundary, and drawing the first spatial interpolation distribution map according to the interpolated data. Specifically, the interpolation data can be obtained simply and efficiently by an IDW (inverse distance weighted interpolation) method, and the interpolation data obtained by this method has accuracy.
In an alternative embodiment, the first spatial interpolation profile shows the meteorological element by contour lines while simultaneously showing the environmental element and the meteorological element. Specifically, when the environmental elements and meteorological elements are displayed simultaneously in the same distribution diagram, the distribution diagram is displayed more intuitively and conveniently by displaying the meteorological elements through the contour lines.
Step S105 involves performing a level rendering on the first spatial interpolation distribution map according to the environmental elements and/or the meteorological elements, drawing a first region rendering map, in an alternative embodiment, determining a pollution level of each administrative area according to the environmental elements and/or the meteorological elements and the geo-partition codes, and performing a pollution level rendering on each administrative area according to a color corresponding to each pollution level. Specifically, each city has at least one site, and the pollution level of each administrative area is determined by the data of the sites. The region rendering map can intuitively show the pollution degree of each region through different levels of colors.
In order to further improve the diversity and visibility effect of the spatial distribution map, in a specific embodiment, a dot diagram may be further drawn, and the pollution or weather condition of each region is visually shown through the density or color of dots in the dot diagram, for example, the pollution degree of each part in a certain river is described through the density of dots. The degree of pollution of a river can be generally expressed by densely packing dots or by coloring the dots with a corresponding level of color. The spatial distribution map supports simultaneous contrast maps showing up to 4 years, in addition to different types (interpolation maps, rendering maps by regions, dot maps) and different time scales (hours, day-average, year-average, time interval).
In any of the above embodiments, the environmental elements include at least: PM (particulate matter)2.5、PM10、NO2、SO2When the concentration value of CO is determined, PM is calculated2.5/PM10、NO2/SO2、SO2/CO、NO2Ratio of/CO, PM of each site is combined according to administrative division base map2.5/PM10、NO2/SO2、SO2/CO、NO2Ratio of/CO, second spatial interpolation profile, according to PM2.5/PM10、NO2/SO2、SO2/CO、NO2And performing level rendering on the second spatial interpolation distribution map by the ratio of/CO, and drawing a second zone rendering map. Utensil for cleaning buttockBody by calculating PM2.5/PM10、NO2/SO2、SO2/CO、NO2The ratio of/CO can further evaluate the condition of the environment, so that the monitoring result is more scientific and provides guidance for subsequent judgment.
Specifically, by PM2.5、PM10、NO2、SO2Concentration value of CO and PM2.5/PM10、NO2/SO2、SO2/CO、NO2The ratio/CO can be judged as follows: when PM2.5/PM10Is less than 0.4 and PM10When the concentration of the dust is higher, the influence of the dust on the current environment can be judged; when NO is present2/SO2And NO2When the numerical values of the mobile resources are greatly changed, the situation that the mobile resources are obviously increased in the current time period can be judged; since CO is a relatively stable gas, SO2the/CO can objectively evaluate the SO2The change trend of (2) can judge the condition of industry/fire coal in the current time period; for the same reason NO2the/CO can also be used for more objectively evaluating NO2The condition of diesel consumption and emission in the current period can be judged.
In this embodiment, a spatial distribution map drawing device is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and the description of the device is omitted for brevity. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
The present embodiment provides a spatial distribution map drawing apparatus, as shown in fig. 2, including:
the generating module 21 is configured to generate GIS data as a distribution map base map through GIS data processing software;
the calling module 22 is used for loading the administrative division data for the distribution diagram base by calling a matplotlib drawing library and a cartopy package of python to obtain an administrative division base diagram;
an obtaining module 23, configured to obtain environmental elements and/or meteorological elements of each site;
a first drawing module 24, configured to draw a first spatial interpolation distribution map according to the administrative region base map in combination with the environmental elements and/or meteorological elements of each site;
and a second drawing module 25, configured to perform level rendering on the first spatial interpolation distribution map according to the environmental element and/or the meteorological element, and draw a first region rendering map.
Optionally, the first rendering module further includes:
the interpolation unit is used for carrying out spatial interpolation by adopting IDW according to the environment elements and the meteorological elements to form interpolation data of each grid point; each grid point is obtained by dividing an area to be monitored according to longitude and latitude;
and the drawing unit is used for cutting through the geographic boundary and drawing the first spatial interpolation distribution map according to the interpolation data.
Optionally, the apparatus further comprises:
and the display module is used for displaying the meteorological elements through the contour lines when the first spatial interpolation distribution map simultaneously displays the environmental elements and the meteorological elements.
The spatial histogram rendering apparatus in this embodiment is presented in the form of functional units, where a unit refers to an ASIC circuit, a processor and memory executing one or more software or fixed programs, and/or other devices that may provide the above-described functionality.
Further functional descriptions of the modules are the same as those of the corresponding embodiments, and are not repeated herein.
An embodiment of the present invention further provides an electronic device, which has the distribution diagram drawing apparatus shown in fig. 2.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an electronic device according to an alternative embodiment of the present invention, and as shown in fig. 3, the electronic device may include: at least one processor 301, such as a CPU (Central Processing Unit), at least one communication interface 303, memory 304, and at least one communication bus 302. Wherein a communication bus 302 is used to enable the connection communication between these components. The communication interface 303 may include a Display (Display) and a Keyboard (Keyboard), and the optional communication interface 303 may further include a standard wired interface and a standard wireless interface. The Memory 304 may be a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The memory 304 may optionally be at least one storage device located remotely from the processor 301. Wherein the processor 301 may be combined with the apparatus described in fig. 2, the memory 304 stores an application program, and the processor 301 calls the program code stored in the memory 304 for executing any of the steps of the spatial profiling method described above.
The communication bus 302 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 3, but this does not mean only one bus or one type of bus.
The memory 304 may include a volatile memory (RAM), such as a random-access memory (RAM); the memory may also include a non-volatile memory (english: non-volatile memory), such as a flash memory (english: flash memory), a hard disk (english: hard disk drive, abbreviated: HDD) or a solid-state drive (english: SSD); the memory 304 may also comprise a combination of the above-described types of memory.
The processor 301 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of a CPU and an NP.
The processor 301 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.
Optionally, the memory 304 is also used to store program instructions. Processor 301 may invoke program instructions to implement a histogram rendering method as shown in the embodiments of fig. 1 and 2 of the present application.
The embodiment of the invention also provides a non-transitory computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the processing method of the distribution diagram drawing method in any method embodiment. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A method for drawing a spatial distribution map is characterized by comprising the following steps:
generating GIS data as a distribution map base map by GIS data processing software;
loading administrative division data for the distribution diagram base by calling a matplotlib drawing library and a cartopy package of python to obtain an administrative division base diagram;
acquiring environmental elements and/or meteorological elements of each site;
drawing a first spatial interpolation distribution map according to the administrative region base map and the environment elements and/or meteorological elements of each station;
and performing level rendering on the first spatial interpolation distribution map according to the environment elements and/or the meteorological elements, and drawing a first region rendering map.
2. The method for drawing the spatial distribution map according to claim 1, wherein drawing the first spatial interpolation distribution map by combining the environmental elements and/or meteorological elements of the respective sites according to the administrative region base map comprises:
performing spatial interpolation by adopting IDW according to the environment elements and/or the meteorological elements to form interpolation data of each grid point; each grid point is obtained by dividing an area to be monitored according to longitude and latitude;
and cutting through a geographical boundary, and drawing the first spatial interpolation distribution map according to the interpolation data.
3. The method of spatial histogram rendering according to claim 1 or 2, further comprising:
and when the first spatial interpolation distribution map simultaneously shows the environmental elements and the meteorological elements, showing the meteorological elements through contour lines.
4. The method for rendering a spatial distribution map according to claim 1, wherein performing a level rendering on the first spatial interpolation distribution map according to the environmental elements and/or the meteorological elements, rendering a first region rendering map, comprises:
determining the pollution level of each administrative area according to the environmental elements and/or the meteorological elements and the geographical partition codes;
and rendering the pollution level of each administrative district according to the color corresponding to each pollution level.
5. The method of spatial histogram rendering according to any of claims 1-4, further comprising:
at least the environmental elements include: PM (particulate matter)2.5、PM10、NO2、SO2When the concentration value of CO is determined, PM is calculated2.5/PM10、NO2/SO2、SO2/CO、NO2The ratio of/CO;
combining PM of each station according to the administrative region base map2.5/PM10、NO2/SO2、SO2/CO、NO2The ratio of/CO, and drawing a second spatial interpolation distribution graph;
according to the PM2.5/PM10、NO2/SO2、SO2/CO、NO2And performing level rendering on the second spatial interpolation distribution map by the ratio of/CO, and drawing a second zone rendering map.
6. An apparatus for rendering a spatial distribution map, comprising:
the generating module is used for generating GIS data as a distribution map base map through GIS data processing software;
the calling module is used for loading administrative division data for the distribution diagram base by calling a matplotlib drawing library and a cartopy package of python to obtain an administrative division base diagram;
the acquisition module is used for acquiring environmental elements and/or meteorological elements of each site;
the first drawing module is used for drawing a first spatial interpolation distribution map according to the administrative region base map and the environment elements and/or meteorological elements of each station;
and the second drawing module is used for performing level rendering on the first spatial interpolation distribution map according to the environment elements and/or the meteorological elements and drawing a first region rendering map.
7. The apparatus according to claim 6, wherein the first rendering module further comprises:
the interpolation unit is used for carrying out spatial interpolation by adopting IDW according to the environment elements and the meteorological elements to form interpolation data of each grid point; each grid point is obtained by dividing an area to be monitored according to longitude and latitude;
and the drawing unit is used for cutting through a geographical boundary and drawing the first spatial interpolation distribution map according to the interpolation data.
8. The spatial histogram rendering apparatus according to claim 6 or 7, further comprising:
and the display module is used for displaying the meteorological elements through contour lines when the first spatial interpolation distribution map simultaneously displays the environmental elements and the meteorological elements.
9. An electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method of spatial histogram rendering as set forth in any one of claims 1-5.
10. A computer readable storage medium having stored thereon computer instructions, which when executed by a processor, carry out the method of spatial histogram rendering as claimed in any one of claims 1 to 5.
CN202011419185.1A 2020-12-07 2020-12-07 Method and device for drawing spatial distribution map, electronic equipment and readable storage medium Pending CN112559619A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011419185.1A CN112559619A (en) 2020-12-07 2020-12-07 Method and device for drawing spatial distribution map, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011419185.1A CN112559619A (en) 2020-12-07 2020-12-07 Method and device for drawing spatial distribution map, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN112559619A true CN112559619A (en) 2021-03-26

Family

ID=75059601

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011419185.1A Pending CN112559619A (en) 2020-12-07 2020-12-07 Method and device for drawing spatial distribution map, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112559619A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112991489A (en) * 2021-04-07 2021-06-18 中科三清科技有限公司 Isobaric line drawing method and device, electronic equipment and storage medium
CN113961732A (en) * 2021-10-29 2022-01-21 重庆数字城市科技有限公司 Automatic analysis method of atmospheric environment based on intelligent data mining
CN115424511A (en) * 2022-11-04 2022-12-02 广州市城市规划勘测设计研究院 A method, device, equipment and storage medium for land space planning and drawing

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104851047A (en) * 2015-05-08 2015-08-19 西安理工大学 Agricultural meteorological factor online spatial visualization analysis method
CN107340364A (en) * 2017-05-31 2017-11-10 北京市环境保护监测中心 Polluted space analysis method and device based on magnanimity air pollution concentration data
CN107680148A (en) * 2017-09-28 2018-02-09 天津市环境监测中心 A kind of method for generating isogram in real time based on Monitoring Data
CN110147415A (en) * 2018-08-15 2019-08-20 中国电力科学研究院有限公司 A kind of the meteorological data distribution map methods of exhibiting and system of Distribution GIS
CN111986324A (en) * 2020-08-20 2020-11-24 湖南胜昊软件科技有限公司 Equivalent surface construction method based on meteorological elements

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104851047A (en) * 2015-05-08 2015-08-19 西安理工大学 Agricultural meteorological factor online spatial visualization analysis method
CN107340364A (en) * 2017-05-31 2017-11-10 北京市环境保护监测中心 Polluted space analysis method and device based on magnanimity air pollution concentration data
CN107680148A (en) * 2017-09-28 2018-02-09 天津市环境监测中心 A kind of method for generating isogram in real time based on Monitoring Data
CN110147415A (en) * 2018-08-15 2019-08-20 中国电力科学研究院有限公司 A kind of the meteorological data distribution map methods of exhibiting and system of Distribution GIS
CN111986324A (en) * 2020-08-20 2020-11-24 湖南胜昊软件科技有限公司 Equivalent surface construction method based on meteorological elements

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
DATAXIU.COM: "《https://www.cnblogs.com/songsgroup/p/6439966.html》", 24 February 2017 *
GISER_LIN: "《https://blog.csdn.net/nominior/article/details/88085560》", 3 March 2019 *
ZHANGQIBOT: "《https://cloud.tencent.com/developer/article/1507075?from=article.detail.1790590》", 17 September 2019 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112991489A (en) * 2021-04-07 2021-06-18 中科三清科技有限公司 Isobaric line drawing method and device, electronic equipment and storage medium
CN112991489B (en) * 2021-04-07 2021-11-05 中科三清科技有限公司 Isobaric line drawing method and device, electronic equipment and storage medium
CN113961732A (en) * 2021-10-29 2022-01-21 重庆数字城市科技有限公司 Automatic analysis method of atmospheric environment based on intelligent data mining
CN115424511A (en) * 2022-11-04 2022-12-02 广州市城市规划勘测设计研究院 A method, device, equipment and storage medium for land space planning and drawing

Similar Documents

Publication Publication Date Title
CN112559619A (en) Method and device for drawing spatial distribution map, electronic equipment and readable storage medium
WO2022089018A1 (en) Method and apparatus for slicing three-dimensional vector data of three-dimensional vector map, and electronic device
CN103325068B (en) A kind of method for drafting of real-time dynamic three-dimensional power grid contamination area distribution diagram
CN110556049B (en) Map data processing method, device, server and storage medium
CN110019622A (en) A kind of real time mass map point polymerization and device
CN103593861A (en) Tile loading method for 2.5-dimensional map service
CN108271171A (en) Buildings network situation statistical method and device
CN107229742A (en) A kind of method that city easily flood point is determined based on remote sensing big data
CN110570491A (en) Thermodynamic diagram generation method and device
CN103839291B (en) Build method and the device of dimensional topography
US10021668B2 (en) Wireless characteristic display apparatus, wireless characteristic display method, and computer readable medium
CN115493657A (en) Atmospheric pollution tracing method and device based on unmanned aerial vehicle
CN115830010B (en) Method and device for detecting crossing distance of transmission wires and computer equipment
CN112598800A (en) Air quality mode forecast data acquisition method and device based on terrain
CN114442603A (en) Method, device, system and computer-readable storage device for inspection path planning
CN113963077B (en) Grid division method, grid division device, electronic device and storage medium
CN113010511A (en) Map hierarchical aggregation display method and device, electronic device and storage medium
CN105043377A (en) Method and device for recording running routes, and electronic equipment
CN109446286B (en) Visualization method and device for highway road network map
CN105282751B (en) A method and device for displaying wireless network planning results
CN117149923A (en) Aggregation display method, device, electronic equipment and medium of charging pile information
CN112272354B (en) Cloud mobile phone equipment distribution method and device
CN112105047A (en) Flow heat geography method, device, equipment and computer storage medium
CN113066178B (en) Map data processing method, device, equipment and storage medium
CN106446389A (en) Rapid data and image cutting method

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210326