CN112783994A - Equipment information display method and device, client and server - Google Patents

Equipment information display method and device, client and server Download PDF

Info

Publication number
CN112783994A
CN112783994A CN202011255563.7A CN202011255563A CN112783994A CN 112783994 A CN112783994 A CN 112783994A CN 202011255563 A CN202011255563 A CN 202011255563A CN 112783994 A CN112783994 A CN 112783994A
Authority
CN
China
Prior art keywords
screen
map
level
information
client
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
CN202011255563.7A
Other languages
Chinese (zh)
Other versions
CN112783994B (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.)
Shanghai Xinyi Intelligent Technology Co ltd
Original Assignee
Shanghai Xinyi Intelligent 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 Shanghai Xinyi Intelligent Technology Co ltd filed Critical Shanghai Xinyi Intelligent Technology Co ltd
Priority to CN202011255563.7A priority Critical patent/CN112783994B/en
Publication of CN112783994A publication Critical patent/CN112783994A/en
Application granted granted Critical
Publication of CN112783994B publication Critical patent/CN112783994B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/29Geographical information databases
    • 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/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24553Query execution of query operations
    • G06F16/24554Unary operations; Data partitioning operations
    • G06F16/24556Aggregation; Duplicate elimination
    • 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/24Querying
    • G06F16/248Presentation of query results

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Remote Sensing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Navigation (AREA)
  • Instructional Devices (AREA)

Abstract

A device information display method and device, a storage medium, a client and a server are provided, and the method comprises the following steps: acquiring a reference position, and loading a map according to the reference position; sending request information aiming at the perception equipment in the screen display geographical range to a server; receiving result information from the server and displaying the result information on the map; if the level of the map displayed on the screen does not exceed a first preset level, the result information comprises first aggregation operation result information, and the first aggregation operation result information is obtained by performing aggregation operation on the sensing equipment in the screen display geographic range by the server. Through the technical scheme of the invention, massive information of the sensing equipment can be efficiently displayed.

Description

Equipment information display method and device, client and server
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for displaying equipment information, a client and a server.
Background
In the construction practice of the smart city, sensing of the city is required through a large number of intelligent sensing devices, intelligent sensing of a series of activities including public safety, industrial and commercial activities, city environmental protection and the like in the city is required, and by integrating various key element information of city operation acquired by the sensing devices (such as various sensors), city management and management efficiency can be improved, and management of the smart city is realized. Therefore, in the management of smart cities, a large amount of sensing equipment is required to acquire various information of city operation.
When a smart city is managed using a large number of sensing devices, it is generally necessary to display information (e.g., device location information, device status information, device number information, etc.) of the sensing devices on a map displayed on a client (e.g., a mobile phone, a computer, etc.). Therefore, a device information display method capable of efficiently displaying a large amount of information of a sensing device is needed.
Disclosure of Invention
The invention aims to provide a device information display method which can efficiently display massive information of sensing devices.
In order to solve the above technical problem, an embodiment of the present invention provides an apparatus information display method, where the method includes: acquiring a reference position, and loading a map according to the reference position; sending request information aiming at the perception equipment in the screen display geographical range to a server; receiving result information from the server and displaying the result information on the map; if the level of the map displayed on the screen does not exceed a first preset level, the result information comprises first aggregation operation result information, and the first aggregation operation result information is obtained by performing aggregation operation on the sensing equipment in the screen display geographic range by the server.
Optionally, the request information includes a level of the map displayed on the screen, so that the server determines whether the level of the map displayed on the screen exceeds the first preset level.
Optionally, before sending the request information, the method further includes: and judging whether the level of the map displayed on the screen exceeds the first preset level, if so, the request information comprises aggregation parameters, and the aggregation parameters are used for indicating the server to perform aggregation operation.
Optionally, the result information only includes result information of the sensing devices within the geographical range of the screen display.
Optionally, if the level of the map displayed on the screen is greater than a first preset level, receiving result information from the server, and displaying the result information on the map includes: judging whether the level of the map displayed on the screen exceeds a second preset level or not; if the level of the map displayed on the screen does not exceed the second preset level, performing aggregation operation on the sensing equipment in the geographical range displayed on the screen to obtain second aggregation operation result information, and displaying the second aggregation operation result information on the map; wherein the second preset level is greater than the first preset level.
In order to solve the above technical problem, an embodiment of the present invention further provides an apparatus information display method, where the method includes: receiving request information for a perception device within a screen display geographical range from a client, wherein the request information is sent by the client after a map is loaded according to a reference position; judging whether the level of the map displayed on the client screen does not exceed a first preset level according to the request information; if so, performing aggregation operation on the sensing equipment in the screen display geographic range to obtain first aggregation operation result information, and sending the result information to the client so that the client displays the result information on the map, wherein the result information comprises the first aggregation operation result information.
Optionally, the requesting information includes a level of the map displayed on the client screen, and determining, according to the requesting information, whether the level of the map displayed on the client screen does not exceed a first preset level includes: and comparing the level of the map displayed on the client screen with the first preset level to judge whether the level of the map displayed on the client screen exceeds the first preset level.
Optionally, if the level of the map displayed on the current screen does not exceed a first preset level, the request information includes an aggregation parameter, and determining, according to the request information, whether the level of the map displayed on the client screen does not exceed the first preset level includes: and judging whether the request information contains the aggregation parameters, and if so, carrying out aggregation operation on the sensing equipment in the current screen display geographical range.
In order to solve the above technical problem, an embodiment of the present invention further provides an apparatus for displaying device information, where the apparatus includes: the map loading module is used for acquiring a reference position and loading a map according to the reference position; the request module is used for sending request information aiming at the sensing equipment in the screen display geographical range to the server; the display module is used for receiving result information from the server and displaying the result information on the map; if the level of the map displayed on the screen does not exceed a first preset level, the result information comprises first aggregation operation result information, and the first aggregation operation result information is obtained by performing aggregation operation on the sensing equipment in the screen display geographic range by the server.
In order to solve the above technical problem, an embodiment of the present invention further provides an apparatus for displaying device information, where the apparatus includes: the receiving module is used for receiving request information aiming at the sensing equipment in the screen display geographic range from a client, and the request information is sent by the client after a map is loaded according to a reference position; the judging module is used for judging whether the level of the map displayed on the client screen does not exceed a first preset level according to the request information; and the sending module is used for carrying out aggregation operation on the sensing equipment within the screen display geographic range to obtain first aggregation operation result information if the level of the map displayed on the screen of the client does not exceed a first preset level, and sending the result information to the client so that the client displays the result information on the map, wherein the result information comprises the first aggregation operation result information.
An embodiment of the present invention further provides a storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the above-mentioned device information display method.
The embodiment of the invention also provides a client, which comprises a memory and a processor, wherein the memory is stored with a computer program capable of running on the processor, and the processor executes the steps of the equipment information display method when running the computer program.
The embodiment of the invention also provides a server, which comprises a memory and a processor, wherein the memory is stored with a computer program capable of running on the processor, and the processor executes the steps of the equipment information display method when running the computer program.
Compared with the prior art, the technical scheme of the embodiment of the invention has the following beneficial effects: the embodiment of the invention provides a device information display method, which comprises the following steps: acquiring a reference position, and loading a map according to the reference position; sending request information aiming at the perception equipment in the screen display geographical range to a server; receiving result information from the server and displaying the result information on the map; if the level of the map displayed on the screen does not exceed a first preset level, the result information comprises first aggregation operation result information, and the first aggregation operation result information is obtained by performing aggregation operation on the sensing equipment in the screen display geographic range by the server. In the embodiment of the invention, after a map is loaded by a client, request information for sensing equipment in a screen display geographic range is sent to a server, if the level of the map displayed on the screen does not exceed a first preset level, namely the geographic range displayed on the screen is larger (for example, larger than or equal to the preset range), the server performs aggregation operation on the sensing equipment in the screen display geographic range to obtain first aggregation operation result information, and the result information received by the client from the server contains the first aggregation operation result information, so that the client can display the first aggregation operation result information on the map. By adopting the scheme, when the geographical range displayed by the screen is large, the sensing equipment displayed by the screen in the geographical range is often more, and the server performs aggregation operation, so that the client does not need to perform aggregation operation, and only the first aggregation operation result information sent by the server needs to be displayed, thereby improving the visualization efficiency of the information of the sensing equipment, and avoiding the problems of blockage and the like caused by consumption of a large amount of memory of the client.
Further, in the embodiment of the present invention, if the level of the map displayed on the screen is greater than the first preset level, the client further determines whether the level of the map displayed on the screen exceeds the second preset level, and if the level of the map displayed on the screen does not exceed the second preset level, the client performs aggregation operation on the sensing device within the geographic range of the screen display to obtain second aggregation operation result information and displays the second aggregation operation result information.
Drawings
Fig. 1 is a flowchart illustrating an apparatus information display method according to an embodiment of the present invention.
Fig. 2 is a schematic view of a scene of a device information display method according to an embodiment of the present invention.
Fig. 3 is a schematic view of another scenario of the device information display method according to the embodiment of the present invention.
Fig. 4 is a schematic diagram illustrating a first effect of the device information display method according to the embodiment of the present invention.
Fig. 5 is a schematic diagram illustrating a second effect of the device information display method according to the embodiment of the present invention.
Fig. 6 is a schematic diagram illustrating a third effect of the device information display method according to the embodiment of the present invention.
Fig. 7 is a flowchart illustrating another device information display method according to an embodiment of the present invention.
Fig. 8 is a schematic structural diagram of an apparatus information display device in an embodiment of the present invention.
Fig. 9 is a schematic structural diagram of another device information display apparatus in the embodiment of the present invention.
Detailed Description
As described in the background art, there is a need for a device information display method capable of efficiently displaying a large amount of information of a sensing device.
The inventor of the invention finds that in the existing scheme for displaying the information of the sensing equipment, the client directly performs aggregation operation on the whole sensing equipment and displays the information, when the number of the sensing equipment is small, the information can be normally displayed in the mode, but the number of the sensing equipment in the smart city construction practice is usually large, for example, the number of the sensing equipment can reach a million level or even more, under the condition, the aggregation operation of the client on the whole sensing equipment is influenced by factors such as client configuration and performance, a large amount of memory is consumed, so that the problems of blockage and the like are caused, and the visualization efficiency is low.
The embodiment of the invention provides an equipment information display method, which comprises the following steps: acquiring a reference position, and loading a map according to the reference position; sending request information aiming at the perception equipment in the screen display geographical range to a server; receiving result information from the server and displaying the result information on the map; if the level of the map displayed on the screen does not exceed a first preset level, the result information comprises first aggregation operation result information, and the first aggregation operation result information is obtained by performing aggregation operation on the sensing equipment in the screen display geographic range by the server. In the embodiment of the invention, after a map is loaded by a client, request information aiming at sensing equipment in a screen display geographic range is sent to a server, if the level of the map displayed on the screen does not exceed a first preset level, namely the geographic range displayed on the screen is greater than or equal to the preset range, the server carries out aggregation operation on the sensing equipment in the screen display geographic range to obtain first aggregation operation result information, and the result information received by the client from the server comprises the first aggregation operation result information, so that the client can display the first aggregation operation result information on the map. By adopting the scheme, when the geographical range displayed on the screen is large, the server can carry out aggregation operation on the sensing equipment in the geographical range displayed on the screen, and the client does not need to carry out aggregation operation and only needs to display the first aggregation operation result information sent by the server, so that the visualization efficiency of the sensing equipment information can be improved, and the problems of blockage and the like caused by consumption of a large amount of memory of the client are avoided.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
Referring to fig. 1, fig. 1 is a schematic flowchart of a device information display method according to an embodiment of the present invention. The device information display method may be executed by a client, which may be any suitable client, such as a mobile phone, a computer, an internet of things device, and the like, but is not limited thereto. The method is used for displaying information of the sensing equipment, specifically, the equipment information of the sensing equipment can be obtained by adopting a networked sensing equipment acquisition device, and the sensing equipment refers to equipment for sensing various information in urban operation, such as a monitor for monitoring public safety, an air quality monitor for monitoring urban air quality and the like, but is not limited thereto; the device information refers to information of the sensing device, such as geographical location information, device type information, device status information, device number information, and the like of the sensing device, but is not limited thereto. After the sensing equipment acquisition device obtains the equipment information, the equipment information can be uploaded to an internal database of the server or an external database which can be accessed by the server. When the client wants to display the information of the sensing device, the client can send request information to the server, the server can send result information aiming at the request information to the client in response to the request information, and the client can display the result information on a map loaded in advance after receiving the result information sent by the server. It should be noted that the device information in the embodiment of the present invention refers to information of the sensing device itself, and does not refer to information obtained by the sensing device from the outside, for example, air quality information obtained by an air quality monitor.
The device information display method shown in fig. 1 may specifically include the following steps:
step S101: acquiring a reference position, and loading a map according to the reference position;
step S102: sending request information aiming at the perception equipment in the screen display geographical range to a server;
step S103: receiving result information from the server and displaying the result information on the map;
if the level of the map displayed on the screen does not exceed a first preset level, the result information comprises first aggregation operation result information, and the first aggregation operation result information is obtained by performing aggregation operation on the sensing equipment in the screen display geographic range by the server.
It should be noted that the level of the map displayed on the screen is used to indicate the zoom degree of the map range displayed on the screen relative to the actual geographic range indicated by the map, and the higher the level is, the smaller the map is zoomed out (i.e. the larger the scale), and the lower the level is, the larger the map is zoomed out (i.e. the smaller the scale). For example, when the level of the map displayed on the screen is 1 level, the scale of the map displayed on the screen may be 1: 10000000, when the level of the map displayed on the screen is 19 levels, the scale of the map displayed on the screen can be 1: 20. it should be clear that, in the embodiment of the present invention, the smaller the level of the map displayed on the screen, the larger the geographical range of the screen display, the larger the number of the sensing devices, the larger the level of the map displayed on the screen, the smaller the geographical range of the screen display, and the smaller the number of the sensing devices.
It should be further noted that the aggregation operation in the embodiment of the present invention refers to aggregating or counting the sensing devices in the geographic range of the specific area to obtain the number of the sensing devices in the area.
In a specific implementation of step S101, the reference location may be a geographic location where the client is located in real time, or may be a geographic location obtained by the client from the outside. Specifically, the client may load a map according to the geographic location where the client is located in real time, that is, the map within the preset geographic location range is loaded according to the geographic location where the client is located in real time, for example, if the geographic location where the client is located is a hong qiao train station in shanghai city, the map within a range of ten kilometers from the hong qiao train station in shanghai city is loaded. The client may also load the map according to the geographic location obtained from the outside, for example, the geographic location where the client is located is shanghai city, but the geographic location obtained from the outside is beijing city, and the client loads the map of beijing city, but the map is not limited thereto.
In one non-limiting example, the client may load the map using the mapbox gl JS technique. Specifically, when the map is loaded according to the reference position, the Vector Tiles map in the pbf format of the area where the reference position is located is loaded as the map. As will be appreciated by those skilled in the art, the MapBoxGL JS technique is a JavaScript library that uses a Web-side graphics library interface (WebGL API) to render an interactive vector tile map and/or raster tile map. Because a web page side graphic library interface (WebGL API) has the characteristic of high performance when rendering graphic elements, the MapboxGL JS technology can render a large number of map elements, has smooth interaction and animation effects and can display a three-dimensional 2.5D map.
In the specific implementation of step S102, after the map is loaded, the client may obtain the screen display geographic range in real time. Specifically, the client can acquire longitude and latitude information of the screen display geographic range in real time, and determine the screen display geographic range according to the longitude and latitude information. The latitude and longitude information of the screen display geographical range can be a minimum longitude value xmin, a minimum latitude value ymin, a maximum longitude value xmax and a maximum latitude value ymax of the screen display geographical range.
Further, the screen-displayed geographical range may be a geographical range corresponding to a map area displayed on the screen, or may be a geographical range corresponding to the map area displayed on the screen and a preset area around the map area displayed on the screen.
Referring to fig. 2, fig. 2 is a scene schematic diagram of a device information display method according to an embodiment of the present invention. Fig. 2 shows a screen display geographical area 21 in an embodiment of the invention. The screen display geographical range 21 refers to a geographical range corresponding to the result information received by the client from the server, and may include the screen display geographical range 201 and other geographical ranges 202 around the screen display geographical range, where the screen display geographical range 201 is actually displayed on the client screen, and the other geographical ranges 202 around the screen display geographical range are not actually displayed on the screen, but are in a state of being displayable at any time, for example, a user may move a map by means of a touch instruction or the like, so that the other geographical ranges 202 that are not displayed before are displayed, and at this time, the displayed portion becomes the screen display geographical range 201. Therefore, the latitude and longitude information of the screen display geographical range can comprise a minimum longitude value xmin of the lower left corner, a minimum latitude value ymin of the lower left corner, a maximum longitude value xmax of the upper right corner and a maximum latitude value ymax of the upper right corner in the screen display geographical range 21.
With continued reference to fig. 1, the client may also obtain the level of the map displayed on the screen in real time. The level of the map displayed on the screen may be scale information of the map displayed on the screen, but is not limited thereto.
Further, the client may send request information for the perception devices within the geographical range of the screen display to the server, for example, the Ajax function may be called to send the request information. The request information may include latitude and longitude information of a screen displaying the geographical range.
Further, the request information may also include a level at which the map is displayed on the screen. After receiving the request information, the server may determine whether the level of the map displayed on the screen of the client is not greater than a first preset level according to the request information. Specifically, the server may compare the level of the map displayed on the screen in the request information with a first preset level to determine whether the level of the map displayed on the screen of the client exceeds the first preset level, that is, determine whether the server needs to perform aggregation operation on the sensing devices within the geographical range of the screen display.
In one non-limiting embodiment of the present invention, before sending the request information, the client further includes: and judging whether the level of the map displayed on the screen exceeds the first preset level, if so, the request information comprises aggregation parameters, and the aggregation parameters are used for indicating the server to perform aggregation operation. Specifically, the client may compare the level of the map displayed on the screen with a first preset level to determine whether the level of the map displayed on the client screen exceeds the first preset level. If the level of the map displayed on the screen does not exceed the first preset level, the request information sent by the client side can contain aggregation parameters, and the aggregation parameters are used for dividing the geographical range displayed on the screen when the server performs aggregation operation so as to obtain a plurality of aggregation areas. After receiving the request information, the server can determine whether the server needs to perform aggregation operation on the sensing devices within the screen display geographical range by judging whether the request information contains aggregation parameters.
It should be noted that the first preset level may be preset by the server, may be calculated by the server, may be determined by the client according to its configuration parameters, or may be obtained from the outside by the client.
In one non-limiting embodiment of the present invention, the first preset level m may be determined using the following formula:
Figure BDA0002773009060000091
wherein zoom is used for representing the display level of map initialization when a client loads a map, S is used for representing the area of a geographical range corresponding to the map when the map is loaded, N is used for representing the number of sensing devices in the geographical range corresponding to the map when the map is loaded,
Figure BDA0002773009060000092
indicating a rounding down. If S is expressed in square kilometers, the above equation can be further expressed as:
Figure BDA0002773009060000093
in the specific implementation of step S103, if the level of the map displayed on the client screen does not exceed the first preset level, it indicates that the current geographic range of the client screen is large, and the number of the sensing devices that need to be displayed is large, and at this time, the server may perform aggregation operation on the sensing devices within the geographic range of the screen display.
Specifically, after the server receives request information sent by the client, the server may determine whether the level of the map displayed on the current screen does not exceed a first preset level according to the request information. For example, the request information includes a level of the map displayed on the client screen, and the level of the map displayed on the client screen is compared with the first preset level to determine whether the level of the map displayed on the client screen exceeds the first preset level, or the server may determine whether the request information includes the aggregation parameter to determine whether the level of the map displayed on the client screen exceeds the first preset level.
Further, if the level of the map displayed on the screen of the client does not exceed a first preset level, the server performs aggregation operation on the sensing equipment within the screen display geographic range to obtain first aggregation operation result information.
Fig. 3 is a schematic view of another scenario of the device information display method according to the embodiment of the present invention. Fig. 3 shows that the server divides the geographical range of the screen display into a plurality of aggregation areas when performing the aggregation operation.
Referring to fig. 3, when the server performs aggregation operation, the screen display geographical range may be divided according to the aggregation parameter n to obtain a plurality of aggregation areas. The aggregation parameter n may be sent by the client to the server, for example, the request information may include the aggregation parameter n, or may be determined by the server. It is noted that the polymerization parameter n may be variable.
Specifically, the screen display geographical range may be divided by the following formula:
xmin_kx=xmin+kx*(xmax-xmin)/n;
ymin_ky=ymin+ky*(ymax-ymin)/n;
wherein xmin is the minimum longitude value in the geographical range displayed by the screen, ymin is the minimum latitude value in the geographical range displayed by the screen, xmax is the maximum longitude value in the geographical range displayed by the screen, ymax is the maximum latitude value in the geographical range displayed by the screen, and the value intervals of kx and ky are 0 to n-1. Thus, the geographical extent of each polymerization zone may be determined by { xmin _ kx, ymin _ ky, xmin _ kx +1, ymin _ ky +1}, where xmin _ kx is the smallest longitude value for the polymerization zone, ymin _ ky is the smallest latitude value for the polymerization zone, xmin _ kx +1 is the largest longitude value for the polymerization zone, and ymin _ ky +1 is the largest latitude value for the polymerization zone.
Further, the server may filter and determine the sensing devices in each aggregation area to obtain the number of sensing devices in each aggregation area, and the first aggregation operation result information may include the number value _ k of sensing devices in each aggregation area. Specifically, the device information acquired by the sensing device acquisition apparatus may include geographical location information of each sensing device, and the server may screen and determine the sensing devices in each aggregation area according to the geographical location information of each sensing device, for example, the server may sequentially determine whether the longitude of each device point is greater than or equal to xmin _ kx and less than xmin _ kx +1, whether the latitude is greater than or equal to ymin _ ky and less than ymin _ ky +1, and the value interval of kx and ky is 0 to n-1.
Further, the first aggregation operation result information may include longitude and latitude information of each aggregation area. Specifically, the server may calculate an average value of the longitude and latitude of each aggregation area, that is, for each aggregation area, the server calculates an average value lng _ k of the longitude value and an average value lat _ k of the latitude value of the aggregation area, where k ranges from 0 to n-1.
Thus, the server may send result information to the client, where the result information includes first aggregation operation result information obtained through aggregation operation, and the first aggregation operation result information may include longitude and latitude information of each aggregation area and the number of sensing devices in the aggregation area, and for example, a format of the first operation result information may be: [ { ng _0, lat _0, value _0}, … { ng _ k, lat _ k, value _ k }, … { ng _ n-1, lat _ n-1, value _ n-1} ].
Further, if the level displayed on the screen of the client side by the map is greater than the first preset level, the server can screen out the equipment information of each sensing equipment in the geographical range displayed on the screen according to the longitude and latitude information of the geographical range displayed on the screen, record the equipment information as equipment point location information, and send result information to the client side, wherein the result information comprises the equipment point location information.
Specifically, if the level of the map displayed on the screen is greater than a first preset level, the server screens the sensing devices in the geographical range of the screen display by judging whether the geographical position of each sensing device falls within the geographical range of the screen display, that is, judging whether the longitude value of the geographical position of each sensing device is greater than or equal to the minimum longitude value xmin in the geographical range of the screen display, is less than or equal to the maximum longitude value xmin in the geographical range of the screen display, and is greater than or equal to the minimum latitude value ymin the geographical range of the screen display, and is less than or equal to the maximum latitude value ymax in the geographical range of the screen display.
Further, the server sends the device location information meeting the condition to the server, where the device location information may include: longitude value lng of the sensing device, latitude value lat of the sensing device, device type deviceType of the sensing device, and state information isononline of the sensing device, but is not limited thereto. For example, the format of the device point location information may be: { ng1, lat1, deviceType1, isOnline1, … }, { ng2, lat2, deviceType2, isOnline2, … }, … … ].
In this way, after the client sends the request information to the server, the server sends result information to the client according to the request information, where the result information may include result information of the sensing devices in the screen display geographical range, or may include result information of the sensing devices in the whole geographical range of the map loaded by the client. In a non-limiting embodiment of the present invention, the result information only includes the result information of the sensing device within the screen display geographic range, and does not include the result information of the sensing device outside the screen display geographic range, so that the burden of rendering and displaying by the client is reduced, and the display efficiency is improved.
Further, the result information sent by the server to the client may include device location information within a screen display geographical range, or may include first aggregation operation result information within the screen display geographical range. In one non-limiting embodiment of the present invention, the screen displayed geographical range is a geographical range corresponding to a preset area around a map area displayed on the screen and the map area displayed on the screen. When the map area displayed on the screen changes, whether the geographical range corresponding to the map area displayed on the screen at the present time is within the geographical range displayed on the screen at the previous time can be judged, if the geographical range corresponding to the map area displayed on the screen at the present time is within the geographical range displayed on the screen at the previous time, the result information comprises the result information of the sensing device within the geographical range corresponding to the map area displayed on the screen at the present time, and the client can not send request information to the server any more, so that the client can be prevented from frequently requesting information from the server, and the display efficiency is improved.
With continued reference to fig. 1, the client receives the result information from the server and displays it on the map. If the result information includes a first aggregate operation result, the client may display the first aggregate operation result information on the map.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating a first effect of the method for displaying device information according to the embodiment of the present invention. Fig. 4 illustrates device information displayed by the client when the level of the map displayed on the client screen does not exceed a first preset level. It should be noted that the numbers marked in the circles in fig. 4 are used to indicate the number of sensing devices in each polymerization zone.
Specifically, the first aggregation operation result information includes longitude and latitude information of each aggregation area and the number of sensing devices, the client may render and display an aggregation icon at a corresponding position of a map displayed on a screen according to the longitude and latitude information of each aggregation area, and the number of sensing devices in the aggregation area may be displayed on the aggregation icon. Further, the client may also determine the size of the corresponding aggregation icon according to the number of sensing devices in the aggregation area.
Specifically, the first aggregation operation result information is converted into data in a GeoJson format. The GeoJson format supported by mapbox gl JS is: [ { ' type ', ' Properties ' { ' description ': value _ k ', ' icon ': clusterIcon ' }, ' geometry ' { ' type ': Point ', ' coordinates ': lng _ k, lat _ k } }.
Continuing to refer to fig. 1, if the result information includes device location information, that is, the level of the map displayed on the screen is greater than a first preset level, the receiving, by the client, the result information from the server, and displaying on the map includes: judging whether the level of the map displayed on the screen exceeds a second preset level or not; if the level of the map displayed on the screen does not exceed the second preset level, performing aggregation operation on the sensing equipment in the geographical range displayed on the screen to obtain second aggregation operation result information, and displaying the second aggregation operation result information on the map; wherein the second preset level is greater than the first preset level.
Specifically, if the level of the map displayed on the screen is greater than a first preset level, the client receives result information sent by the server, the result information includes equipment point location information, the client can compare the level of the map displayed on the screen with a second preset level, and if the level of the map displayed on the screen does not exceed the second preset level, the client performs aggregation operation on the sensing equipment within the geographical range of the screen display to obtain second aggregation operation result information. For specific contents of the process of the aggregation operation, reference may be made to the above description of the aggregation operation performed by the server, and details are not described herein again.
It should be noted that the second preset level may be preset by the client, may also be calculated by the client, and may also be obtained by the client from the outside, but is not limited thereto.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating a second effect of the method for displaying device information according to the embodiment of the present invention. Fig. 5 illustrates device information displayed by the client when the level of the map displayed on the client screen is greater than a first preset level and does not exceed a second preset level.
Specifically, the client may display the second aggregation result information on the map, and the specific content of the client displaying the second aggregation result information may refer to the above description related to the client displaying the first aggregation result information, which is not described herein again. It should be noted that the numbers marked in the circles in fig. 5 are used to indicate the number of sensing devices in each polymerization zone.
With continued reference to fig. 1, if the level of the map displayed on the screen is greater than the second preset level, the client may directly display the received device location information on the map.
Referring to fig. 6, fig. 6 is a schematic diagram illustrating a third effect of the method for displaying device information according to the embodiment of the present invention. Fig. 6 illustrates device information displayed by the client when the level of the client screen display is greater than a second preset level.
Specifically, the format of the device location information received by the client from the server is { ng, lat, deviceType, isonnline, … }, and the client may render and display a location icon at a corresponding position of a map displayed on a screen according to latitude and longitude information in the device location information, where the location icon may be used to indicate a device type, a device state, and the like of the sensing device. For example, the client may classify and display the perception devices within the geographical range of the screen display according to the device type information in the device location information. Namely, the type of the sensing equipment is determined according to the deviceType field in the equipment point location information, and the sensing equipment of the same type is rendered and displayed by the point location icons of the same type. The client can also determine the online state of the sensing equipment according to the isOnline field in the equipment point location information, and different online states render and display point location icons in different colors.
It should be noted that, when the client displays the result information, an icon is superimposed on the map loaded in advance, and the icon may be an aggregation icon or a point location icon. For example, the Mapbox GL JS technology can be adopted to render and display the icons, so that the icons have the display effect of a 2D map and have the effect of 2.5D stereoscopic display. Therefore, aiming at the existing display method of a single two-dimensional map, the embodiment of the invention can provide a 2D/2.5D integrated map-based equipment information display method, and has better experience on the visual effect of display.
Further, if the level of the map displayed on the screen changes, the client may retrieve the screen display geographical range and the level of the map displayed on the screen to repeat steps S102 and S103.
Therefore, by adopting the scheme of the embodiment of the invention, after the client loads the map, the client sends the request information aiming at the sensing equipment in the screen display geographic range to the server, if the level of the map displayed on the screen does not exceed the first preset level, namely the geographic range displayed on the screen is greater than or equal to the preset range, the server carries out aggregation operation on the sensing equipment in the screen display geographic range to obtain the first aggregation operation result information, and the client can display the first aggregation operation result information on the map. When the level of the map displayed on the screen is greater than the first preset level, the geographical range displayed on the screen is smaller, the number of sensing devices is less, and the client can perform aggregation operation and display automatically. By adopting the scheme, the display of the equipment information can be realized within 3 seconds, the memory occupation of the client when the equipment information is displayed can be kept at about 500M, and the problems that the client is easy to jam and crash due to the overhigh memory occupation when massive sensing equipment information is displayed are solved.
Referring to fig. 7, fig. 7 is a flowchart illustrating another method for displaying device information according to an embodiment of the present invention, where the method may be performed by a server.
The device information display method performed by the server may include the steps of:
step S701: receiving request information for a perception device within a screen display geographical range from a client, wherein the request information is sent by the client after a map is loaded according to a reference position;
step S702: judging whether the level of the map displayed on the client screen does not exceed a first preset level according to the request information;
step S703: if so, performing aggregation operation on the sensing equipment in the screen display geographic range to obtain first aggregation operation result information, and sending the result information to the client so that the client displays the result information on the map, wherein the result information comprises the first aggregation operation result information.
In a specific implementation, if the level of the map displayed on the current screen does not exceed a first preset level, the request information includes an aggregation parameter, and determining whether the level of the map displayed on the client screen does not exceed the first preset level according to the request information includes: and judging whether the request information contains the aggregation parameter so as to judge whether the level of the map displayed on the client screen exceeds the first preset level.
In one non-limiting embodiment of the present invention, the request information may include a level of the map displayed on the client screen, and the determining whether the level of the map displayed on the client screen does not exceed a first preset level according to the request information includes: and comparing the level of the map displayed on the client screen with the first preset level to judge whether the level of the map displayed on the client screen exceeds the first preset level.
Those skilled in the art will understand that the above steps S501 to S503 can be regarded as execution steps corresponding to the above steps S101 to S103 in the embodiment shown in fig. 1, and they are complementary in terms of specific implementation principle and logic. Therefore, for specific steps and more contents of the device information display method on the server side, reference may be made to the related description of the device information display method described in fig. 1 to 6, which is not repeated herein.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an apparatus information display device according to an embodiment of the present invention. The device information display apparatus in this embodiment may include: a map loading module 81, a request module 82, and a display module 83.
The map loading module 81 is configured to obtain a reference position and load a map according to the reference position; a request module 82, configured to send request information for a perception device within a screen display geographical range to a server; a display module 83, configured to receive result information from the server and display the result information on the map; if the level of the map displayed on the screen does not exceed a first preset level, the result information comprises first aggregation operation result information, and the first aggregation operation result information is obtained by performing aggregation operation on the sensing equipment in the screen display geographic range by the server.
For more details of the operation principle and the operation mode of the device information display apparatus, reference may be made to the description in fig. 1 to fig. 6, which is not repeated herein.
Referring to fig. 9, fig. 9 is a schematic structural diagram of another device information display apparatus according to an embodiment of the present invention. The device information display apparatus may include: a receiving module 91, a judging module 92 and a sending module 93.
The receiving module 91 is configured to receive request information for a sensing device within a screen display geographic range from a client, where the request information is sent by the client after a map is loaded according to a reference position; a judging module 92, configured to judge whether a level of the map displayed on the client screen does not exceed a first preset level according to the request information; a sending module 93, configured to perform aggregation operation on the sensing devices within the geographic range of the screen display if the level of the map displayed on the screen of the client is not greater than a first preset level, to obtain first aggregation operation result information, and send result information to the client, so that the client displays the result information on the map, where the result information includes the first aggregation operation result information.
For more details of the operation principle and the operation mode of the device information display apparatus, reference may be made to the related description in fig. 7, which is not repeated herein.
An embodiment of the present invention further provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, performs the steps of the above-mentioned device information display method. The storage medium may include ROM, RAM, magnetic or optical disks, etc. The storage medium may further include a non-volatile memory (non-volatile) or a non-transitory memory (non-transient), and the like.
The embodiment of the invention also provides a client, which comprises a memory and a processor, wherein the memory is stored with a computer program capable of running on the processor, and the processor executes the steps of the equipment information display method when running the computer program. The client includes but is not limited to a mobile phone, a computer, a tablet computer and other terminal devices.
The embodiment of the invention also provides a server, which comprises a memory and a processor, wherein the memory is stored with a computer program capable of running on the processor, and the processor executes the steps of the equipment information display method when running the computer program.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (13)

1. A method for displaying device information, the method comprising:
acquiring a reference position, and loading a map according to the reference position;
sending request information aiming at the perception equipment in the screen display geographical range to a server;
receiving result information from the server and displaying the result information on the map;
if the level of the map displayed on the screen does not exceed a first preset level, the result information comprises first aggregation operation result information, and the first aggregation operation result information is obtained by performing aggregation operation on the sensing equipment in the screen display geographic range by the server.
2. The apparatus information display method according to claim 1, wherein the request information includes a level at which the map is displayed on a screen, so that the server determines whether the level at which the map is displayed on the screen exceeds the first preset level.
3. The device information display method according to claim 1, further comprising, before transmitting the request information:
and judging whether the level of the map displayed on the screen exceeds the first preset level, if so, the request information comprises aggregation parameters, and the aggregation parameters are used for indicating the server to perform aggregation operation.
4. The device information display method according to claim 1, wherein the result information contains only result information of perception devices within the screen display geographical range.
5. The device information display method of claim 1, wherein if the level of the map displayed on the screen is greater than a first preset level, receiving result information from the server and displaying on the map comprises:
judging whether the level of the map displayed on the screen exceeds a second preset level or not;
if the level of the map displayed on the screen does not exceed the second preset level, performing aggregation operation on the sensing equipment in the geographical range displayed on the screen to obtain second aggregation operation result information, and displaying the second aggregation operation result information on the map;
wherein the second preset level is greater than the first preset level.
6. A method for displaying device information, the method comprising:
receiving request information for a perception device within a screen display geographical range from a client, wherein the request information is sent by the client after a map is loaded according to a reference position;
judging whether the level of the map displayed on the client screen does not exceed a first preset level according to the request information;
if so, performing aggregation operation on the sensing equipment in the screen display geographic range to obtain first aggregation operation result information, and sending the result information to the client so that the client displays the result information on the map, wherein the result information comprises the first aggregation operation result information.
7. The device information display method according to claim 6, wherein the request information includes a level at which the map is displayed on the client screen, and the determining whether the level at which the map is displayed on the client screen does not exceed a first preset level according to the request information includes:
and comparing the level of the map displayed on the client screen with the first preset level to judge whether the level of the map displayed on the client screen exceeds the first preset level.
8. The device information display method according to claim 6, wherein if the level of the map displayed on the current screen does not exceed a first preset level, the request information contains an aggregation parameter, and the determining whether the level of the map displayed on the client screen does not exceed the first preset level according to the request information includes:
and judging whether the request information contains the aggregation parameter so as to judge whether the level of the map displayed on the client screen exceeds the first preset level.
9. An apparatus for displaying device information, the apparatus comprising:
the map loading module is used for acquiring a reference position and loading a map according to the reference position;
the request module is used for sending request information aiming at the sensing equipment in the screen display geographical range to the server;
the display module is used for receiving result information from the server and displaying the result information on the map;
if the level of the map displayed on the screen does not exceed a first preset level, the result information comprises first aggregation operation result information, and the first aggregation operation result information is obtained by performing aggregation operation on the sensing equipment in the screen display geographic range by the server.
10. An apparatus for displaying device information, the apparatus comprising:
the receiving module is used for receiving request information aiming at the sensing equipment in the screen display geographic range from a client, and the request information is sent by the client after a map is loaded according to a reference position;
the judging module is used for judging whether the level of the map displayed on the client screen does not exceed a first preset level according to the request information;
and the sending module is used for carrying out aggregation operation on the sensing equipment within the screen display geographic range to obtain first aggregation operation result information if the level of the map displayed on the screen of the client does not exceed a first preset level, and sending the result information to the client so that the client displays the result information on the map, wherein the result information comprises the first aggregation operation result information.
11. A storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, performs the steps of the device information display method of any one of claims 1 to 5 or claims 6 to 8.
12. A client comprising a memory and a processor, the memory having stored thereon a computer program operable on the processor, wherein the processor executes the computer program to perform the steps of the device information display method of any one of claims 1 to 5.
13. A server comprising a memory and a processor, the memory having stored thereon a computer program operable on the processor, wherein the processor executes the computer program to perform the steps of the device information display method of any one of claims 6 to 8.
CN202011255563.7A 2020-11-11 2020-11-11 Equipment information display method and device, client and server Active CN112783994B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011255563.7A CN112783994B (en) 2020-11-11 2020-11-11 Equipment information display method and device, client and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011255563.7A CN112783994B (en) 2020-11-11 2020-11-11 Equipment information display method and device, client and server

Publications (2)

Publication Number Publication Date
CN112783994A true CN112783994A (en) 2021-05-11
CN112783994B CN112783994B (en) 2023-08-18

Family

ID=75750517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011255563.7A Active CN112783994B (en) 2020-11-11 2020-11-11 Equipment information display method and device, client and server

Country Status (1)

Country Link
CN (1) CN112783994B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493331A (en) * 2008-01-23 2009-07-29 厦门雅迅网络股份有限公司 Map vector data displaying method in network navigation of mobile phone
CN102209113A (en) * 2011-05-24 2011-10-05 深圳市凯立德科技股份有限公司 Dynamic map downloading method and server and position service terminal
CN105335393A (en) * 2014-07-11 2016-02-17 阿里巴巴集团控股有限公司 Map display method and device
CN108235809A (en) * 2017-12-25 2018-06-29 深圳前海达闼云端智能科技有限公司 End cloud combination positioning method and device, electronic equipment and computer program product
CN110019622A (en) * 2017-12-14 2019-07-16 浙江宇视科技有限公司 A kind of real time mass map point polymerization and device
CN110647608A (en) * 2019-08-30 2020-01-03 深圳震有科技股份有限公司 Map-based mass data aggregation display method, system, device and medium
CN111026987A (en) * 2018-10-10 2020-04-17 千寻位置网络有限公司 Multi-layer polymerization method and system for displaying mass vehicle position distribution information
CN111444295A (en) * 2020-03-09 2020-07-24 北京明略软件系统有限公司 Method and device for managing sensing equipment
CN111753041A (en) * 2020-06-30 2020-10-09 重庆紫光华山智安科技有限公司 Data aggregation rendering method, device and system, electronic equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493331A (en) * 2008-01-23 2009-07-29 厦门雅迅网络股份有限公司 Map vector data displaying method in network navigation of mobile phone
CN102209113A (en) * 2011-05-24 2011-10-05 深圳市凯立德科技股份有限公司 Dynamic map downloading method and server and position service terminal
CN105335393A (en) * 2014-07-11 2016-02-17 阿里巴巴集团控股有限公司 Map display method and device
CN110019622A (en) * 2017-12-14 2019-07-16 浙江宇视科技有限公司 A kind of real time mass map point polymerization and device
CN108235809A (en) * 2017-12-25 2018-06-29 深圳前海达闼云端智能科技有限公司 End cloud combination positioning method and device, electronic equipment and computer program product
CN111026987A (en) * 2018-10-10 2020-04-17 千寻位置网络有限公司 Multi-layer polymerization method and system for displaying mass vehicle position distribution information
CN110647608A (en) * 2019-08-30 2020-01-03 深圳震有科技股份有限公司 Map-based mass data aggregation display method, system, device and medium
CN111444295A (en) * 2020-03-09 2020-07-24 北京明略软件系统有限公司 Method and device for managing sensing equipment
CN111753041A (en) * 2020-06-30 2020-10-09 重庆紫光华山智安科技有限公司 Data aggregation rendering method, device and system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112783994B (en) 2023-08-18

Similar Documents

Publication Publication Date Title
US10096142B2 (en) Method and apparatus for contextually varying imagery on a map
US8803901B1 (en) Map rendering using interpolation of style parameters across zoom levels
US9417777B2 (en) Enabling quick display transitions between indoor and outdoor map data
US8610717B2 (en) Efficient pre-computing of simplified vector data for rendering at multiple zoom levels
US8928657B2 (en) Progressive disclosure of indoor maps
CN106502613B (en) A kind of method and device to Load Image
US9684947B2 (en) Indicating availability of indoor content on a digital map
US20120050285A1 (en) 3d building generalization for digital map applications
CN107977407B (en) Tile map storage method and device, storage medium and computer equipment
CN110832278B (en) Rendering map data using descriptions of grid differences
EP2972103A1 (en) System and method for indicating user location and facing direction on a digital map
CN103020250B (en) The map-indication method of a kind of Distribution GIS and device
US8730264B1 (en) Determining when image elements intersect
EP3102911A1 (en) System and method for dynamically optimizing map destination routing performance
CN104052960A (en) Camera visual area display method based on electronic map and system thereof
CN110570491B (en) Thermodynamic diagram generation method and device
CN104461436A (en) Displaying method of multiple terminals based on different resolution ratios
US20160335743A1 (en) System and method for dynamically optimizing map tile quality and detail
WO2014156005A1 (en) Three-dimensional map display system
CN112783994B (en) Equipment information display method and device, client and server
US9275481B2 (en) Viewport-based contrast adjustment for map features
KR20160143936A (en) Method for increasing 3D rendering performance and system thereof
CN112330769B (en) Method and device for generating dotted line texture and electronic equipment
WO2016210206A1 (en) Reducing power consumption of mobile devices through dynamic resolution scaling
CN117539971B (en) Massive geographic coordinate aggregation method and related equipment

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
CB02 Change of applicant information

Address after: 200331 room e176, 1f, 406 Gulang Road, Putuo District, Shanghai

Applicant after: Shanghai Xinyi Intelligent Technology Co.,Ltd.

Address before: 200434 10th floor, 1388 Shuidian Road, Hongkou District, Shanghai

Applicant before: Shanghai Xinyi Intelligent Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant