CN112347181A - Statistical data presentation method based on geographic information - Google Patents

Statistical data presentation method based on geographic information Download PDF

Info

Publication number
CN112347181A
CN112347181A CN201910725515.0A CN201910725515A CN112347181A CN 112347181 A CN112347181 A CN 112347181A CN 201910725515 A CN201910725515 A CN 201910725515A CN 112347181 A CN112347181 A CN 112347181A
Authority
CN
China
Prior art keywords
histogram
height
method based
statistical data
screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910725515.0A
Other languages
Chinese (zh)
Other versions
CN112347181B (en
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.)
CSSC Systems Engineering Research Institute
Original Assignee
CSSC Systems Engineering Research Institute
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 CSSC Systems Engineering Research Institute filed Critical CSSC Systems Engineering Research Institute
Priority to CN201910725515.0A priority Critical patent/CN112347181B/en
Publication of CN112347181A publication Critical patent/CN112347181A/en
Application granted granted Critical
Publication of CN112347181B publication Critical patent/CN112347181B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Remote Sensing (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Processing Or Creating Images (AREA)
  • Instructional Devices (AREA)

Abstract

The invention discloses a statistical data presentation method based on geographic information, which comprises the following steps of (1) calculating the maximum value of data; (2) calculating the height of the bar graph; (3) calculating screen coordinates; (4) and drawing a histogram. The invention has the beneficial effects that: according to the invention, various statistical data are directly presented on the electronic map through the bar graph, so that interface skip is reduced in user experience, and visual switching of a user is reduced; meanwhile, the method can ensure that the height of the histogram is within an acceptable visual deviation range and a better visual effect is presented by a histogram height correction method when the difference of the statistical data ranges is large. By combining the histogram with a geographic information system, the visual statistical presentation based on the geographic position assists the user to master the statistical information of the data to be police, thereby achieving the visual presentation effects of flattening, visualization and integration and providing the user experience of one-screen integration, one-screen operation and one-screen overview.

Description

Statistical data presentation method based on geographic information
Technical Field
The invention belongs to the technical field of police command and control information, and particularly relates to a statistical data presentation method based on geographic information, which is applied to a police emergency command and dispatching platform system.
Background
In the current police command control information system, data is generally subjected to statistical presentation through a histogram and a pie chart, and the police command control information system has the advantages that the proportional difference between different data can be visually presented, and the disadvantage that the independent presentation of the statistical chart cannot be effectively combined with a geographic information system.
In the police commanding and controlling information system, data is generally classified by taking a district as a dividing unit, for example, a provincial hall performs data statistical presentation by taking a city as a unit, a city level command center performs statistical presentation by taking a district and a county as a unit, and the police commanding information system is more suitable for displaying a bar graph and an electronic map in a combined manner, namely, the bar graph representing the data quantity is displayed on a designated coordinate point on the electronic map. The linear scale statistics presenting method has the disadvantage that when the statistical data range is different greatly, the height difference of the bar graph is large, and the effect is poor when the bar graph is displayed on an electronic map. Therefore, it is necessary to provide a method for displaying histogram in combination with electronic map, and when the data range difference is large, the height difference of histogram can be ensured within the acceptable visual deviation range by the correction method.
Disclosure of Invention
The invention aims to provide a statistical data presentation method based on geographic information, which can solve the problem that the current statistical chart cannot be presented in combination with a geographic information system, and improve the information utilization rate and the information integration degree.
The technical scheme of the invention is as follows: a statistical data presentation method based on geographic information comprises the following steps,
(1) calculating the maximum value of the data;
(2) calculating the height of the bar graph;
(3) calculating screen coordinates;
(4) and drawing a histogram.
The step (1) comprises traversing the data sequence X to be counted1,X2,…,XnRecording the maximum value in the data sequence, denoted Xmax
The step (2) includes calculating the height of the bar graph corresponding to each value X in the data sequence to be counted, wherein the height H of the bar graph is calculated by the following formula:
Figure BDA0002158803490000021
in the step (2), R is the maximum height of the defined bar graph
Figure BDA0002158803490000022
That is, the height difference of the histogram with the largest value does not exceed 2R, and H epsilon (0, 2R) can be known from the formula]And the height of the bar graph is limited within a settable acceptable range through the conversion of the bar graph height calculation formula.
And the step (3) comprises calculating screen coordinates (x, y) corresponding to the location point of each region according to the location point coordinates (phi, lambda) of each region, wherein phi is longitude and lambda is latitude.
The step (3) comprises displaying the coordinates (x) of the upper left corner of the position on the screen according to the electronic map1,y1) And the coordinates of the lower right corner (x)2,y2) And latitude and longitude display range of the electronic map, i.e. the geographic coordinate (phi) corresponding to the upper left corner thereof11) Geographic coordinates (phi) corresponding to the lower right corner22) Calculating the screen coordinates corresponding to the location points of the designated area according to the following formula:
Figure BDA0002158803490000023
Figure BDA0002158803490000024
the step (3) comprises the following steps
Figure BDA0002158803490000031
And is
Figure BDA0002158803490000032
When it is, theThe region positioning point is not in a visible range, and the corresponding histogram does not need to be calculated and displayed.
And the step (4) comprises that for each numerical value in the data sequence, drawing a histogram on the screen according to the calculated height of the corresponding histogram and the position of the histogram displayed on the screen.
The step (4) includes displaying the bar graph corresponding to the value between the point (x, y) and the point (x, y-H) on the screen.
And the step (4) comprises recalculating and drawing the histogram when the display range of the electronic map is changed.
The invention has the beneficial effects that: according to the invention, various statistical data are directly presented on the electronic map through the bar graph, so that interface skip is reduced in user experience, and visual switching of a user is reduced; meanwhile, the method can ensure that the height of the histogram is within an acceptable visual deviation range and a better visual effect is presented by a histogram height correction method when the difference of the statistical data ranges is large. By combining the histogram with a geographic information system, the visual statistical presentation based on the geographic position assists the user to master the statistical information of the data to be police, thereby achieving the visual presentation effects of flattening, visualization and integration and providing the user experience of one-screen integration, one-screen operation and one-screen overview.
Detailed Description
The present invention will be described in further detail with reference to specific examples.
A statistical data presentation method based on geographic information controls the height difference of a histogram within a specified range through mathematical transformation, then calculates the physical coordinates of a positioning point on a screen by combining with a region positioning point, and then draws the histogram on the screen, and the specific process is as follows:
(1) calculating the maximum value of the data, and traversing the data sequence X to be counted1,X2,…,XnRecording the maximum value in the data sequence, denoted Xmax
(2) Calculating the height of the bar graph, and for each numerical value X in the data sequence to be counted, calculating the height of the bar graph corresponding to the numerical value, wherein the height H of the bar graph is calculated by the following formula:
Figure BDA0002158803490000041
wherein R is the defined maximum bar graph height
Figure BDA0002158803490000042
That is, the height difference of the histogram with the largest value does not exceed 2R, and H epsilon (0, 2R) can be known from the formula]And the height of the bar graph is limited within a settable acceptable range through the conversion of the bar graph height calculation formula.
(3) And calculating screen coordinates, and calculating the screen coordinates (x, y) corresponding to the positioning points of the areas for the positioning point coordinates (phi, lambda) of each area, wherein phi is longitude and lambda is latitude. Displaying the coordinates (x) of the upper left corner of the position on the screen according to the electronic map1,y1) And the coordinates of the lower right corner (x)2,y2) And latitude and longitude display range of the electronic map, i.e. the geographic coordinate (phi) corresponding to the upper left corner thereof11) Geographic coordinates (phi) corresponding to the lower right corner22) Calculating the screen coordinates corresponding to the location points of the designated area according to the following formula:
Figure BDA0002158803490000043
Figure BDA0002158803490000044
wherein when
Figure BDA0002158803490000045
And is
Figure BDA0002158803490000046
And in time, the positioning point of the area is not in the visible range, and the corresponding histogram does not need to be calculated and displayed.
(4) And drawing a histogram, drawing the histogram on the screen according to the calculated height of the corresponding histogram and the position of the histogram displayed on the screen for each numerical value in the data sequence, wherein the display range of the histogram corresponding to the numerical value on the screen is between the point (x, y) and the point (x, y-H), and recalculating and drawing the histogram when the display range of the electronic map is changed.
The invention can achieve the following effects: the method of combining the bar-shaped statistical chart with the geographic information system for displaying is adopted, so that the statistical information searching efficiency is improved, the interface skip is reduced, and the 'one-screen full view' display of the police data statistics is realized; the height correction calculation method of the bar chart is adopted, the condition of great height difference when the numerical range difference is large is avoided, the height difference of the bar chart is reasonably limited in a settable range, and the visual experience effect of a user is improved.

Claims (10)

1. A statistical data presentation method based on geographic information is characterized in that: which comprises the following steps of,
(1) calculating the maximum value of the data;
(2) calculating the height of the bar graph;
(3) calculating screen coordinates;
(4) and drawing a histogram.
2. A statistical data presentation method based on geographical information according to claim 1, characterized in that: the step (1) comprises traversing the data sequence X to be counted1,X2,…,XnRecording the maximum value in the data sequence, denoted Xmax
3. A statistical data presentation method based on geographical information according to claim 1, characterized in that: the step (2) includes calculating the height of the bar graph corresponding to each value X in the data sequence to be counted, wherein the height H of the bar graph is calculated by the following formula:
Figure FDA0002158803480000011
4. a statistical data presentation method based on geographical information according to claim 1, characterized in that: in the step (2), R is the maximum height of the defined bar graph
Figure FDA0002158803480000012
That is, the height difference of the histogram with the largest value does not exceed 2R, and H epsilon (0, 2R) can be known from the formula]And the height of the bar graph is limited within a settable acceptable range through the conversion of the bar graph height calculation formula.
5. A statistical data presentation method based on geographical information according to claim 1, characterized in that: and the step (3) comprises calculating screen coordinates (x, y) corresponding to the location point of each region according to the location point coordinates (phi, lambda) of each region, wherein phi is longitude and lambda is latitude.
6. The statistical data presentation method based on geographic information according to claim 5, characterized in that: the step (3) comprises displaying the coordinates (x) of the upper left corner of the position on the screen according to the electronic map1,y1) And the coordinates of the lower right corner (x)2,y2) And latitude and longitude display range of the electronic map, i.e. the geographic coordinate (phi) corresponding to the upper left corner thereof11) Geographic coordinates (phi) corresponding to the lower right corner22) Calculating the screen coordinates corresponding to the location points of the designated area according to the following formula:
Figure FDA0002158803480000021
Figure FDA0002158803480000022
7. a process as claimed in claim 1A statistical data presentation method based on geographic information is characterized in that: the step (3) comprises the following steps
Figure FDA0002158803480000023
And is
Figure FDA0002158803480000024
And in time, the positioning point of the area is not in the visible range, and the corresponding histogram does not need to be calculated and displayed.
8. A statistical data presentation method based on geographical information according to claim 1, characterized in that: and the step (4) comprises that for each numerical value in the data sequence, drawing a histogram on the screen according to the calculated height of the corresponding histogram and the position of the histogram displayed on the screen.
9. A statistical data presentation method based on geographical information according to claim 1, characterized in that: the step (4) includes displaying the bar graph corresponding to the value between the point (x, y) and the point (x, y-H) on the screen.
10. The statistical data presentation method based on geographic information according to claim 8, wherein: and the step (4) comprises recalculating and drawing the histogram when the display range of the electronic map is changed.
CN201910725515.0A 2019-08-07 2019-08-07 Statistical data presentation method based on geographic information Active CN112347181B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910725515.0A CN112347181B (en) 2019-08-07 2019-08-07 Statistical data presentation method based on geographic information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910725515.0A CN112347181B (en) 2019-08-07 2019-08-07 Statistical data presentation method based on geographic information

Publications (2)

Publication Number Publication Date
CN112347181A true CN112347181A (en) 2021-02-09
CN112347181B CN112347181B (en) 2023-08-29

Family

ID=74366643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910725515.0A Active CN112347181B (en) 2019-08-07 2019-08-07 Statistical data presentation method based on geographic information

Country Status (1)

Country Link
CN (1) CN112347181B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491722A (en) * 2018-11-05 2019-03-19 四川长虹电器股份有限公司 Histogram chart plug-in system and its implementation based on wechat small routine
CN110070616A (en) * 2019-04-23 2019-07-30 北京睿呈时代信息科技有限公司 Memory, statistical data rendering method, device and equipment based on GIS platform

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491722A (en) * 2018-11-05 2019-03-19 四川长虹电器股份有限公司 Histogram chart plug-in system and its implementation based on wechat small routine
CN110070616A (en) * 2019-04-23 2019-07-30 北京睿呈时代信息科技有限公司 Memory, statistical data rendering method, device and equipment based on GIS platform

Also Published As

Publication number Publication date
CN112347181B (en) 2023-08-29

Similar Documents

Publication Publication Date Title
CN107423445A (en) A kind of map data processing method, device and storage medium
CN104266642B (en) Displaying and navigating method for visual dormitory beds based on mobile indoor map of campus
CN103226453A (en) Method for mapping display and operation of mobile phone screen to computer terminal
JPH04174890A (en) Position recognition system and position coordinates converting device
CN102420969A (en) Car-reversing auxiliary system and method
CN101852619A (en) Navigation display method and device
US20130169664A1 (en) Method of displaying points of interest
CN102750734B (en) The method and system that a kind of virtual three-dimensional earth system is shown
CN102420970A (en) Car-reversing auxiliary system and method
CN104318508A (en) Data visualization method and system based on planar shp map layer
CN103714213B (en) Parallel drawing method for complicated geographic information
CN106484845B (en) Information point area determination method and device based on electronic map
CN113505185A (en) Three-dimensional scene rendering and displaying method for urban information model
CN115937450A (en) Method, system, intelligent terminal and storage medium for building layered household division
CN112347181A (en) Statistical data presentation method based on geographic information
CN106056465A (en) Alarm range display method based on power grid flow diagram
CN109857826A (en) A kind of video camera visible range labeling system and its mask method
CN102420971A (en) Car-reversing auxiliary system and method
CN108830794A (en) Across the map sheet seamless tiled display method of the PDF map of gauss projection
CN102073468B (en) Method for realizing image edge blending based on window system
JP2000208280A (en) Lighting facility designing device
CN116385565A (en) Image processing method and device, chip, electronic equipment and medium
Yarmolenko et al. Modern geoinformation and communication technologies of economic analysis in ms office 365
CN106485767B (en) Method and device for drawing symbols
CN116339706B (en) Method and system for realizing linkage of visual components based on data visual scene

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
GR01 Patent grant
GR01 Patent grant