Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for regularly generating disaster map based on NodeJs

A technology for maps and disaster situations, applied in special data processing applications, instruments, electrical and digital data processing, etc., can solve problems such as unguaranteed rendering speed, high network performance, high device performance requirements, page freezes or crashes, etc. Avoid manual screenshot misoperation, improve drawing efficiency, and reduce network bandwidth

Pending Publication Date: 2020-11-20
浙江知水信息技术有限公司
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, the real-time display of flood, rain, and water regime systems in various provinces and cities is displayed after processing the data on the web side. This kind of rendering method has relatively high requirements on network performance and equipment performance, and the rendering speed is limited when the amount of data is too large. The situation cannot be guaranteed, and the page will freeze or crash when the disaster situation changes rapidly and the refresh rate is high

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for regularly generating disaster map based on NodeJs

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0021] The present invention provides a method for periodically generating a disaster map based on NodeJs, such as figure 1 shown, including the following steps:

[0022] 1) The system’s built-in timer automatically generates special tasks at regular intervals; at the same time, the system monitors external requests, and if it receives an external request for a disaster picture, it determines whether the picture exists, and if so, takes the required disaster picture from the file system and returns it to the external request, otherwise create a custom task.

[0023] In this embodiment, the system has built-in multiple timers, including a rain map task generation timer, a water map task generation timer, and a flood map task generation timer. Scene picture generation task and flood picture generation task.

[0024] 2) Pass all image...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a method for regularly generating a disaster map based on NodeJs. The method comprises steps of a built-in timer regularly generating a thematic task, meanwhile, an external request being received, whether a picture exists or not being judged, if yes, a disaster picture being returned to the request, and if not, a custom task being created; all the tasks being transmittedinto a task scheduling queue and processed according to priorities; creating a sub-thread for each task by the main thread, starting a headless browser in the sub-thread, creating a map canvas, and zooming a map to a task specified level; reading related data in the database, drawing a graph, and loading the graph to the canvas; reading a related basic layer from a file system and loading the related basic layer to the canvas; reading a related online service layer from the online map service and loading the related online service layer to the canvas; intercepting a task drawing area, and generating a disaster picture; saving the disaster picture to a file system; and returning the disaster picture to the external request. The method is beneficial to providing disaster pictures for users,has low requirements on user networks and equipment, and is easy to operate and use.

Description

technical field [0001] The invention belongs to the technical field of flood control informatization, and in particular relates to a method for periodically generating a disaster map based on NodeJs. Background technique [0002] In the field of flood control, if we can quickly and real-time produce, save, publish, and display disaster change maps of water, rain, and flood conditions at different times, we can make more accurate judgments on the disaster situation and let the public know the development of the disaster situation in a timely manner. [0003] At present, the real-time display of flood, rain, and water regime systems in various provinces and cities is displayed after processing the data on the web side. This kind of rendering method has relatively high requirements on network performance and equipment performance, and the rendering speed is limited when the amount of data is too large. The situation cannot be guaranteed, and the page may freeze or crash when th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/909
CPCG06F16/909
Inventor 吴宇烽陈金满黄敏陈星星
Owner 浙江知水信息技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products