Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for high-speed reading and writing of vector elements in shapfile

A technology of elements and vectors, applied in the field of geographic information processing, can solve problems such as slow reading speed, and achieve the effect of low memory usage and high efficiency

Active Publication Date: 2021-08-17
ACADEMY OF PLANNING & DESIGNING OF THE MINIST OF AGRI
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Therefore, the technical problem to be solved in the present invention is to overcome the relatively slow reading speed of the vector elements in the Shapfile in the prior art, thereby providing a method and device for high-speed reading and writing of the vector elements in the Shapfile

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 and device for high-speed reading and writing of vector elements in shapfile
  • Method and device for high-speed reading and writing of vector elements in shapfile
  • Method and device for high-speed reading and writing of vector elements in shapfile

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] The first aspect of the embodiment of the present invention provides a method for storing vector elements, such as figure 1 shown, including:

[0031] Step S10: Establish a data buffer, which includes: multiple storage spaces for storing vector elements, and a pointer to indicate the address of the storage space, such as Figure 2a As shown, when the data buffer is established, there will be a certain space capacity. In the embodiment of the present invention, the space capacity (capacity) is 10 bytes as an example, that is, the storage space is 10 bytes, and it is not stored in the buffer. When storing data, the pointer position (position) points to the first storage space, that is, the value of position at this time is 0, and in the data buffer, the amount of free space or the amount to be read in the data buffer is indicated by the limit (limit) The amount of data. When no data is stored in the buffer, the limit value is 10.

[0032] Step S20: Write the vector elem...

Embodiment 2

[0061] This embodiment provides a device for high-speed reading and writing of vector elements in Shapfile, such as Figure 8 shown, including:

[0062] The data buffer building module 10 is used to set up the data buffer. The data buffer includes: a plurality of storage spaces for storing vector elements, and a pointer to indicate the address of the storage space. See the above-mentioned embodiment 1 for a detailed description. Description of Step S10.

[0063] The vector element extraction module 20 is used to write the vector elements in the Shapfile to be read in the storage space in sequence; the pointer always points to the first storage space that does not store the vector elements, as described in the above-mentioned embodiment 1. Description of step S20.

[0064] The vector element reading module 30 is configured to read the vector element according to the data buffer. For a detailed description, refer to the description of step S30 in Embodiment 1 above.

[0065] ...

Embodiment 3

[0071] The embodiment of the present invention also provides a computer device, such as Figure 9 As shown, the computer device mainly includes one or more processors 51 and memory 52, Figure 9 A processor 51 is taken as an example.

[0072] The computer device may also include: an input device 53 and an output device 54 .

[0073] Processor 51, memory 52, input device 53 and output device 54 can be connected by bus or other ways, Figure 9 Take connection via bus as an example.

[0074]The processor 51 may be a central processing unit (Central Processing Unit, CPU). Processor 51 can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or Other chips such as programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of the...

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 present invention provides a method and device for high-speed reading and writing of vector elements in a Shapfile, wherein the method includes: establishing a data buffer, the data buffer includes: multiple storage spaces for storing vector elements, and for indicating Pointer to the address of the storage space; write the vector elements in the Shapfile to be read into the storage space in sequence; the pointer always points to the first storage space where the vector elements are not stored; read the vector elements according to the data buffer; create a space according to the vector elements Index file; establish a spatial grid according to the data range of the vector element, wherein the spatial grid includes multiple sub-grids; establish an element offset attribute table according to the sub-grid, and the element offset attribute table includes a spatial index used to represent the vector element The feature offset of the position in the file; store the spatial index file, spatial grid and feature offset attribute table in a package. This method is more efficient and consumes less memory when reading the vector elements in the Shapfile.

Description

technical field [0001] The invention relates to the technical field of geographic information processing, in particular to a method and device for high-speed reading and writing of vector elements in a Shapfile. Background technique [0002] The Ministry of Agriculture and Rural Affairs has promulgated and implemented the technical regulations, database specifications, database construction guidelines, and collection and submission methods for the investigation and database construction of grain production functional areas and important agricultural product production protection areas. To check the compliance of the results with the norms, it is necessary to conduct quality inspections on the results of the delineation of grain production functional areas and important agricultural product production protection areas. In the checking process, one of them is to check the geographic data, so the geographic features need to be extracted from the data results first. As a kind o...

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 Patents(China)
IPC IPC(8): G06F16/2455G06F16/22G06F16/29
CPCG06F16/2228G06F16/2282G06F16/24552G06F16/29
Inventor 许家俊石智峰裴志远胡华浪刘海启赵春梅陶双华
Owner ACADEMY OF PLANNING & DESIGNING OF THE MINIST OF AGRI