Supercharge Your Innovation With Domain-Expert AI Agents!

Method and device for establishing spatial index file for vector elements

A spatial index and element technology, applied in database index, structured data retrieval, digital data information retrieval, etc., can solve problems such as long time

Active Publication Date: 2020-04-03
ACADEMY OF PLANNING & DESIGNING OF THE MINIST OF AGRI
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Therefore, the technical problem to be solved by the present invention is to overcome the defect that the extraction process of vector elements takes a long time in the prior art, thereby providing a method and device for establishing a spatial index file for vector elements

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 establishing spatial index file for vector elements
  • Method and device for establishing spatial index file for vector elements
  • Method and device for establishing spatial index file for vector elements

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] The first aspect of the embodiment of the present invention provides a method for creating a spatial index file for vector elements, such as figure 1 shown, including:

[0026] Step S10: Create a spatial index file according to the vector elements to be stored. In a specific embodiment, the vector elements to be stored are stored in a file in Shapfile format, and the location of the vector elements is recorded in the spatial index file. When querying, you only need to query the required vector elements according to the location of the vector elements in the spatial index file.

[0027] Step S20: Establish a spatial grid according to the data range of the vector elements, wherein the spatial grid includes multiple sub-grids. In a specific embodiment, the number and size of the sub-grids in the spatial grid can be adjusted according to actual needs.

[0028] Step S30: Establish an element offset attribute table according to the subgrid, and the element offset attribute ...

Embodiment 2

[0053] This embodiment provides a device for creating a spatial index file for vector elements, such as Figure 7 shown, including:

[0054] The spatial index file creation module 10 is configured to create a spatial index file according to the vector elements to be stored. For a detailed description, refer to the description of step S10 in Embodiment 1 above.

[0055] The spatial grid building module 20 is configured to create a spatial grid for the file according to the data range of the vector elements, wherein the spatial grid includes multiple sub-grid elements, and for detailed description, see the description of step S20 in the first embodiment above.

[0056] The element offset attribute table building module 30 is used to establish an element offset attribute table according to the sub-grid. The element offset attribute table is used to represent the element offset of the position of the vector element in the index file. See the above implementation for detailed descr...

Embodiment 3

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

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

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

[0063] 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 th...

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 provides a method and device for establishing a spatial index file for vector elements. The method for establishing a spatial index file for vector elements comprises the steps: establishing a spatial index file according to the vector elements to be stored; establishing a space grid according to the data range of the vector elements, wherein the space grid comprises a plurality of sub-grids; establishing an element offset attribute table according to the sub-grids, wherein the element offset attribute table comprises element offsets used for representing the positions of the vector elements in the spatial index file; and packaging and storing the spatial index file, the spatial grid and the element offset attribute table. Vector elements are stored through the storage method, and then when subsequently, the vector elements are extracted, only the spatial index file needs to be searched according to the offset in the element offset attribute table, and the required vectorelements are extracted through the spatial index file, and the method for establishing the spatial index file for vector elements lays a foundation for subsequent quick query of the vector elements.

Description

technical field [0001] The invention relates to the technical field of geographic information processing, in particular to a method and device for establishing a spatial index file for vector elements. 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 construction of grain production functional areas and important agricultural product production protection areas. In the actual operation process, in order to effectively standardize the content and form of database results, effective inspection The conformity of the database results to the norms requires quality inspection of the demarcation results 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...

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): G06F16/29G06F16/22G06F16/2453
CPCG06F16/22G06F16/2453G06F16/29
Inventor 许家俊石智峰裴志远胡华浪赵春梅王英伟林国添李剑波
Owner ACADEMY OF PLANNING & DESIGNING OF THE MINIST OF AGRI
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More