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

System and method for converting JSON weather data into JPEG picture

A JSON and data technology, applied in the field of software development, which can solve the problems of large file size, low JSON file compression rate, and low security.

Active Publication Date: 2020-01-31
深圳旗鱼体育传播有限公司
View PDF7 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Due to the huge amount of data, the low compression rate of the JSON file, and the large file size, a large amount of storage space is required to transmit and save meteorological data, and the JSON file is transmitted in clear code, which is not easy to encrypt during transmission and has low security

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
  • System and method for converting JSON weather data into JPEG picture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] This embodiment takes JSON weather data conversion JPEG image middleware as an example, and the present invention will be described in detail below in conjunction with specific embodiments and accompanying drawings.

[0035] see figure 1 , showing a method for converting JSON weather data into a JPEG image provided by an embodiment of the present invention.

[0036] A method for converting JSON weather data into a JPEG image is used to convert a source file storing weather data in a JSON data format into a target file in the form of a JPEG image, comprising the following steps:

[0037] Step 1, load and read the JSON array in the source file, and convert the JSON array into a JSON object directly read by JAVA;

[0038] Step 2, get the JSON header information from the JSON object, and temporarily store it in the data header object of the intermediate file;

[0039] Step 3, read the list data from the JSON object, find the maximum and minimum values ​​of the weather dat...

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 discloses a system and method for converting JSON weather data into a JPEG picture. The system and the method are used for converting a source file for storing weather data in a JSON data format into a target file in a JPEG picture form; reading header information of the JSON data; calculating data such as a maximum value, a minimum value, an intermediate value and a difference valuebetween the maximum value and the minimum value of the JSON data volume, and storing the data to the head of the JPEG picture file; and calculating offset difference data in the JSON data volume, converting the offset difference data into four-byte data, and storing the four-byte data into a data part of the JPEG picture file so as to finally generate a JPEG picture target file. The JPEG picturefile is small in size, high in transmission speed and easy to encrypt, and the JPEG picture file after data compression occupies a small storage space, so that the converted file can save a large amount of storage space and network flow.

Description

technical field [0001] The invention relates to the technical field of software development, in particular to a system and method for converting JSON weather data into JPEG pictures. Background technique [0002] The JSON format is a lightweight data exchange format. It is a subset of the JS specification based on the European Computer Society, and uses a text format that is completely independent of the programming language to store and represent data. The concise and clear hierarchical structure makes JSON an ideal data exchange language. It is not only easy to read and write, but also easy to analyze and generate by machines, and effectively improves the efficiency of network transmission, making JSON widely used. [0003] Meteorological data includes data on temperature, air pressure, relative humidity, water vapor pressure, wind, precipitation, etc., and involves climate change information at different heights and geographical locations such as the ground, high altitud...

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): G06F40/151
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