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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


