Surveying and mapping file archiving vector data detection method and device and terminal equipment
By acquiring and analyzing key information from the vector data of surveying and mapping archives, and using a constructor and layer reader for automated detection, the problem of low efficiency in the quality detection of surveying and mapping archives has been solved, and efficient quality control has been achieved.
Patent Information
- Application Number
- CN202111190481.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-13
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2041-10-13
AI Technical Summary
Existing technologies suffer from low efficiency and insufficient coverage in detecting the quality of vector data archived in surveying and mapping archives, making it difficult to effectively control the quality of archived data.
By acquiring key information about the archived vector data files to be inspected, including file type, layer information, and storage path, a constructor is used to build a workspace, and a layer reader reads the layer information to automatically read data, match layers, and stitch them together, thus automating the quality inspection process.
It improves the efficiency of quality inspection for surveying vector data archiving, enables effective control over the quality of surveying vector data archiving, and ensures the integrity and reliability of the data.
Smart Images

Figure CN113918568B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of information management technology, and in particular to a method, apparatus and terminal equipment for detecting vector data of surveying and mapping archives. Background Technology
[0002] With the rapid development of my country's surveying and mapping industry, the update frequency of surveying and mapping geographic information data has accelerated, leading to a sharp increase in the amount of archived surveying and mapping geographic information vector data. In the current archiving process, the highest number of vector maps archived for a single national-level surveying and mapping project reaches over 24,000, while a single provincial-level project can archive several thousand vector maps. The number of archived projects varies from dozens to hundreds per year. Current technology often relies on manual sampling for quality inspection of archived vector data from surveying and mapping projects. Due to limitations in personnel and time, the sampling rate is generally less than 10%, resulting in low efficiency in archiving quality inspection, insufficient coverage of vector data inspection, and difficulty in effectively controlling the quality of archived vector data. Summary of the Invention
[0003] To address the aforementioned technical problems, embodiments of this application provide a method, apparatus, and terminal device for detecting vector data in surveying and mapping archives.
[0004] In a first aspect, embodiments of this application provide a method for detecting vector data in surveying and mapping archives, the method comprising:
[0005] Obtain the archived vector data file to be detected;
[0006] Obtain key information of the archived vector data file to be detected, including file type, layer information, and storage path;
[0007] The quality of the archived vector data file to be tested is determined based on the key information of the file.
[0008] Optionally, detecting the quality of the archived vector data file to be detected based on its key information includes:
[0009] If the key information includes file type, a constructor builds a workspace that matches the archived vector data file to be detected based on the file type.
[0010] Determine whether the workspace is operating normally;
[0011] If the workspace cannot operate normally, the conclusion that the first vector data file is unusable is obtained, and the conclusion that the first vector data file is unusable is used as the quality inspection result of the archived vector data file to be inspected.
[0012] Optionally, detecting the quality of the archived vector data file to be detected based on its key information further includes:
[0013] If the key information also includes the layer information and the workspace is operating normally, determine whether there is any abnormal information when reading the layer information through the layer reader;
[0014] If no abnormal information is found when reading the layer information through the layer reader, the conclusion that the vector data file is usable is obtained, and the conclusion that the vector data file is usable is used as the quality detection result of the archived vector data file to be tested;
[0015] If abnormal information is found in the layer information of the archived vector data file to be tested when read by the layer reader, the conclusion that the second vector data file is unusable is obtained, and the conclusion that the second vector data file is unusable is used as the quality test result of the archived vector data file to be tested.
[0016] Optionally, detecting the quality of the archived vector data file to be detected based on its key information includes:
[0017] If the key information includes layer information, obtain a standard data template;
[0018] The layer information is matched with the layer names of the standard data template to obtain the set of missing layer names and the set of redundant layer names of the archived vector data file to be detected;
[0019] Detect whether each layer of the archived vector data file to be detected is an empty layer, and obtain the set of empty layer names of the archived vector data file to be detected.
[0020] The set of missing layer names, the set of redundant layer names, and the set of empty layer names are used as the quality detection results of the archived vector data file to be tested.
[0021] Optionally, the step of matching the layer information with the layer names of the standard data template to obtain the set of missing layer names and the set of redundant layer names of the archived vector data file to be detected includes:
[0022] A first layer set of the standard data template and a second layer set of the archived vector data file to be detected are constructed using a layer reader. The first layer set includes multiple layer names of the standard data template; the second layer set includes multiple layer names of the archived vector data file to be detected.
[0023] Determine the name of a first target layer that belongs to the first layer set but not to the second layer set, and determine the set of missing layer names based on the first target layer name;
[0024] Determine the name of the second target layer that belongs to the second layer set but not to the first layer set, and determine the set of redundant layer names based on the name of the second target layer.
[0025] Optionally, detecting the quality of the archived vector data file to be detected based on its key information includes:
[0026] If the key information includes layer information, a specific range of layers is determined from the layer information;
[0027] Determine the geometry type of the layer within the specified range;
[0028] When the geometry type of the specific range layer is a face type, all the geometric figures of the specific range layer are read by a record reader to generate a set of geometric figures of the specific range layer;
[0029] If the number of geometric shapes in the geometric shape set is less than or equal to the preset number of shapes, the geometric shapes in the geometric shape set are merged to obtain a geometrically merged shape.
[0030] If the number of geometric figures in the geometric figure set exceeds the preset number of figures, an abnormal warning message will be displayed, and the detection operation on the archived vector data file to be detected will be terminated.
[0031] If the merged geometric figure is a single geometric surface, the merged geometric figure is output to a range result vector file.
[0032] Optionally, detecting the quality of the archived vector data file to be detected based on its key information further includes:
[0033] If the geometry type of the layer within the specified range is not a face type, the detection operation on the archived vector data file to be detected will be terminated, and an abnormal warning message will be displayed.
[0034] Secondly, embodiments of this application provide a detection device for vector data of surveying and mapping archives, the device comprising:
[0035] The first acquisition module is used to acquire the archived vector data file to be detected;
[0036] The second acquisition module is used to acquire key information of the archived vector data file to be detected, including file type, layer information and storage path.
[0037] The detection module is used to detect the quality of the archived vector data file to be detected based on key information of the archived vector data file to be detected.
[0038] Thirdly, embodiments of this application provide a terminal device, including a memory and a processor. The memory is used to store a computer program, and the computer program executes the method for detecting surveying and mapping archive vector data provided in the first aspect when the processor is running.
[0039] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when run on a processor, executes the method for detecting surveying and mapping archived vector data provided in the first aspect.
[0040] The method for detecting archival vector data of surveying and mapping archives provided in this application obtains the archival vector data file to be detected; obtains key information of the archival vector data file to be detected, including file type, layer information and storage path; detects the quality of the archival vector data file to be detected based on the key information of the archival vector data file to be detected; and automates the archival quality check by using automatic data reading, layer matching and automatic stitching technology, which greatly improves the detection efficiency of archival quality of surveying and mapping vector data and realizes effective control of the archival quality of surveying and mapping vector data. Attached Figure Description
[0041] To more clearly illustrate the technical solutions of this application, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of this application and should not be considered as a limitation on the scope of protection of this application. In the various drawings, similar components are numbered similarly.
[0042] Figure 1 A flowchart illustrating a method for detecting vector data in surveying and mapping archives provided in an embodiment of this application is shown.
[0043] Figure 2 This paper illustrates a flowchart of step S103 of the method for detecting vector data in surveying and mapping archives provided in an embodiment of this application.
[0044] Figure 3 This paper shows another schematic flowchart of step S103 of the method for detecting vector data in surveying archives provided in an embodiment of this application;
[0045] Figure 4Another flowchart illustrating step S103 of the method for detecting vector data in surveying archives provided in this application embodiment is shown.
[0046] Figure 5 A schematic diagram of a device for detecting vector data of surveying archives provided in an embodiment of this application is shown. Detailed Implementation
[0047] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.
[0048] The components of the embodiments of this application described and illustrated in the accompanying drawings can be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of this application provided in the drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0049] In the following, the terms “comprising,” “having,” and their cognates, which may be used in various embodiments of this application, are intended only to indicate a particular feature, number, step, operation, element, component, or combination thereof, and should not be construed as excluding, firstly, the presence of one or more other features, numbers, steps, operations, elements, components, or combinations thereof, or adding the possibility of one or more features, numbers, steps, operations, elements, components, or combinations thereof.
[0050] Furthermore, the terms "first," "second," and "third" are used only to distinguish descriptions and should not be interpreted as indicating or implying relative importance.
[0051] Unless otherwise specified, all terms used herein (including technical and scientific terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of this application pertain. Terms (such as those defined in commonly used dictionaries) shall be interpreted as having the same meaning as in their contextual meaning in the relevant technical field and shall not be construed as having an idealized or overly formal meaning, unless clearly defined in the various embodiments of this application.
[0052] Example 1
[0053] This disclosure provides a method for detecting vector data in surveying and mapping archives.
[0054] For details, please refer to Figure 1 Methods for detecting vector data in surveying and mapping archives include:
[0055] Step S101: Obtain the archived vector data file to be detected.
[0056] In this embodiment, the archived vector data file to be detected can be a file database type (GDB), a personal database type (MDB), or a SHP file.
[0057] In this embodiment, a detection interface for the archiving quality of surveying vector data can be provided. The detection interface includes fields for inputting data to be inspected, fields for identifying the name of data to be checked, fields for the name of the range feature set, fields for the maximum number of range features, fields for template data, fields for parameter selection control, fields for result output path, a start check button, an exit button, and a detection status bar.
[0058] For example, in the "Data to be checked" input field, you can enter the storage path of the archived vector data file to be checked. The corresponding archived vector data file to be checked will be read based on the storage path. For example, the storage path can be set to "w:\2018036(Basic Geographic Information Database Update (2016))\2015 Topographic Mapping Results Data", the scope feature set name can be set to "CPM_MetadataA", and the template data storage path can be set to "Y:\2015 Topographic Mapping Results Data\E49\E49E001005\IndexDataFrame.gdb". In the parameter selection control area, select "Personal GeoDataBasw (MDB)" and "File GeoDataBase (GDB)" for the data type to be checked, and select "Missing Feature Set", "Empty Feature Set", and "Redundant Feature Set" for the error / omission type to check. In the "Result Output Path" field, set the result output path to "c:\users\lj\desktop\New Folder\test0524.mdb".
[0059] Step S102: Obtain key information of the archived vector data file to be detected, including file type, layer information and storage path.
[0060] In this embodiment, the file type includes file database type (GDB), personal database type (MDB), and shapefile (SHP) file, which can be determined based on the file extension of the archived vector data file to be detected. Layer information includes layer name and feature set information. The storage path is the path where the archived vector data file to be detected is stored.
[0061] Step S103: Detect the quality of the archived vector data file to be detected based on the key information of the archived vector data file to be detected.
[0062] In this embodiment, the quality inspection result of the archived vector data file to be inspected is obtained by assessing the availability, layer integrity, spatial range correctness and completeness of the vector data based on the key information of the archived vector data file to be inspected.
[0063] Optional, please refer to Figure 2 Step S103 includes:
[0064] Step S1031: If the key information includes file type, construct a workspace that matches the archived vector data file to be detected based on the file type using a constructor.
[0065] In this embodiment, different file types correspond to different constructors. For example, the constructor for GDB is a file database type workspace constructor; the constructor for MDB is a personal database type workspace constructor; and the constructor for SHP is an SHP file type workspace constructor.
[0066] Step S1032: Determine whether the workspace is operating normally.
[0067] In this embodiment, step S1032 specifically includes: determining whether the workspace can be initialized normally. If the workspace can be initialized normally, it indicates that the basic structure of the archived vector data file to be tested is not damaged and can be opened normally. If the workspace cannot be initialized normally, it indicates that the structure of the archived vector data file to be tested is damaged and the archived vector data file to be tested is unusable. Determining whether there is an abnormality when opening the archived vector data file to be tested in the workspace. If there is no abnormality, the workspace can be initialized normally, indicating that the basic structure of the data to be tested is not damaged and can be opened normally. If there is an abnormality, the file structure is damaged and the file is unusable.
[0068] Step S1033: If the workspace cannot operate normally, a conclusion is obtained that the first vector data file is unusable, and the conclusion that the first vector data file is unusable is used as the quality detection result of the archived vector data file to be tested.
[0069] In this embodiment, the quality inspection results of the archived vector data files to be inspected may include various information and can be displayed in document form. For example, the document of quality inspection results may include: 0 data items that cannot be opened normally; 5 data items with empty feature sets; 5 data items with redundant feature sets; 0 data items with missing feature sets; and 0 data items with abnormal feature sets. Detailed information is as follows: Data that cannot be opened normally.
[0070] There is an empty feature set data:
[0071] c:\users\lj\desktop\New Folder(2)\E49E011006\MainDataFrame.gdb;
[0072] c:\users\lj\desktop\New Folder(2)\E49E011007\MainDataFrame.gdb;
[0073] c:\users\lj\desktop\New Folder(2)\E49E011008\MainDataFrame.gdb;
[0074] c:\users\lj\desktop\New Folder(2)\E49E011006\MainDataFrame.gdb;
[0075] c:\users\lj\desktop\New Folder(2)\E49E011007\MainDataFrame.gdb;
[0076] There are redundant feature sets of data.
[0077] c:\users\lj\desktop\New Folder(2)\E49E011006\MainDataFrame.gdb;
[0078] c:\users\lj\desktop\New Folder(2)\E49E011007\MainDataFrame.gdb;
[0079] c:\users\lj\desktop\New Folder(2)\E49E011008\MainDataFrame.gdb;
[0080] c:\users\lj\desktop\New Folder(2)\E49E011006\MainDataFrame.gdb;
[0081] c:\users\lj\desktop\New Folder(2)\E49E011007\MainDataFrame.gdb;
[0082] The quality inspection results document also includes information such as missing feature set data and abnormal feature set data.
[0083] For quality inspection of archived vector data files with large amounts of data, the document containing the quality inspection results is also large. For example, the number of data that cannot be opened normally is 2; the number of data with empty feature sets is 9047; the number of data with redundant feature sets is 48443; the number of data with missing feature sets is 24222; and the number of data with abnormal feature sets is 0.
[0084] The details are as follows: Unable to open data normally:
[0085] w:\2018036(Basic Geographic Information Database Update (2016))\2015 Topographic Mapping Results Data\E49\E49E001005\IndexDataFrame.gdb;
[0086] The file is located at w:\2018036(Basic Geographic Information Database Update (2016))\2015 Topographic Mapping Results Data\E49\E49E001013\F48E003007\MainDataFrame.gdb. The quality inspection results document also includes data containing empty feature sets.
[0087] Optionally, step S103 further includes:
[0088] If the key information also includes the layer information and the workspace is operating normally, determine whether there is any abnormal information when reading the layer information through the layer reader;
[0089] If no abnormal information is found when reading the layer information through the layer reader, the conclusion that the vector data file is usable is obtained, and the conclusion that the vector data file is usable is used as the quality detection result of the archived vector data file to be tested;
[0090] If abnormal information is found in the layer information of the archived vector data file to be tested when read by the layer reader, the conclusion that the second vector data file is unusable is obtained, and the conclusion that the second vector data file is unusable is used as the quality test result of the archived vector data file to be tested.
[0091] In this embodiment, the archived vector data file to be tested generally consists of multiple layers. Even if the workspace can be opened normally, to ensure the archived vector data file is accessible, the layer information needs to be read using a layer reader, assuming the workspace is free of anomalies, to further guarantee the readability of the data content. In this embodiment, the layer reader is a unified data reading interface, with specific implementations provided by different workspace builders. The system checks for anomalies in layer reading; if no anomalies are found, the data is fully usable; otherwise, the file is unusable. In this embodiment, a normal result set can be written to the archived vector data file to be tested if the layers are normal, and an abnormal result set can be written to the archived vector data file to be tested if the layers are abnormal, and either a normal result set or an abnormal result set can be output.
[0092] Furthermore, the archiving of surveying vector data follows prescribed data organization standards, primarily reflected in the data directory storage structure. In this embodiment, the storage paths of each surveying vector data point can be used to determine whether the data organization meets the requirements based on the consistency and standardization of the storage paths, thereby completing the standardization check of the archived vector data organization.
[0093] Optional, please refer to Figure 3 Step S103 includes:
[0094] Step S1034: If the key information includes layer information, obtain a standard data template;
[0095] Step S1035: Match the layer information with the layer names of the standard data template to obtain the set of missing layer names and the set of redundant layer names of the archived vector data file to be detected;
[0096] Step S1036: Detect whether each layer of the archived vector data file to be detected is an empty layer, and obtain the set of empty layer names of the archived vector data file to be detected;
[0097] Step S1037: The set of missing layer names, the set of redundant layer names, and the set of empty layer names are used as the quality detection results of the archived vector data file to be detected.
[0098] Optionally, the step of matching the layer information with the layer names of the standard data template to obtain the set of missing layer names and the set of redundant layer names of the archived vector data file to be detected includes:
[0099] A first layer set of the standard data template and a second layer set of the archived vector data file to be detected are constructed using a layer reader. The first layer set includes multiple layer names of the standard data template; the second layer set includes multiple layer names of the archived vector data file to be detected.
[0100] Determine the name of a first target layer that belongs to the first layer set but not to the second layer set, and determine the set of missing layer names based on the first target layer name;
[0101] Determine the name of the second target layer that belongs to the second layer set but not to the first layer set, and determine the set of redundant layer names based on the name of the second target layer.
[0102] For example, in the interface for checking the archiving quality of surveying vector data, a standard data template is input. A layer name set A for the standard data template is constructed using a layer reader. Layer names must be strictly case-sensitive. The archived vector data file to be checked is read, and a layer name set B for the archived vector data file to be checked is constructed using a layer reader. Layer names must also be strictly case-sensitive. Using AB, a set of missing layer names R1 is obtained. Using BA, a set of redundant layer names R2 is obtained. The layer name set A is traversed. For each layer in layer name set A, the number of records in the layer is read using a record reader. When the number of records is 0, the layer name with 0 records is added to an empty layer name set E.
[0103] Optional, please refer to Figure 4 Step S103 includes:
[0104] Step S1038: If the key information includes layer information, determine a specific range of layers from the layer information;
[0105] Step S1039: Determine the geometry type of the specific range layer;
[0106] Step S10310: If the geometry type of the specific range layer is a face type, all the geometric figures of the specific range layer are read by a record reader to generate a set of geometric figures of the specific range layer;
[0107] Step S10311: If the number of geometric figures in the geometric figure set is less than or equal to the preset number of figures, the geometric figures in the geometric figure set are geometrically merged to obtain a geometrically merged figure.
[0108] Step S10312: If the geometric merged graphic is a single geometric surface, output the geometric merged graphic to a range result vector file;
[0109] Step S10313: If the number of geometric figures in the geometric figure set is greater than the preset number of figures, an abnormal warning message is displayed, and the detection operation on the archived vector data file to be detected is terminated.
[0110] Optionally, step S103 further includes:
[0111] If the geometry type of the layer within the specified range is not a face type, the detection operation on the archived vector data file to be detected will be terminated, and an abnormal warning message will be displayed.
[0112] In this embodiment, the user inputs the directory of the vector database to be queried in the interface for detecting the archiving quality of surveying vector data. Based on the user-specified vector data type, the user can search for vector data files of a specified type and add them to the data set C to be queried. The data set C is then traversed, and a specific range of layers L is read using a layer reader based on the specified layer name.
[0113] The geometry type of a specific range layer L is determined. If it is not a polygon, the detection operation on the archived vector data file to be detected is terminated, and an exception warning message is displayed, i.e., the loop is terminated and a warning is issued. Provided that the geometry type of the specific range layer L is a polygon, the geometry of all records in the specific range layer L is read by the record reader, forming a geometry set P of the current data unit's specific range layer L. The number of geometry in the geometry set P is determined. If the number of geometry in the geometry set P is not greater than 1000, a geometric union operation is performed on all geometry in the geometry set P to obtain a single geometric face S.
[0114] In this embodiment, the preset number of graphics is 1000, but other values are also acceptable and not limited here. When the total number of geometric figures in the geometric figure set P exceeds 1000, an error warning is displayed, and the detection operation on the archived vector data file to be detected is terminated. It should be noted that when the total number of geometric figures in the geometric figure set P exceeds 1000, the possibility of an input error in the range layer is extremely high. Generally, the range layer is composed of boundary layer features, and the number of boundary layer features in a single data unit generally does not exceed 200. Finally, the single geometric face S is added to the range result vector file F of all checked data.
[0115] It should be noted that the range result vector file is used to store a single geometric face, and one range result vector file contains multiple single geometric faces. For example, the range result vector file stores 100 single geometric faces.
[0116] The method for detecting archived vector data in surveying and mapping archives provided in this embodiment involves: acquiring the archived vector data file to be detected; acquiring key information of the archived vector data file to be detected, including file type, layer information, and storage path; and detecting the quality of the archived vector data file to be detected based on the key information. In this way, by employing automatic data reading, layer matching, and automatic merging technologies, the archiving quality check is automated, greatly improving the efficiency of detecting the archiving quality of surveying and mapping vector data, effectively controlling the archiving quality of surveying and mapping vector data, and effectively improving the reliability of the archiving quality of surveying and mapping vector data.
[0117] Example 2
[0118] Furthermore, embodiments of this disclosure provide a detection device for vector data of surveying and mapping archives.
[0119] For details, please refer to Figure 5 The detection device 500 for archiving vector data of surveying and mapping archives includes:
[0120] The first acquisition module 501 is used to acquire the archived vector data file to be detected;
[0121] The second acquisition module 502 is used to acquire key information of the archived vector data file to be detected, including file type, layer information and storage path.
[0122] The detection module 503 is used to detect the quality of the archived vector data file to be detected based on the key information of the archived vector data file to be detected.
[0123] Optionally, the detection module 503 is further configured to, when the key information includes a file type, construct a workspace matching the archived vector data file to be detected based on the file type using a constructor;
[0124] Determine whether the workspace is operating normally;
[0125] If the workspace cannot operate normally, the conclusion that the first vector data file is unusable is obtained, and the conclusion that the first vector data file is unusable is used as the quality inspection result of the archived vector data file to be inspected.
[0126] Optionally, the detection module 503 is further configured to determine whether there is any abnormal information when reading the layer information through the layer reader, provided that the key information also includes the layer information and the workspace is operating normally;
[0127] If no abnormal information is found when reading the layer information through the layer reader, the conclusion that the vector data file is usable is obtained, and the conclusion that the vector data file is usable is used as the quality detection result of the archived vector data file to be tested;
[0128] If abnormal information is found in the layer information of the archived vector data file to be tested when read by the layer reader, the conclusion that the second vector data file is unusable is obtained, and the conclusion that the second vector data file is unusable is used as the quality test result of the archived vector data file to be tested.
[0129] Optionally, the detection module 503 is further configured to obtain a standard data template when the key information includes layer information;
[0130] The layer information is matched with the layer names of the standard data template to obtain the set of missing layer names and the set of redundant layer names of the archived vector data file to be detected;
[0131] Detect whether each layer of the archived vector data file to be detected is an empty layer, and obtain the set of empty layer names of the archived vector data file to be detected.
[0132] The set of missing layer names, the set of redundant layer names, and the set of empty layer names are used as the quality detection results of the archived vector data file to be tested.
[0133] Optionally, the detection module 503 is further configured to construct a first layer set of the standard data template and a second layer set of the archived vector data file to be detected through a layer reader, wherein the first layer set includes multiple layer names of the standard data template; and the second layer set includes multiple layer names of the archived vector data file to be detected.
[0134] Determine the name of a first target layer that belongs to the first layer set but not to the second layer set, and determine the set of missing layer names based on the first target layer name;
[0135] Determine the name of the second target layer that belongs to the second layer set but not to the first layer set, and determine the set of redundant layer names based on the name of the second target layer.
[0136] Optionally, the detection module 503 is further configured to determine a specific range of layers from the layer information when the key information includes layer information;
[0137] Determine the geometry type of the layer within the specified range;
[0138] When the geometry type of the specific range layer is a face type, all the geometric figures of the specific range layer are read by a record reader to generate a set of geometric figures of the specific range layer;
[0139] If the number of geometric shapes in the geometric shape set is less than or equal to the preset number of shapes, the geometric shapes in the geometric shape set are merged to obtain a geometrically merged shape.
[0140] If the merged geometric figure is a single geometric surface, the merged geometric figure is output to a range result vector file;
[0141] If the number of geometric figures in the geometric figure set exceeds the preset number of figures, an abnormal warning message will be displayed, and the detection operation on the archived vector data file to be detected will be terminated.
[0142] Optionally, the detection module 503 is further configured to terminate the detection operation on the archived vector data file to be detected and display an abnormal warning message if the geometry type of the specific range layer is not a face type.
[0143] The detection device for archival vector data of surveying and mapping archives provided in this embodiment can realize the detection method for archival vector data of surveying and mapping archives shown in Embodiment 1, and achieve the corresponding technical effect. To avoid repetition, it will not be described again here.
[0144] Example 3
[0145] Furthermore, this disclosure provides a terminal device, including a memory and a processor. The memory stores a computer program, which, when run on the processor, executes the method for detecting surveying and mapping archive vector data provided in the above-described method embodiment 1.
[0146] The terminal device provided in this embodiment can implement the detection method for archival vector data of surveying and mapping archives shown in Embodiment 1, and achieve the corresponding technical effect. To avoid repetition, it will not be described again here.
[0147] Example 4
[0148] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method for detecting surveying and mapping archive vector data provided in Embodiment 1 above.
[0149] In this embodiment, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.
[0150] This embodiment provides a computer-readable storage medium that can be used for detecting vector data in surveying archives as shown in Embodiment 1. To avoid repetition, it will not be described again here.
[0151] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal that includes that element.
[0152] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0153] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A method for detecting vector data in surveying and mapping archives, characterized in that, The method includes: Obtain the archived vector data file to be detected; Obtain key information from the archived vector data file to be detected, including file type, layer information, and storage path; the layer information includes layer name and feature set. The quality of the archived vector data file to be tested is detected based on the key information of the archived vector data file to be tested. The process of detecting the quality of the archived vector data file to be detected based on key information of the file includes: If the key information includes layer information, obtain a standard data template; The layer information is matched with the layer names of the standard data template to obtain the set of missing layer names and the set of redundant layer names of the archived vector data file to be detected; Detect whether each layer of the archived vector data file to be detected is an empty layer, and obtain the set of empty layer names of the archived vector data file to be detected. The set of missing layer names, the set of redundant layer names, and the set of empty layer names are used as the quality detection results of the archived vector data file to be detected. The step of matching the layer information with the layer names of the standard data template to obtain the set of missing layer names and the set of redundant layer names of the archived vector data file to be detected includes: A first layer set of the standard data template and a second layer set of the archived vector data file to be detected are constructed using a layer reader. The first layer set includes multiple layer names of the standard data template; the second layer set includes multiple layer names of the archived vector data file to be detected; the layer names of the first layer set and the layer names of the second layer set are strictly case-sensitive. Determine the name of a first target layer that belongs to the first layer set but not to the second layer set, and determine the set of missing layer names based on the first target layer name; Determine the name of the second target layer that belongs to the second layer set but not to the first layer set, and determine the set of redundant layer names based on the name of the second target layer.
2. The method according to claim 1, characterized in that, The process of detecting the quality of the archived vector data file to be detected based on key information of the file includes: If the key information includes file type, a constructor builds a workspace that matches the archived vector data file to be detected based on the file type. Determine whether the workspace is operating normally; If the workspace cannot operate normally, the conclusion that the first vector data file is unusable is obtained, and the conclusion that the first vector data file is unusable is used as the quality inspection result of the archived vector data file to be inspected.
3. The method according to claim 2, characterized in that, The step of detecting the quality of the archived vector data file to be detected based on key information of the archived vector data file to be detected further includes: If the key information also includes the layer information and the workspace is operating normally, determine whether there is any abnormal information when reading the layer information using a layer reader; If no abnormal information is found when reading the layer information through the layer reader, the conclusion that the vector data file is usable is obtained, and the conclusion that the vector data file is usable is used as the quality detection result of the archived vector data file to be tested; If abnormal information is found in the layer information of the archived vector data file to be tested when read by the layer reader, the conclusion that the second vector data file is unusable is obtained, and the conclusion that the second vector data file is unusable is used as the quality test result of the archived vector data file to be tested.
4. The method according to claim 1, characterized in that, The process of detecting the quality of the archived vector data file to be detected based on key information of the file includes: If the key information includes layer information, a specific range of layers is determined from the layer information; Determine the geometry type of the layer within the specified range; When the geometry type of the specific range layer is a face type, all the geometric figures of the specific range layer are read by a record reader to generate a set of geometric figures of the specific range layer; If the number of geometric shapes in the geometric shape set is less than or equal to the preset number of shapes, the geometric shapes in the geometric shape set are merged to obtain a geometrically merged shape. If the merged geometric figure is a single geometric surface, the merged geometric figure is output to a range result vector file; If the number of geometric figures in the geometric figure set exceeds the preset number of figures, an abnormal warning message will be displayed, and the detection operation on the archived vector data file to be detected will be terminated.
5. The method according to claim 4, characterized in that, The step of detecting the quality of the archived vector data file to be detected based on key information of the archived vector data file to be detected further includes: If the geometry type of the layer within the specified range is not a face type, the detection operation on the archived vector data file to be detected will be terminated, and an abnormal warning message will be displayed.
6. A device for detecting vector data in surveying and mapping archives, characterized in that, The device includes: The first acquisition module is used to acquire the archived vector data file to be detected; The second acquisition module is used to acquire key information of the archived vector data file to be detected, including file type, layer information and storage path; the layer information includes layer name and feature set. The detection module is used to detect the quality of the archived vector data file to be detected based on the key information of the archived vector data file to be detected; The detection module is also used to obtain a standard data template when the key information includes layer information; The layer information is matched with the layer names of the standard data template to obtain the set of missing layer names and the set of redundant layer names of the archived vector data file to be detected; Detect whether each layer of the archived vector data file to be detected is an empty layer, and obtain the set of empty layer names of the archived vector data file to be detected. The set of missing layer names, the set of redundant layer names, and the set of empty layer names are used as the quality detection results of the archived vector data file to be detected. The detection module is further configured to construct a first layer set of the standard data template and a second layer set of the archived vector data file to be detected using a layer reader. The first layer set includes multiple layer names of the standard data template; the second layer set includes multiple layer names of the archived vector data file to be detected; the layer names of the first layer set and the layer names of the second layer set are strictly case-sensitive. Determine the name of a first target layer that belongs to the first layer set but not to the second layer set, and determine the set of missing layer names based on the first target layer name; Determine the name of the second target layer that belongs to the second layer set but not to the first layer set, and determine the set of redundant layer names based on the name of the second target layer.
7. A terminal device, characterized in that, The system includes a memory and a processor, wherein the memory stores a computer program that executes the method for detecting surveying and mapping archive vector data as described in any one of claims 1 to 5 when the processor is running.
8. A computer-readable storage medium, characterized in that, It stores a computer program that, when run on a processor, executes the method for detecting the vector data of the surveying archives as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Archive management method, device and system and medium
CN111143281A
Map data inspection method and computer readable storage medium
CN112115220A