Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. Embodiments of the present disclosure and features of embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
Furthermore, it is noted that references to "one" or "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Referring first to fig. 1, fig. 1 is a schematic diagram of an application scenario of a method for displaying environmental information based on a drawing according to some embodiments of the present disclosure. In the application scenario of fig. 1, a user first performs a selection operation on environmental image information and/or index statistical information in a selection interface; then the server extracts the environment image information and/or index statistical information corresponding to the selection operation from the data server; finally, the server transmits the extracted image information and index statistical information to the display terminal. It should be noted that the map in fig. 1 is merely exemplary, and those skilled in the art may replace the map according to the actual situation.
The server may be hardware or software. When the server is hardware, the server may be implemented as a distributed server cluster formed by a plurality of servers, or may be implemented as a single server. When the server is software, it may be implemented as a plurality of software or software modules, for example, for providing distributed services, or as a single software or software module. The present invention is not particularly limited herein.
Referring next to fig. 2, fig. 2 is a flow 200 of some embodiments of a method of displaying environmental information based on a graph according to the present disclosure. The method for displaying environment information based on the graph comprises the following steps:
step 201, displaying a map of the target area and a selection interface of environment information of the target area.
In some embodiments, the subject of execution of the method of displaying environmental information based on the graph may be a server. The server can display the selection interface of the environment information to the user through the display terminal. The target area may be any area set manually or determined by a server. Further, the above-described environmental information includes environmental image information and index statistical information. The environmental image information may be information such as a type of plant, a range of plant land, a monitoring point, and a groundwater contour line displayed on the map of the target area. For example, the environmental image information may be a map of the water works displayed to the target area by a legend, a character identifier, or the like. In addition, the geographical position and the occupied area of the water plant can be displayed in a color filling mode. The index statistical information may be specific data information of a certain index obtained by inputting a screening keyword by a user, and the data information may be a data table, a graph, a line graph, a bar graph, and the like. The screening keywords may be a certain time period information, one or more monitoring points information, one or more monitoring indexes information, etc.
Step 202, detecting a selection operation of a user on the selection interface.
In some embodiments, after the user performs the selection operation on the selection interface, the server may receive the selection operation from the display terminal utilized by the user through a wired connection or a wireless connection. It should be noted that the wireless connection may include, but is not limited to, 3G/4G connection, wiFi connection, bluetooth connection, wiMAX connection, zigbee connection, UWB (ultra wideband) connection, and other now known or later developed wireless connection.
In some optional implementations of some embodiments, the selection interface may include at least one of: the system comprises a layer control interface, an environment element selection interface, a time selection interface and a monitoring point selection interface. The environment element selection interface can enable a user to select different environment element information. The environmental element information may represent environmental elements such as atmospheric elements, surface waters elements, groundwater elements, and soil elements. The time selection interface may enable the user to select different time intervals. The monitoring point selection interface may enable a user to select different monitoring points. Specifically, the layer control interface may further include an option of at least one of: the system comprises an industrial planning area layer option, a first industrial map layer option, a second industrial map layer option, three industrial map layer options, a water plant layer option, a sewage treatment plant layer option and a garbage disposal station layer option. Therefore, the user can perform the selection operation in the selection interface according to the self requirement.
And 203, extracting corresponding environmental image information and/or index statistical information according to the detected selection operation.
In some embodiments, the server may extract the environmental image information and/or the index statistics corresponding to the selection operation result in the database server. The data server stores a plurality of pieces of map information of the target area and monitoring data acquired by a plurality of monitoring devices. And the server searches the related data meeting the user request in the data server with the help of the search engine according to the selection operation of the user.
In some alternative implementations of some embodiments, the server extracts the corresponding metric statistics as an example. The server may perform the following operations in the data server: firstly, after the user performs selection operation on the environment element selection interface, the time selection interface and the monitoring point selection interface, the server acquires environment element information, time information and monitoring point information. Then, the environmental element information input by the user is used as a first extraction keyword, the first extraction keyword is matched with a plurality of data in the database server, and a first data set is generated according to the matching result. And using the time information input by the user as a second extraction keyword, matching the second extraction keyword with a plurality of data in the database server, and generating a second data set according to a matching result. And then, taking the monitoring point information selected by the user as a third extraction keyword, matching the matching result of the third extraction keyword with a plurality of data in the first and second data sets, and generating index statistical information according to the matching result. And finally extracting the index statistical information.
Further, in order to improve the accuracy of the data in the index statistical information, the method may further include, after extracting the index statistical information:
And the first step, each data in the plurality of data in the matching result is provided with a sequence number set by acquiring a sequence. For example, in response to a user selecting a groundwater level in the monitoring index information, the executing body may sort a plurality of groundwater levels within a time period corresponding to the time information characterization input by the user according to the collected sequence. For example, 10 data are collected and sequentially ordered from 1to 10. A sequence number set is obtained.
And a second step of generating a corresponding relation curve between the sequence number set and the plurality of data. Specifically, a coordinate system may be established with ten serial numbers in the serial number set as the abscissa and with the 10 data as the ordinate, and a serial number-data correspondence curve may be generated.
And thirdly, carrying out fitting treatment on the corresponding relation curve to obtain a fitting curve. The sum of squares of the differences between the values of the plurality of data in the correspondence curve and the values of points corresponding to the plurality of data in the fitted curve is smallest. For example, the number of the 10 data in the corresponding relation curve and the number corresponding to the number are the smallest in the sum of squares of the differences of the numbers of the points corresponding to the number in the fitting curve, and the fitting effect is the best.
And step four, determining the difference value between the numerical value of each data in the plurality of data in the corresponding relation curve and the numerical value of the point corresponding to the data in the fitting curve to obtain a difference value set. Specifically, a difference between the numerical value of each of the 10 data in the correspondence curve and the numerical value of the ordinate of the serial number corresponding to the numerical value in the fitted curve is determined. And a set of 10 differences is obtained.
And fifthly, sorting the differences in the difference set according to the numerical values of the differences. And a difference set of 10 differences arranged according to the value can be obtained.
And sixthly, carrying out the rejecting operation on the difference value in the difference value set according to the preset numerical reject rate. The person skilled in the art can determine the preset numerical rejection rate according to the actual situation. For example, the rejection rate may be 10%, at which one of the above 10 differences may be proposed. The maximum difference may be set forth, or the minimum difference may be set forth. Those skilled in the art can adjust the device according to the actual situation.
And seventh, taking the data corresponding to the difference value in the difference value set after the elimination as effective data. Specifically, the data corresponding to the 9 difference values after the removal is used as effective data.
And finally, generating the index statistical information according to the effective data.
The method for determining the matching result is used as an invention point of the embodiment of the disclosure, so that the problem that the accuracy of the index is affected by abnormal data collected by the monitoring equipment due to objective factors such as environment and the like as proposed in the background art is avoided. By eliminating the data in the matching result, the abnormal data in the matching result can be improved, and the accuracy of the matching result is further improved. Therefore, the accuracy of the index statistical information can be greatly improved. Thus, reliable and accurate index data can be provided for technicians to perform analysis and research work.
Similarly, the server may also filter the data in the data server according to the keywords when extracting the corresponding environmental image information. Firstly, the server searches the environment image information corresponding to the layer options in the data server according to the keywords or names in the layer options in the layer control interface selected by the user. Thereby extracting the environmental image information.
And step 204, transmitting the extracted environmental image information and/or index statistical information to a display terminal.
In some embodiments, the environmental image information is displayed directly in the map of the target area in a manner that identifies a legend or layer overlay. This display is more direct and hierarchical. For the display of index statistics, the server may generate a data table for presentation to the user. The data table may be a table of correspondence between reaction time information, monitoring point information, monitoring index information and index statistical information.
In some optional implementations of some embodiments, the displaying manner of the environmental image information may further be illustrated by the following scheme: first, each layer option in the layer control interface is marked with a sequence number, and the sequence number is used for determining the coverage sequence of the layer information corresponding to the layer option. And finally, displaying the layer information into the map of the target area according to the coverage sequence according to the selection operation of the user on the layer options. For example, if the user selects the layer option is a sewage plant layer option and a class of industrial map layer options. The server can label the sewage plant to the map of the target area in a legend labeling mode. The server may also display the scope of a class of industrial sites by filling in yellow. Since the layer information is marked with a sequence number, the sequence number determines the coverage sequence of the layer information. Thus, when displayed on a map of the target area, the legend for the sewage plant would be overlaid on top of a class of industrial map layers. In this way, the result seen by the user through the display terminal is more clear.
In some optional implementations of some embodiments, the display manner of the index statistical information may further be shown by the following scheme: first, a data table of index statistics corresponding to the environmental element information, the time information, and the monitoring point information is generated based on the index statistics extracted in step 203. The data table may be a table reflecting the correspondence between the environmental element information, the time information, the monitoring point information and the index statistical information. In addition, graphs, pie charts, bar charts and the like which can represent the corresponding relation of time information, monitoring point information, environment element information and index statistical information can be generated.
With further reference to fig. 3, as an implementation of the method illustrated in the above figures, the present disclosure provides some embodiments of an apparatus for displaying environmental information based on a graph, where the apparatus embodiments correspond to those illustrated in fig. 2, and the apparatus is particularly applicable to various servers.
As shown in fig. 3, the apparatus 300 for displaying environmental information based on a drawing of some embodiments includes a display unit 301, a detection unit 302, an extraction unit 303, and a transmission unit 304. Wherein the display unit 301 is configured to display a map of the target region and a selection interface of environmental information of the target region, wherein the environmental information includes environmental image information and index statistical information. The detection unit 302 is configured to detect a selection operation by a user on the selection interface. The extraction unit 303 is configured to extract corresponding environmental image information and/or index statistical information according to the detected selection operation. The transmission unit 304 is configured to transmit the extracted environment information to the display terminal.
In some embodiments, the display unit 301 of the apparatus 300 for displaying environmental information may be connected to a display terminal through a wired connection or a wireless connection, so as to display a selection interface of the environmental information to a user. The target area may be any area set manually or determined by a server. Further, the above-described environmental information includes environmental image information and index statistical information. Wherein the environmental image information is obtained by displaying information such as the type of the plant, the range of the plant, the monitoring point, and the contour line of the groundwater on the map of the target area
In some embodiments, the detection unit 302 receives the above-described selection operation from the above-described display terminal utilized by the user.
In some embodiments, the extraction unit 303 may extract the environmental image information and/or the index statistical information corresponding to the above-described selection operation result in the database server. The data server stores a plurality of pieces of map information of the target area and monitoring data acquired by a plurality of monitoring devices. And the server searches the related data meeting the user request in the data server with the help of the search engine according to the selection operation of the user.
In some embodiments, the transmission unit 304 may transmit the above-described environmental image information and/or index statistical information to the display terminal.
Referring now to fig. 4, a schematic diagram of a server 400 suitable for use in implementing some embodiments of the present disclosure is shown. The server illustrated in fig. 4 is merely an example, and should not be construed as limiting the functionality and scope of use of the embodiments of the present disclosure in any way.
As shown in fig. 4, the server 400 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 401 that may perform various suitable actions and processes in accordance with programs stored in a Read Only Memory (ROM) 402 or loaded from a storage device 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the server 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
In general, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, magnetic tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the server 400 to communicate with other devices wirelessly or by wire to exchange data. While fig. 4 shows a server 400 having various devices, it is to be understood that not all illustrated devices are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 4 may represent one device or a plurality of devices as needed.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via communications device 409, or from storage 408, or from ROM 402. The above-described functions defined in the methods of some embodiments of the present disclosure are performed when the computer program is executed by the processing device 401.
It should be noted that the computer readable medium of some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the server; or may exist alone without being assembled into the server. The computer readable medium carries one or more programs which, when executed by the server, cause the server to: displaying a map of a target area and a selection interface of environment information of the target area, wherein the environment information comprises environment image information and index statistical information; detecting a selection operation of a user on a selection interface; extracting corresponding environmental image information and/or index statistical information according to the detected selection operation; and transmitting the extracted environmental image information and/or index statistical information to a display terminal.
Computer program code for carrying out operations for some embodiments of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The described units may also be provided in a processor, for example, described as: a processor includes a display unit, a detection unit, an extraction unit, and a transmission unit. The names of these units do not constitute a limitation on the unit itself in some cases, and for example, the detection unit may also be described as "a unit that detects a user selection operation".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above technical features, but encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the spirit of the invention. Such as the above-described features, are mutually substituted with (but not limited to) the features having similar functions disclosed in the embodiments of the present disclosure.