Method for organizing vector geospatial data
By organizing and storing vector geospatial data in points, lines, and surfaces, the management problems caused by inconsistent data formats are solved, unified storage and management of data is realized, data structure is simplified, readability is enhanced and the performance is exerted. Spatial and topological information value.
Patent Information
- Application Number
- CN202411309815.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2024-12-20
AI Technical Summary
Due to the inconsistent data format, vector geospatial data cannot be stored in the same file, resulting in the inability to achieve unified management, affecting business processing efficiency.
Vector geospatial data is divided into three forms: points, lines, and surfaces, and is organized in the form of coordinate values and coded values. Point data is coordinate values and point coded values, and line data is indexed with line coded values and points on the line. Values, the face data are organized in the face coded value and the encoded index value of the points on the face, and are stored in the order of the encoded value. The unique encoded value and attribute value are set to be stored in the form of key-value pairs.
It realizes unified storage and management of vector spatial data, simplifies data structure, enhances readability, solves the problem of complex types of traditional geospatial data and makes full use of the value of spatial and topological information.
Abstract
Description
Technical Field
[0001] The invention relates to a method for organizing vector geographic spatial data, and belongs to the technical field of spatial data storage management. Background Art
[0002] After years of development, in the field of geographic information, vector geospatial data has emerged in a variety of data formats. As business needs increase, various types of data will become the raw data for providing services, which brings huge challenges to the server-side management and maintenance of these massive data in different formats and types. At the same time, spatial and topological relationships are the key characteristics that distinguish vector geospatial data from other data. When different vector geospatial data exist in different files, it is necessary to use the data in multiple files in a coordinated manner to realize business applications such as geospatial analysis, and unified management cannot be achieved, which in turn affects the processing efficiency of subsequent business. Summary of the invention
[0003] The purpose of the present invention is to provide a method for organizing vector geographic spatial data to solve the problem that the current vector geographic spatial data cannot be stored in the same file and cannot be managed uniformly due to the non-uniform data format.
[0004] The present invention provides a method for organizing vector geographic spatial data to solve the above technical problems. The method comprises the following steps:
[0005] Vector geographic spatial data is divided into three forms: point, line, and surface. Points are used to describe independent point targets or points on lines or surfaces, and are set with coordinate values and unique point code values; lines are used to describe linear objects, and are set with unique line code values; surfaces are used to describe planar objects, and are set with unique planar code values;
[0006] Point data is organized in the form of coordinate values and point code values, line data is organized in the form of line code values and code index values of points on the line, and surface data is organized in the form of surface code values and code index values of points on the surface.
[0007] Furthermore, the method stores data in the order of points, lines and surfaces, that is, the point data is arranged first, then the line data, and finally the surface data.
[0008] Furthermore, the points, lines and / or surfaces are also provided with corresponding attribute values for correspondingly describing the names and types of the points, lines and surfaces.
[0009] Furthermore, the attribute values of points, lines and surfaces are stored in the form of key-value pairs.
[0010] Furthermore, the code values of the points, lines and surfaces all start from 1, and each time a point, line or surface is added, the code value of the corresponding point, line or surface increases by 1.
[0011] Furthermore, the order of arrangement of the elements in each type of data is arranged in sequence according to the size of the encoding value.
[0012] Furthermore, the coding value of the point, line, or surface is for the entire life cycle, and each coding value belongs only to the corresponding point, line, or surface.
[0013] Furthermore, the last point and the first point of the surface are the same point.
[0014] The beneficial effects of the present invention are as follows: the present invention divides vector geographic spatial data into three forms: points, lines, and surfaces. Point data is organized in the form of coordinate values and point code values, line data is organized in the form of line code values and code index values of points on the line, and surface data is organized in the form of surface code values and code index values of points on the surface. Compared with the existing methods, the present invention adopts the above data organization method, which can store vector spatial data in the same file, and the data structure is concise, unified, and highly readable, thereby realizing unified management of all vector geographic spatial data, solving the problems of traditional geographic spatial data being numerous and difficult to manage; at the same time, managing and using all geographic spatial data through a single file helps to give full play to the value of spatial and topological information between vector geographic spatial data. DETAILED DESCRIPTION
[0015] The present invention divides vector geospatial data into three forms: points, lines, and surfaces. Point data is organized using the coordinate values, coding values, and attribute values of points; line data is organized using the coding values, attribute values, and coding index values of points on the line; and surface data is organized using the coding values, attribute values, and coding index values of points on the surface. Through this data organization method, vector spatial data can be stored in the same file, thereby achieving unified management of all vector geospatial data, solving the problems of traditional geospatial data being too diverse and difficult to manage; at the same time, all geospatial data can be managed and used through a single file, which helps to give full play to the value of spatial and topological information between vector geospatial data.
[0016] The first basic data form of vector geospatial data is point. Point is used to define independent point target, such as street lamp, electric pole, store, tree, etc. When representing independent point target, point should usually have attribute information, such as name, type, etc. It can also be used as the basic element of line or surface target, and multiple points form line or surface target. If it is not an independent target, such as just a point on a line or a point on a surface, it may not have attribute value. Therefore, point data is organized by point coordinate value, code value or coordinate value, code value and attribute value.
[0017] The second basic data form of vector geospatial data is line. Line is used to describe linear objects on the ground, such as roads and rivers. Line is composed of two or more points. The points that make up the line are arranged in order in the data file. These points define the shape of the line by connecting them in sequence when they are represented, and also express the direction of the line. The points that make up the line usually do not have attribute information, but special points can also have attribute information, such as stations in roads and sluice gates in rivers. For any line, it should at least have a code value, and the attribute value can also be set according to the actual situation. The attribute value is generally used to indicate the name and type of the line. Line data is organized using line code values and code index values of points on the line, or using line code values, attribute values, and code index values of points on the line. When the last point in a line is the same as the first point, it means that the line is a closed line, such as a roundabout; otherwise, it is an open line. When two lines intersect in the same plane, the two lines must share the same point, such as a road intersection; when two lines do not intersect in the same plane, they do not share the same point.
[0018] The third basic data form of vector geospatial data is face. Face is used to describe surface objects on the ground, such as parks, lakes, forests, etc. Face is composed of three or more non-collinear points. The points that make up the face are arranged in sequence in the data file. When representing, these points define the shape of the face by connecting them in sequence, and also express the direction of the face. The points that make up the face usually do not have attribute information, but special points can also have attribute information, such as the entrance of the park. For any face, it should at least have a coding value, and usually also have attribute information, such as name, type, etc. Therefore, face data is organized by face coding value and coding index value of face points, or by face coding value, attribute value and coding index value of face points. The last point of the face must be the same as the first point.
[0019] The code values of points, lines, and surfaces all start from 1. For each additional point, line, or surface in the file, the code value of the point, line, or surface increases by 1. Each point code value, line code value, and surface code value are unique, that is, each point has only one point code value, each point has only one point code value, each line has only one line code value, and each surface has only one surface code value. This code value will always accompany the entire life cycle of the point, line, or surface. After the information of the point, line, or surface is modified or deleted, the code value of the point, line, or surface is still only owned by the point, line, or surface, and will no longer be used by other points, lines, or surfaces. By assigning unique codes to points, lines, and surfaces throughout their life cycle, the unique identification of all vector geographic space minimum unit data can be achieved, which is convenient for data maintenance, tracing, and merging.
[0020] The organization method of points, lines, and surfaces in the file is to arrange point data first, then line data, and finally surface data. The arrangement order of each element in each type of data is in ascending order of the coding value.
[0021] The attribute information of points, lines, and surfaces is stored in the form of key-value pairs. A point, line, or surface can have multiple attribute information, that is, multiple key-value pairs. Storing the attribute values of points, lines, and surfaces in the form of key-value pairs can be applied to the expression of various attribute information and can store non-relational data.
[0022] An example of a complete vector space data is as follows:
[0023] <point code = "1" latitude = "30.430000" longitude = "121.390000">
[0024] <attribute key = "name" value = "bakery" / >
[0025] <attribute key = "type" value = "store" / >
[0026] < / point>
[0027] <point code = "4" latitude = "26.410000" longitude = "124.430000">
[0028] < / point>
[0029] <point code = "7" latitude = "26.410001" longitude = "124.430000">
[0030] < / point>
[0031] <point code = "14" latitude = "26.410002" longitude = "124.430002">
[0032] < / point>
[0033] <point code = "19" latitude = "26.420000" longitude = "124.450000">
[0034] < / point>
[0035] <point code = "123" latitude = "26.420003" longitude = "124.450000">
[0036] < / point>
[0037] <point code = "1456" latitude = "26.420000" longitude = "124.450003">
[0038] < / point>
[0039] <Point code = "1567" latitude = "26.420003" longitude = "124.450003">
[0040] < / Point>
[0041] <Line code = "1456">
[0042] <Node code index = "4" / >
[0043] <Node code index = "7" / >
[0044] <Node code index = "14" / >
[0045] <Attribute key = "road" value = "sidewalk" / >
[0046] < / Line>
[0047] <Face code = "19">
[0048] <Node code index = "19" / >
[0049] <Node code index = "123" / >
[0050] <Node code index = "1456" / >
[0051] <Node code index = "1567" / >
[0052] <Node code index = "19" / >
[0053] <Attribute key = "building" value = "office building" / >
[0054] < / Face>
[0055] Among them, the latitude and longitude in this embodiment are the latitude and longitude values in degrees under the CGCS2000 national geodetic coordinate system.
[0056] It can be seen that through the above-mentioned data organization form, the present invention can store the point, line and surface data constituting the vector geographic spatial data into one file in the same format. Compared with the existing vector geographic spatial data storage formats such as shapefile, geojson, kml, geopackage, etc., the present invention can store all vector spatial data in the same file, and the data structure is concise, unified and highly readable; unified management of all vector geographic spatial data is achieved through a single file, solving the problems of complex types and difficult management of traditional geographic spatial data, and is particularly suitable for the management of server-side vector data; at the same time, all geographic spatial data are managed and used through a single file, which is convenient for giving full play to the spatial and topological information value between vector geographic spatial data, and is also convenient for querying and retrieving spatial data through the coding values of points, lines and surfaces.
Claims
1. A method for organizing vector geographic spatial data, characterized in that: The method comprises the following steps: Vector geographic spatial data is divided into three forms: point, line, and surface. Points are used to describe independent point targets or points on lines or surfaces, and are set with coordinate values and unique point code values; lines are used to describe linear objects, and are set with unique line code values; surfaces are used to describe planar objects, and are set with unique planar code values; Point data is organized in the form of coordinate values and point code values, line data is organized in the form of line code values and code index values of points on the line, and surface data is organized in the form of surface code values and code index values of points on the surface.
2. The method for organizing vector geographic spatial data according to claim 1, characterized in that: This method stores data in the order of points, lines, and surfaces, that is, the point data is arranged first, then the line data, and finally the surface data.
3. The method for organizing vector geographic spatial data according to claim 1, characterized in that: The points, lines and / or surfaces are also provided with corresponding attribute values for correspondingly describing the names and types of the points, lines and surfaces.
4. The method for organizing vector geographic spatial data according to claim 3, characterized in that: The attribute values of points, lines, and surfaces are stored in the form of key-value pairs.
5. The method for organizing vector geographic spatial data according to claim 1, characterized in that: The code values of the points, lines and surfaces all start from 1, and each time a point, line or surface is added, the code value of the corresponding point, line or surface increases by 1.
6. The method for organizing vector geographic spatial data according to claim 1, characterized in that: The order of arrangement of each element in each type of data is arranged in sequence according to the size of the encoding value.
7. The method for organizing vector geographic spatial data according to any one of claims 1 to 6, characterized in that: The coding value of the point, line or surface is for the entire life cycle, and each coding value belongs only to the corresponding point, line or surface.
8. The method for organizing vector geographic spatial data according to claim 1, characterized in that: The last point of the face is the same as the first point.
Citation Information
Patent Citations
Land utilization vector data storage method based on main memory database Redis
CN104182472A
Airborne vector map data processing method
CN115687675A
