CN111460775B - Method and device for generating trade characteristic grid graph - Google Patents

Method and device for generating trade characteristic grid graph Download PDF

Info

Publication number
CN111460775B
CN111460775B CN202010147948.5A CN202010147948A CN111460775B CN 111460775 B CN111460775 B CN 111460775B CN 202010147948 A CN202010147948 A CN 202010147948A CN 111460775 B CN111460775 B CN 111460775B
Authority
CN
China
Prior art keywords
trade
product
grid
generating
products
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.)
Active
Application number
CN202010147948.5A
Other languages
Chinese (zh)
Other versions
CN111460775A (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.)
Beijing Normal University
Original Assignee
Beijing Normal University
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 Beijing Normal University filed Critical Beijing Normal University
Priority to CN202010147948.5A priority Critical patent/CN111460775B/en
Publication of CN111460775A publication Critical patent/CN111460775A/en
Application granted granted Critical
Publication of CN111460775B publication Critical patent/CN111460775B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The embodiment of the invention provides a method and a device for generating a trade characteristic grid graph, wherein the method comprises the following steps: acquiring trade characteristic data of each product between two countries; determining the length and width specification number of the grid according to the coding rule and the total number of the product; generating a Hilbert curve in the grid with the determined specification, and numbering the grid according to the curve sequence; and loading the product trade characteristic data into the grids numbered sequentially in a one-to-one correspondence manner according to the coding sequence of the product so as to generate a grid diagram expressed in a space manner. The product trade characteristic data are loaded into the grids numbered sequentially in a one-to-one correspondence mode according to the coding sequence of the products, so that the limitation of the types and the quantity of the products is avoided, the difference of trade characteristics among the products with similar types and each product can be visually expressed, the analysis is not needed according to the large types of the products, the trade information is lost, and the product import and export characteristics and the change process are favorably described.

Description

Method and device for generating trade characteristic grid graph
Technical Field
The invention relates to the field of bilateral trade research, in particular to a method and a device for generating a trade characteristic grid graph.
Background
The united nations trade statistics database is an international product trade database with high acceptance on a global scale. The library is created by a united nations statistical agency, and gathers annual import and export amount data of more than 6000 products in more than 200 countries in the world, and the accumulated data records exceed 17 hundred million. On the basis, a new data intensive discovery paradigm is promoting scientific research to turn from mode thinking to data thinking, and on the background, a research method based on full-sample product trade data analysis and expressing trade relations among countries is explored, so that the method has an important auxiliary effect on deep understanding of trade cooperation situation and trade conflict major and minor contradictions among countries and further exploring and solving paths. For a long time, geography aims at researching the ground surface element pattern, the evolution process and the driving mechanism, a rich theory and method system is gradually formed, and in view of the fact that product trade among countries has a special element classification basis and a quantitative expression mode, the method for researching the regional pattern, the evolution process and the driving mechanism of product trade on a small scale by using the geographic paradigm becomes significant.
Bilateral trade research often applies specific trade indexes to express trade relations and trade structures of multiple types of products among countries, such as dependency indexes, display comparative advantage indexes, trade complementarity indexes, product added value indexes, trade specialization coefficients, trade combination indexes, Lorentz indexes and the like. However, such methods are relatively macroscopic in product trade data selection (for example, thousands of trade products in a country are often divided into several types of "major" to perform calculation), inevitably lose trade information, and are not favorable for describing the import and export characteristics and the variation process of the product. Other commonly used analysis methods, including complex network analysis and gravity model analysis, are also limited by the number of product types.
Disclosure of Invention
In order to solve the above problem, embodiments of the present invention provide a method and an apparatus for generating a trade feature grid map.
In a first aspect, an embodiment of the present invention provides a method for generating a trade feature grid map, including: acquiring trade characteristic data of each product between two countries; determining the length and width specification number of the grid according to the total number of codes of the product; generating a Hilbert curve in the grid with the determined specification, and numbering the grid according to the curve sequence; and loading the product trade characteristic data into the grids numbered sequentially in a one-to-one correspondence manner according to the coding sequence of the product so as to generate a grid diagram expressed in a space manner.
Further, the trade characteristics include trade strength, and accordingly, the acquiring trade characteristic data of each product between two countries includes: for each product, the trade strength value for the corresponding year is obtained from the root of the sum of the squares of the import and export amounts for any year.
Further, the trading features include: any one or more of import and export total, import and export average, import and export change rate, import and export variance, import and export proportion in GDP, and trade index characteristics; the trade index features include a trade dependency index, a display comparison advantage index, a trade complementation index, a product added value index, a trade specialization coefficient, a trade combination index and a Lorentz index.
Further, the determining the length and width specification number of the grid according to the total number of codes of the product specifically includes: determining the length and width specification number of the grid according to the total number of codes of the first coding mode of the product; correspondingly, after the product trade characteristic data is loaded into the grid with the sequential numbering in a one-to-one correspondence manner according to the coding sequence of the product, the method further comprises the following steps: and clustering all products coded according to the first coding mode and products with the same code numbers in the second coding mode.
Furthermore, the first coding mode is HS4 coding, and the second coding mode is HS2 coding.
Further, after the generating the grid map of the spatialization expression, the method further includes: converting the grid map into a raster file; encoding a raster file name; the raster file names comprise name identifications, import and export identifications, date identifications, coding identifications and format names of two countries.
Further, after encoding the name of the raster file, the method further includes: and storing the raster file in paths according to the trade type and the year.
In a second aspect, an embodiment of the present invention provides a device for generating a trade feature grid map, including: the characteristic acquisition module is used for acquiring trade characteristic data of each product between two countries; the specification determining module is used for determining the length and width specification number of the grids according to the total number of codes of the product; the curve generation module is used for generating a Hilbert curve in the grids with the determined specifications and numbering the grids according to the curve sequence; and the grid processing module is used for correspondingly loading the product trade characteristic data into the grids numbered sequentially one by one according to the coding sequence of the product so as to generate a grid diagram expressed in a space mode.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the steps of the trade feature grid map generating method according to the first aspect of the present invention.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the trade feature grid map generation method in the first aspect of the present invention.
According to the method and the device for generating the trade characteristic grid diagram, the Hilbert curve is generated in the grid with the determined specification, and the grid is numbered according to the curve sequence; the product trade characteristic data are loaded into the grids numbered sequentially in a one-to-one correspondence mode according to the coding sequence of the products, so that the limitation of the types and the quantity of the products is avoided, the difference of trade characteristics among each product and products with similar types can be visually expressed, the analysis is not needed according to the large types of the products, the trade information is lost, and the product import and export characteristics and the change process can be conveniently depicted.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flowchart of a method for generating a grid map of trade features according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of calculation of trade intensity characteristics of a product according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a trade grid system provided in an embodiment of the present invention;
FIG. 4 is a schematic representation of a spatial representation of trade features provided by an embodiment of the present invention;
FIG. 5 is a flowchart of a method for generating a grid map of trade features according to another embodiment of the present invention;
FIG. 6 is a diagram illustrating a method for encoding names of raster files and setting paths according to another embodiment of the present invention;
FIG. 7 is a block diagram of a trade feature grid map generation apparatus according to an embodiment of the present invention;
fig. 8 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a method for generating a trade feature grid map according to an embodiment of the present invention, and as shown in fig. 1, the embodiment of the present invention provides a method for generating a trade feature grid map, including:
101. trade characteristic data of each product between two countries is obtained.
Based on bilateral trade data, many different trade characteristics may be computed using different methods to express inter-country product trade relationships and structures. In this embodiment, inter-country product trade strength characteristics are taken as an example of the trade characteristics, fig. 2 is a schematic diagram of calculation of product trade strength characteristics provided by an embodiment of the present invention, and a calculation method is as shown in fig. 2. For any two countries A, B, trade space may be constructed with the amount of country A import trades from country B (in U.S. dollars) as the X-axis 201 and the amount of country A export trades to country B (in U.S. dollars) as the Y-axis 202; each product can be expressed in this space in terms of point elements in import and export per year. For a certain product, the point coordinates can reflect the trade amount and import and export difference of the product in different years, and the point distribution discrete degree can reflect the change amplitude of the trade amount of the product in a certain time period.
In this embodiment, the HS4 encoded products (HS is an abbreviation of "International Convention for modified common Description and Coding System") between two countries, and the product M (HS4 number 8414, gas compressor and fan) 204 is taken as an example, and the annual import/export trade amount in the ith year can be taken as a coordinate (x)M,i,ym,i) Is expressed in trade space, the distance l of the point to the origin O (0,0) (205)m,i(203) May indicate the product's year i trade strength; calculating L using the formulaMFor expressing the average trade intensity, x, of the product M over n yearsM,iAnd yM,iRespectively representing the import and export of the product M in the ith year, and n representing the number of year shares participating in the calculation. And establishing an association relation between the HS4 code of the product and the trade strength characteristic.
Figure BDA0002401425230000051
102. And determining the length and width specification number of the grid according to the total number of codes of the product.
Bilateral trading is taken as an example to illustrate the spatial expression of the characteristics of trade data. In the construction process of the grid system, on the premise that the encoding quantity of the HS products is determined to be u, w is taken to satisfy 2w*2wThe smallest positive integer of more than or equal to u. In this embodiment, for example, the bilateral trade of HS 4-bit encoded products between two countries is taken as an example, the total number of HS 4-bit codes is 1259, and therefore w is 6. And constructing a 64 x 64 regular grid on the basis of the data. Furthermore, if for the HS6 bit encoded product, w is 7 since its total number of encodings is 6551.
103. And generating a Hilbert curve in the grid with the determined specification, and numbering the grids according to the curve sequence.
Fig. 3 is a schematic diagram of a trade grid system according to an embodiment of the present invention, and as shown in fig. 3, a hilbert curve 301 continuously traversing all 64 × 64 regular grids is generated using the lower left corner grid as a starting point by applying a conventional hilbert curve generation algorithm. And numbering all grids according to the traversal sequence of the Hilbert curve by taking the starting point number as 0 and 1 as increment. And extracting grids with the numbers of 0-1258 (end points) to form a trade grid graph. 303 represents the total number of grids numbered 0-1258 in the regular grid hierarchy. It should be noted that fig. 3 also shows the following alternative embodiments: and clustering and displaying all the products coded according to the first coding mode (such as HS4) and the same products coded according to the second coding mode (such as HS 2). Thus, the Hilbert curves between blocks formed in the second encoding (e.g., HS2) are not connected together.
104. And loading the product trade characteristic data into the grids numbered in sequence in a one-to-one correspondence manner according to the coding sequence of the product.
All HS4 bit product codes are arranged in a positive sequence from small to large, the product codes are numbered one by one according to the arrangement data and integer numbers 1-1256, and the one-to-one correspondence relationship between the HS4 bit codes of the products and the product code numbers is established. Mapping all product codes (such as HS4 codes) into the trade grid in a one-to-one manner by taking the product code number as a correlation condition to be equal to the grid number in the trade grid graph; since the association relationship between the HS4 code of the product and the trade strength characteristic is already established in step 101, this step may establish the association relationship between the trade strength characteristic and the grid number, and further express the trade strength characteristic of the product based on a grid system, fig. 4 is a spatial expression diagram of the trade characteristic provided in the embodiment of the present invention, for example, fig. 4, 402 to 406 represent that the trade strength characteristic is displayed in a hierarchical manner according to a preset rule, and respectively correspond to level 1, level 2, level 3, level 4 and level 5, and the higher the level is, the higher the corresponding trade strength is. It should be noted that, due to the limitation of the illustration, in actual use, the colors at different depths can be distinguished, so that the display can be performed more intuitively.
The method for generating the trade feature grid map provided by this embodiment is different from the expression mode based on the conventional statistical report (such as line graph, column graph, pie graph, etc.) or network map, and realizes the expression of a large number of different types of product trade features by using the spatial grid and the trade product coding rules. Generating a Hilbert curve in a grid with a determined specification, and numbering the grid according to the curve sequence; the product trade characteristic data are loaded into the grids numbered sequentially in a one-to-one correspondence mode according to the coding sequence of the products, so that the limitation of the types and the quantity of the products is avoided, the difference of trade characteristics among each product and products with similar types can be visually expressed, the analysis is not needed according to the large types of the products, the trade information is lost, and the product import and export characteristics and the change process can be conveniently depicted.
Based on the content of the foregoing embodiment, as an alternative embodiment, the acquiring the trade characteristics data of each product between two countries includes: for each product, the trade strength value for the corresponding year is obtained from the root of the sum of the squares of the import and export amounts for any year.
Specifically, referring to the description of the step 101 in the above embodiment, by obtaining the trade strength value of the corresponding year according to the root of the sum of squares of the import and export of any year, the trade strength information between two countries of any product and products of similar types can be visually displayed.
Based on the content of the above embodiments, as an alternative embodiment, the trade features include: any one or more of import and export total, import and export average, import and export change rate, import and export variance, import and export proportion in GDP, and trade index characteristics; the trade index features include a trade dependency index, a display comparison advantage index, a trade complementation index, a product added value index, a trade specialization coefficient, a trade combination index and a Lorentz index.
That is, a grid map may be generated from each trade feature. For example, two grid graphs with the same specification and the same numbering sequence are generated according to the total amount of the import and the export respectively. And generating a grid diagram according to each trading feature, so that a plurality of trading features can be analyzed.
Based on the content of the foregoing embodiment, as an optional embodiment, the determining, according to the total number of codes of the product, the number of length and width specifications of the grid is specifically: determining the length and width specification number of the grid according to the total number of codes of the first coding mode of the product; correspondingly, after the product trade characteristic data is loaded into the grid with the sequential numbering in a one-to-one correspondence manner according to the coding sequence of the product, the method further comprises the following steps: and clustering all products coded according to the first coding mode and products coded in the same second coding mode.
Given the difficulty with current approaches to clear differences in the importance of different products in the same "major" category across the entire trade pattern on a small scale. For example, the first encoding scheme is HS4 encoding, and the second encoding scheme is HS2 encoding. The total number of HS4 encodings was 1259, whereas HS2 encodings were much less. Different products coded by HS4 have similar types, and HS2 of the products has the same coding mode. Therefore, the HS2 codes of the same products can be clustered and displayed in the grid diagram based on the HS4 codes, so that the trade characteristic analysis of the same products is facilitated.
As shown in fig. 3, 302 represents that products with the same HS2 code are clustered and displayed and boundaries are displayed; as shown in fig. 4, 401 shows that the HS2 coded products are clustered and displayed and the boundary is shown.
Based on the content of the foregoing embodiment, as an optional embodiment, after generating the grid map of the spatialization expression, the method further includes: converting the grid map into a raster file; encoding a raster file name; the raster file names comprise name identifications, import and export identifications, date identifications, coding identifications and format names of two countries.
Fig. 5 is a flowchart of a method for generating a trade characteristic grid map according to another embodiment of the present invention, and as shown in fig. 5, the method for generating a trade characteristic grid map is described in this embodiment by using 2016 middle-american HS4 encoded bilateral trade volume data as sample data.
Step 501, loading annual product trade amount data into a trade grid map.
And respectively replacing the trade strength characteristic data of the HS4 coded products with 2016-year product import amount data and export amount data, and loading the annual product import amount data and the annual product export amount data into a grid system according to the method to form 2 groups of mutually independent trade grid data.
Step 502, converting the data structure to form a raster file.
Respectively converting import trade volume data and export trade volume data based on grid organization into grid data model organization to form 2 grid files; the spatial resolution of the raster file can be defined as any positive number, the null value can be defined as any negative number, the spatial coordinate reference can be optionally not set or set as any projection coordinate system, the data type can be set as signed length shaping or double precision type, and the format of the raster file can be set as any format following the raster data model. In addition, the method requires that all the raster files set uniform spatial resolution, null values, spatial coordinate references, data types and raster file formats during the conversion process.
The method for generating the trade characteristic grid diagram provided by the embodiment can reduce the storage space of trade data and increase the efficiency of data retrieval and sharing.
Based on the content of the foregoing embodiment, as an optional embodiment, after encoding the raster file name, the method further includes: and storing the raster file in paths according to the trade type and the year.
The raster file name and output path are encoded, and metadata information is recorded, as in step 503 of fig. 5. FIG. 6 is a schematic diagram of a method for encoding names of raster files and setting paths according to another embodiment of the present invention, where the names of the raster files are encoded according to the file name encoding rule in FIG. 6; 605 takes 3 characters, is assigned based on the ISO3 national name standard, and represents the name of the country A; 606 takes 3 characters and is assigned based on the ISO3 country name standard, representing the name of country B; 607 takes 4 characters to represent the year; 608 takes 1 character indicating the trade type, 1 for import, 2 for export, 3 for re-import, 4 for re-export; 609 takes 1 character to indicate the number of code bits of the product type code, e.g. 2 represents the product type following HS2 bit code, 4 represents HS4 bit code, 6 represents HS6 bit code, etc.; 610 represents file format names such as TIF, IMG, and JPG. 601 to 604 correspond to the paths of the files, and the names of the raster files of the sample data in this embodiment are chnusa201614.GIF and chnusa201624.GIF, respectively, which indicate that Chinese (CHN) imported from USA (USA) in 2016 numbers of encoded product trade data at HS4 bits and Chinese (CHN) exported from USA (USA) in 2016 numbers of encoded product trade data at HS4 bits.
On the basis of completing the encoding of the name of the raster file, for any known root directory path 601, a file storage path is automatically generated to be 'root directory/trade type/year/file name' according to the trade type 608, the trade year 607 and the name of the raster file; and outputting the raster file to a storage path. The raster file storage paths of the sample data in this embodiment are "root directory/1/2016/CHNUSA201614. TIF" and "root directory/2/2016/CHNUSA201624. TIF", respectively. Finally, the file name and the processing date information are input into the metadata table. It should be noted that, first, in this embodiment, a root directory may be set as any file directory according to a storage space, and in order to simplify data storage and management processes, the same root directory may be applied to all raster files; however, for distributed storage or limited hard disk space, different root directories may be set to store different raster files, respectively. Secondly, in this embodiment, the retrieving and sharing of the raster file may be performed in a metadata-free mode, and the recording of the metadata information is only for the convenience of error checking, which may be eliminated.
Fig. 7 is a structural diagram of a trade feature grid map generation apparatus according to an embodiment of the present invention, and as shown in fig. 7, the trade feature grid map generation apparatus includes: a feature acquisition module 701, a specification determination module 702, a curve generation module 703 and a mesh processing module 704. The characteristic acquisition module 701 is used for acquiring trade characteristic data of each product between two countries; the specification determining module 702 is configured to determine the number of the grid length and width specifications according to the total number of codes of the product; the curve generation module 703 is configured to generate a hilbert curve in a grid with a determined specification, and number the grid according to a curve sequence; the grid processing module 704 is configured to load the product trade feature data into the grids numbered sequentially in a one-to-one correspondence manner according to the encoding sequence of the product, so as to generate a grid map expressed in a spatialization manner.
The device embodiment provided in the embodiments of the present invention is for implementing the above method embodiments, and for details of the process and the details, reference is made to the above method embodiments, which are not described herein again.
According to the trade characteristic grid diagram generation device provided by the embodiment of the invention, a Hilbert curve is generated in a grid with a determined specification through a curve generation module, and the grid is numbered according to a curve sequence; the grid processing module loads the product trade characteristic data into grids numbered in sequence one by one according to the coding sequence of the products, so that the limitation of the types and the quantity of the products is avoided, the difference of trade characteristics among products with similar types and each product can be visually expressed, the analysis is not needed according to the categories of a plurality of products, the trade information is lost, and the product import and export characteristics and the change process are favorably depicted.
Fig. 8 is a schematic entity structure diagram of an electronic device according to an embodiment of the present invention, where as shown in fig. 8, the electronic device may include: a processor (processor)801, a communication Interface (Communications Interface)802, a memory (memory)803 and a bus 804, wherein the processor 801, the communication Interface 802 and the memory 803 complete communication with each other via the bus 804. The communication interface 802 may be used for information transfer of an electronic device. The processor 801 may call logic instructions in the memory 803 to perform a method comprising: acquiring trade characteristic data of each product between two countries; determining the length and width specification number of the grid according to the total number of codes of the product; generating a Hilbert curve in the grid with the determined specification, and numbering the grid according to the curve sequence; and loading the product trade characteristic data into the grids numbered sequentially in a one-to-one correspondence manner according to the coding sequence of the product so as to generate a grid diagram expressed in a space manner.
In addition, the logic instructions in the memory 803 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-described method embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to perform the transmission method provided in the foregoing embodiments when executed by a processor, and for example, the method includes: acquiring trade characteristic data of each product between two countries; determining the length and width specification number of the grid according to the total number of codes of the product; generating a Hilbert curve in the grid with the determined specification, and numbering the grid according to the curve sequence; and loading the product trade characteristic data into the grids numbered sequentially in a one-to-one correspondence manner according to the coding sequence of the product so as to generate a grid diagram expressed in a space manner.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (9)

1. A method for generating a trade feature grid map is characterized by comprising the following steps:
acquiring trade characteristic data of each product between two countries;
determining the length and width specification number of the grid according to the total number of codes of the product;
generating a Hilbert curve in the grid with the determined specification, and numbering the grid according to the curve sequence;
loading the product trade characteristic data into grids numbered sequentially in a one-to-one correspondence mode according to the coding sequence of the product to generate a grid graph expressed in a space mode;
the determining of the length and width specification number of the grid according to the total number of codes of the product specifically comprises:
determining the length and width specification number of the grid according to the total number of codes of the first coding mode of the product;
correspondingly, after the product trade characteristic data is loaded into the grid with the sequential numbering in a one-to-one correspondence manner according to the coding sequence of the product, the method further comprises the following steps:
and for all products coded according to the first coding mode, clustering the products with the same second coding mode code number in all the products under the condition of coding according to the second coding mode.
2. The method of generating a trading feature grid map according to claim 1, wherein the trading features include trading intensity, and accordingly, the acquiring trading feature data of each product between two countries includes:
for each product, the trade strength value for the corresponding year is obtained from the root of the sum of the squares of the import and export amounts for any year.
3. The method of generating a trading feature grid map of claim 1, wherein the trading features include:
any one or more of import and export total, import and export average, import and export change rate, import and export variance, import and export proportion in GDP, and trade index characteristics;
the trade index features include a trade dependency index, a display comparison advantage index, a trade complementation index, a product added value index, a trade specialization coefficient, a trade combination index and a Lorentz index.
4. The method for generating a trade feature grid map of claim 1, wherein the first encoding scheme is HS4 encoding and the second encoding scheme is HS2 encoding.
5. The method for generating a grid map of trade features according to claim 1, wherein after generating the spatially expressed grid map, further comprising:
converting the grid map into a raster file;
encoding a raster file name;
the raster file names comprise name identifications, import and export identifications, date identifications, coding identifications and format names of two countries.
6. The method of generating a trade feature grid map of claim 5, wherein after encoding the grid file name, further comprising:
and storing the raster file in paths according to the trade type and the year.
7. A trade feature grid map generation apparatus, comprising:
the characteristic acquisition module is used for acquiring trade characteristic data of each product between two countries;
the specification determining module is used for determining the length and width specification number of the grids according to the total number of codes of the product;
the curve generation module is used for generating a Hilbert curve in the grids with the determined specifications and numbering the grids according to the curve sequence;
the grid processing module is used for correspondingly loading the product trade characteristic data into the grids numbered sequentially one by one according to the coding sequence of the product so as to generate a grid graph expressed in a space mode;
the determining of the length and width specification number of the grid according to the total number of codes of the product specifically comprises:
determining the length and width specification number of the grid according to the total number of codes of the first coding mode of the product;
correspondingly, after the product trade characteristic data is loaded into the grid with the sequential numbering in a one-to-one correspondence manner according to the coding sequence of the product, the method further comprises the following steps:
and for all products coded according to the first coding mode, clustering the products with the same second coding mode code number in all the products under the condition of coding according to the second coding mode.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the steps of the trade feature grid map generation method of any one of claims 1 to 6.
9. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the steps of the trade feature grid map generation method according to any one of claims 1 to 6.
CN202010147948.5A 2020-03-05 2020-03-05 Method and device for generating trade characteristic grid graph Active CN111460775B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010147948.5A CN111460775B (en) 2020-03-05 2020-03-05 Method and device for generating trade characteristic grid graph

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010147948.5A CN111460775B (en) 2020-03-05 2020-03-05 Method and device for generating trade characteristic grid graph

Publications (2)

Publication Number Publication Date
CN111460775A CN111460775A (en) 2020-07-28
CN111460775B true CN111460775B (en) 2022-04-05

Family

ID=71680195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010147948.5A Active CN111460775B (en) 2020-03-05 2020-03-05 Method and device for generating trade characteristic grid graph

Country Status (1)

Country Link
CN (1) CN111460775B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924562A (en) * 2010-06-24 2010-12-22 北京师范大学 Compression-type coding scheme of curve vector data based on integer wavelet transformation
CN103995861A (en) * 2014-05-16 2014-08-20 罗敬宁 Distributed data device, method and system based on spatial correlation
CN105959964A (en) * 2016-06-17 2016-09-21 上海理工大学 Data collection method
CN108052704A (en) * 2017-11-24 2018-05-18 南京大学 Mesoscale photochemical pollution simulation and forecast algorithm with Grid Nesting function
CN109728934A (en) * 2018-12-03 2019-05-07 清华大学 Cyberspace cartographic model creation method and device
CN110348647A (en) * 2019-01-21 2019-10-18 罗斌 A kind of global trade big data intelligent analysis system and method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7127424B2 (en) * 2000-03-02 2006-10-24 Trading Technologies International, Inc. Click based trading with intuitive grid display of market depth and price consolidation
US7711631B2 (en) * 2005-12-29 2010-05-04 Trading Technologies International, Inc. System and method for a trading interface incorporating a chart
CN108550189A (en) * 2018-05-03 2018-09-18 苏州润迈德医疗科技有限公司 Microcirculation drag index computational methods based on contrastographic picture and fluid mechanic model
CN109919377A (en) * 2019-03-01 2019-06-21 北京安地科技有限公司 The module and index Design method of global trade big data intelligent analysis system
CN110263031A (en) * 2019-05-07 2019-09-20 深圳壹账通智能科技有限公司 Trading platform data processing method, device, computer equipment and storage medium
CN110209725A (en) * 2019-06-06 2019-09-06 复旦大学 Data visualisation system towards entry and exit commodity

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924562A (en) * 2010-06-24 2010-12-22 北京师范大学 Compression-type coding scheme of curve vector data based on integer wavelet transformation
CN103995861A (en) * 2014-05-16 2014-08-20 罗敬宁 Distributed data device, method and system based on spatial correlation
CN105959964A (en) * 2016-06-17 2016-09-21 上海理工大学 Data collection method
CN108052704A (en) * 2017-11-24 2018-05-18 南京大学 Mesoscale photochemical pollution simulation and forecast algorithm with Grid Nesting function
CN109728934A (en) * 2018-12-03 2019-05-07 清华大学 Cyberspace cartographic model creation method and device
CN110348647A (en) * 2019-01-21 2019-10-18 罗斌 A kind of global trade big data intelligent analysis system and method

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Comparative Intra-industry trade analysis on the asymmetric effects of the FTA:Korea and MENA Countries;Haddou A. 等;《Journal of International Trade & Commerce》;20190115;第14卷(第4期);49-62 *
中国商品外贸交易地位与比较效益变化实证研究;徐强;《经济评论》;20060715(第4期);36-43 *
基于MI算法的商品销量组合预测;钱慧兰;《中国优秀博硕士学位论文全文数据库(硕士) 经济与管理科学辑》;20190715(第07期);J152-1034 *
数字贸易的缘起、国际经验与发展策略;夏杰长;《北京工商大学学报(社会科学版)》;20180918;第33卷(第5期);1-10 *

Also Published As

Publication number Publication date
CN111460775A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
CN110199273B (en) System and method for loading, aggregating and bulk computing in one scan in a multidimensional database environment
AU2011315250B2 (en) Triangle mesh compression
US9877031B2 (en) System and method for multi-resolution raster data processing
CN109885632B (en) Space science and application data retrieval method, system, medium and equipment
CN108804602A (en) A kind of distributed spatial data storage computational methods based on SPARK
US11093473B2 (en) Hierarchical tree data structures and uses thereof
CN105825269A (en) Parallel autoencoder based feature learning method and system
CN110532240A (en) A kind of enterprise directory hierarchy mode method and system
CN110991553B (en) BIM model comparison method
CN111460775B (en) Method and device for generating trade characteristic grid graph
KR102227912B1 (en) Optimized data condenser and method
US20180067938A1 (en) Method and system for determining a measure of overlap between data entries
CN117115348A (en) Rendering method and device of three-dimensional model and computer readable storage medium
CN117009411A (en) Method, device and computer readable storage medium for meshing space storage and indexing based on point cloud data
CN116611914A (en) Salary prediction method and device based on grouping statistics
CN115952252A (en) Data processing method, device, electronic equipment and medium
CN114116925A (en) Spatio-temporal data query method and related device
CN113032405A (en) Spatio-temporal data management method, system, host and computer readable storage medium
CN107688567B (en) Index storage method and related device
CN111782658A (en) Cross table processing method, cross table processing device, electronic equipment and storage medium
Weiss et al. Supercubes: A high-level primitive for diamond hierarchies
KR100527682B1 (en) Method for processing 3 dimensional geographical informations and system thereof
CN114723914B (en) GRID type DEM generation and organization method
CN116755627A (en) Spatial data storage method, spatial data storage device, computer equipment and storage medium
CN115937357A (en) Map drawing method and device for realizing multi-color dyeing of vector rule grids

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
GR01 Patent grant
GR01 Patent grant