Traffic information file compression and decompression method and device
A traffic information and file compression technology, which is applied in the field of traffic information, can solve problems such as heavy burden on operation and maintenance personnel, affect user experience, and low operating efficiency, and achieve the effects of reducing work burden, improving user experience, and improving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] refer to figure 1 , shows a flowchart of steps of a traffic information file compression method according to Embodiment 1 of the present invention.
[0029] The traffic information file compression method of the present embodiment comprises the following steps:
[0030] Step S102: When the file compression condition is triggered, according to the preset compression period, compression range, and storage location of the compressed file, create an empty compressed file whose file name meets the set rules.
[0031] The file compression condition may be any appropriate trigger file compression condition, for example, the number of files reaches a set threshold, or the amount of data reaches a set threshold, or the current time reaches a set time point. Preferably, the file compression condition is a time point when file compression is triggered, such as 3:00 am every day. Use the time point as the trigger condition for file compression, which is simple to implement and hi...
Embodiment 2
[0042] refer to figure 2 , shows a flow chart of steps of a method for decompressing a traffic information file according to Embodiment 2 of the present invention.
[0043] The traffic information file decompression method of the present embodiment comprises the following steps:
[0044]Step S202: Receive an input traffic information access request, and determine the compressed file corresponding to the traffic information file to be accessed and the directory structure of the traffic information file stored in the compressed file according to the access request.
[0045] As described in the first embodiment, when the traffic information file is compressed, its directory structure will be packaged into the compressed file. When the user inputs an access request, and the access request needs to access a compressed traffic information file, it is necessary to determine the compressed file to be accessed and the directory structure compressed together with the traffic informati...
Embodiment 3
[0054] This embodiment fully describes the compression and decompression of traffic information files, which are divided into two parts: the compression and archiving part (that is, the traffic information file compression part), the decompression recovery part (that is, the traffic information file decompression part), and the compression / decompression is based on ZIP compression / decompression algorithm implementation. Moreover, the Servlet technology combined with the Tomcat service (that is, the Tomcat server configured with the Servlet) realizes decompressing data according to user requests.
[0055] Hereinafter, the implementation steps of the above two parts will be described in detail respectively.
[0056] Compress the archive section:
[0057] refer to image 3 , shows a flow chart of the steps of a traffic information file compression method according to Embodiment 3 of the present invention, the process includes the following steps:
[0058] Step S302: Create a c...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com