Area feature file conversion, device, computer equipment and readable storage medium

By extracting and processing vector line data and text data in polygon feature files, a new format polygon feature file is constructed and defined, which solves the problems of low conversion efficiency and poor accuracy of polygon feature files in the existing technology, and realizes efficient and accurate polygon feature files. File conversion.

CN114461597BActive Publication Date: 2024-10-18AERIAL PHOTOGRAMMETRY & REMOTE SENSING CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210132176.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-14
Publication Date
2024-10-18
Estimated Expiration
2042-02-14

AI Technical Summary

Technical Problem

Existing polygon feature files require manual confirmation of topological relationships and attribute definitions during format conversion, resulting in low conversion efficiency and inaccuracy.

Method used

By extracting vector line data, annotation text data and road centerline data, perform preset vector linear topology processing to construct initial polygon features, and generate new format polygon feature files based on these data definition attributes to filter out polygon features with incorrect topological relationships. Repeat processing of error polygon features until correct.

Benefits of technology

It improves the conversion efficiency of polygon feature files, ensures the accuracy of converted files, and reduces manual intervention and the number of incorrect polygon features.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114461597B_ABST
    Figure CN114461597B_ABST
Patent Text Reader

Abstract

The present invention provides a surface element file conversion, device, computer equipment and readable storage medium. The surface element file conversion method includes: obtaining a first format surface element file, extracting vector line data, annotation text data and road centerline data from the first format surface element file; performing preset vector linearization topology processing on the vector line data to obtain processed vector line data; using the processed vector line data to construct an initial surface element, and superimposing the corresponding annotation text data and road centerline data to the initial surface element to obtain a newly created surface element; defining and distinguishing the attributes of each newly created surface element according to the annotation text data and / or the road centerline data, and generating a second format surface element file. The present invention can improve the conversion efficiency of the surface element file, and can quickly define and distinguish the attributes of the newly created surface element according to the extracted annotation text data and road centerline data, thereby ensuring the accuracy of the converted surface element file.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data conversion, and in particular to a face element file conversion device, a computer device and a readable storage medium. Background Art

[0002] When converting the format of existing surface feature files, it is necessary to manually confirm whether the topological relationship of the surface features is correct and to distinguish and define the attributes of the surface features during the conversion process. Therefore, the conversion efficiency of the surface feature files is very low. Summary of the invention

[0003] In view of the above problems, the present invention provides a face element file conversion, apparatus, computer device and readable storage medium to improve the conversion efficiency of face element files and ensure the accuracy of the converted face element files.

[0004] In order to achieve the above object, the present invention adopts the following technical solution:

[0005] A method for converting a surface feature file, comprising:

[0006] Acquire a first format surface element file, and extract vector line data, annotation text data, and road centerline data from the first format surface element file;

[0007] Performing preset vector line topology processing on the vector line data to obtain processed vector line data;

[0008] Using the processed vector line data to construct an initial surface element, and superimposing the corresponding annotation text data and the road centerline data onto the initial surface element to obtain a newly created surface element;

[0009] The attributes of each newly created area element are defined and distinguished according to the annotation text data and / or the road centerline data, and a second format area element file is generated.

[0010] Preferably, the face element file conversion method further includes:

[0011] After the newly created surface elements are acquired, erroneous surface elements with wrong topological relationships are screened out from the newly created surface elements according to the annotated text data, the number of road centerlines and preset screening rules.

[0012] Preferably, in the face element file conversion method, the step of filtering out erroneous face elements with topological errors from the newly created face elements according to the annotated text data, the number of road centerlines and preset screening rules comprises:

[0013] Screening out the area elements containing the labeled text data whose quantity is greater than a first preset value from the newly created area elements;

[0014] Area elements containing road centerline data whose number is greater than a second preset value are filtered out from the newly created area elements.

[0015] Preferably, the face element file conversion method further includes:

[0016] The corresponding vector line data of the erroneous surface element is obtained, and the process returns to the step of performing preset vector linear topology processing on the vector line data.

[0017] Preferably, the face element file conversion method further includes:

[0018] The number of times the error surface element returns to the preset vector linearization topology processing is recorded, and when the number is greater than or equal to the preset number, the error surface element is exported as an error surface element file in a first format.

[0019] Preferably, in the surface feature file conversion method, the preset vector linearization topology processing of the vector line data includes at least one of clearing tolerances, calculating actual intersections, calculating virtual intersections, correcting deficiencies, thinning lines, deleting dangling lines, deleting short geometric objects, deleting duplicate geometric objects, connecting geometric objects, merging geometric objects, and cleaning surface geometric objects.

[0020] Preferably, in the surface feature file conversion method, the surface feature file in the first format is a surface feature file in a DGN format, and the surface feature file in the second format is a surface feature file in a Personal Geodatabase format.

[0021] The present invention also provides a device for converting a face element file, comprising:

[0022] A file acquisition module, used to acquire a first format surface element file, and extract vector line data, annotation text data and road centerline data from the first format surface element file;

[0023] A topology processing module, used for performing preset vector line topology processing on the vector line data to obtain processed vector line data;

[0024] A surface element construction module, used to construct an initial surface element using the processed vector line data, and superimpose the corresponding annotation text data and the road centerline data onto the initial surface element to obtain a newly created surface element;

[0025] The file output module is used to define and distinguish the attributes of each newly created surface element according to the annotation text data and / or the road centerline data, and generate a second format surface element file.

[0026] The present invention also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program runs on the processor, the face element file conversion method is executed.

[0027] The present invention also provides a readable storage medium storing a computer program, wherein the computer program executes the face element file conversion method when running on a processor.

[0028] The present invention provides a method for converting a surface element file, which comprises: obtaining a surface element file in a first format, extracting vector line data, annotation text data, and road centerline data from the surface element file in the first format; performing preset vector linearization topological processing on the vector line data to obtain processed vector line data; using the processed vector line data to construct an initial surface element, and superimposing the corresponding annotation text data and the road centerline data to the initial surface element to obtain a newly created surface element; defining and distinguishing the attributes of each newly created surface element according to the annotation text data and / or the road centerline data, and generating a surface element file in a second format. The surface element file conversion method of the present invention can quickly establish and generate a corresponding surface element file in a second format by extracting vector data from the surface element file in the first format and performing topological processing, thereby improving the conversion efficiency of the surface element file, and can quickly define and distinguish the attributes of the newly created surface element according to the extracted annotation text data and road centerline data, thereby ensuring the accuracy of the converted surface element file.

[0029] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solution of the present invention, the following will briefly introduce the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope of protection of the present invention. In each of the drawings, similar components are numbered similarly.

[0031] Figure 1 is a flow chart of a method for converting a face element file provided in Embodiment 1 of the present invention;

[0032] Figure 2 is a flow chart of a method for converting a face element file provided in Embodiment 2 of the present invention;

[0033] Figure 3 This is a flow chart of filtering out erroneous surface elements provided by Embodiment 2 of the present invention;

[0034] Figure 4is a flow chart of a method for converting a face element file provided in Embodiment 3 of the present invention;

[0035] Figure 5 is a flow chart of another method for converting a face element file provided in Embodiment 3 of the present invention;

[0036] Figure 6 It is a structural schematic diagram of a face element file conversion device provided in Example 4 of the present invention. DETAILED DESCRIPTION

[0037] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0038] The components of the embodiments of the present invention generally described and shown in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0039] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present invention, are intended only to indicate specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or adding the possibility of one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items.

[0040] Furthermore, the terms “first”, “second”, “third”, etc. are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.

[0041] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present invention belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present invention.

[0042] Example 1

[0043] Figure 1 : is a flow chart of a method for converting a face element file provided in Example 1 of the present invention, the method comprising the following steps:

[0044] Step S11: Acquire a first format surface element file, and extract vector line data, annotation text data, and road centerline data from the first format surface element file.

[0045] In the embodiment of the present invention, the FME system can be run by a computer device to obtain the first format surface element file by using the FME system, that is, the user can input the first format surface element file into the FME system. The FME system is Feature Manipulate Engine, which is a spatial data conversion processing system developed by Safe Software, Canada. By running the extraction application in the FME system, the corresponding vector line data, annotation text data and road centerline data can be extracted from the first format surface element file.

[0046] In the embodiment of the present invention, the first format surface element file is a DGN format surface element file, and the second format surface element file is a PersonalGeodatabase format surface element file. The semantic mapping program FME Workbench in the FME system can be used to select a converter that converts the DGN format into the PersonalGeodatabase format in the FME Workbench.

[0047] Step S12: performing preset vector line topology processing on the vector line data to obtain processed vector line data.

[0048] In an embodiment of the present invention, an application based on the above-mentioned preset vector line topology processing may be provided in a computer device, and after the vector line data is extracted from the first format surface element file, it may be input into the application to obtain the processed vector line data.

[0049] In an embodiment of the present invention, the preset vector line topology processing of the vector line data includes at least one of clearing tolerance, calculating actual intersections, calculating virtual intersections, correcting deficiencies, thinning lines, deleting dangling lines, deleting short geometric objects, deleting duplicate geometric objects, connecting geometric objects, merging geometric objects, and clearing surface geometric objects.

[0050] In the embodiment of the present invention, the above-mentioned various vector linear topology processing processes can also be completed by using the FME system, for example, the MRF2DCleaner module, a line feature geometry repair tool in the FME system, can be used to perform the above-mentioned various vector linear topology processing. The MRF2DCleaner module is a data geometry processing module encapsulated in the FME system, which provides users with the above-mentioned vector linear topology processing options and related parameter settings.

[0051] Step S13: constructing an initial surface element using the processed vector line data, and superimposing the corresponding annotation text data and the road centerline data onto the initial surface element to obtain a newly constructed surface element.

[0052] In an embodiment of the present invention, after the vector line data is subjected to the above-mentioned vector line topological processing, the processed vector line data can be used to re-establish the initial area element. Specifically, the processed vector line data can be used to re-establish the initial area element through the AreaBuilder parameter module in the FME system. The corresponding annotation text data and the road centerline data in the first format area element file are superimposed on the initial area element to obtain a newly created area element. Among them, the process of superimposing the corresponding annotation text data and the road centerline data in the first format area element file can be implemented by using an algorithm or an application program, which is not limited here.

[0053] Step S14: defining and distinguishing the attributes of each newly created surface element according to the annotation text data and / or the road centerline data, and generating a second format surface element file.

[0054] In an embodiment of the present invention, after the newly created surface elements are obtained, the attributes of each newly created surface element can be defined according to the annotation text data and / or the road centerline data in the first format surface element file, so that the attributes of the newly created surface elements can be quickly distinguished according to the annotation text data and / or the road centerline data.

[0055] In an embodiment of the present invention, by extracting vector data from a first-format surface feature file and performing topological processing, a corresponding second-format surface feature file can be quickly established and generated, thereby improving the conversion efficiency of the surface feature file, and, based on the extracted annotation text data and road centerline data, the attributes of the newly created surface features can be quickly defined and distinguished, thereby ensuring the accuracy of the converted surface feature file.

[0056] Example 2

[0057] Figure 2 : is a flow chart of a method for converting a face element file provided by Embodiment 2 of the present invention, the method comprising the following steps:

[0058] Step S21: Obtain a first format surface element file, and extract vector line data, annotation text data, and road centerline data from the first format surface element file.

[0059] This step is consistent with the above step S11 and will not be described again here.

[0060] Step S22: performing preset vector line topology processing on the vector line data to obtain processed vector line data.

[0061] This step is consistent with the above step S12 and will not be repeated here.

[0062] Step S23: constructing an initial surface element using the processed vector line data, and superimposing the corresponding annotation text data and the road centerline data onto the initial surface element to obtain a newly constructed surface element.

[0063] This step is consistent with the above step S13 and will not be repeated here.

[0064] Step S24: defining and distinguishing the attributes of each newly created surface element according to the annotation text data and / or the road centerline data, and generating a second format surface element file.

[0065] This step is consistent with the above step S14 and will not be repeated here.

[0066] Step S25: After the newly created surface elements are acquired, erroneous surface elements with incorrect topological relationships are screened out from the newly created surface elements according to the annotated text data, the number of road centerlines and preset screening rules.

[0067] In an embodiment of the present invention, an application based on preset screening rules may be provided in a computer device. After acquiring a newly created face element, the newly created face element and the corresponding annotation text data and the number of road center lines may be input into the application, thereby screening out face elements with incorrect topological relationships in the newly created face elements, which are the above-mentioned erroneous face elements.

[0068] Figure 3 This is a flowchart of filtering out erroneous surface elements provided by Embodiment 2 of the present invention, comprising the following steps:

[0069] Step S31: Filter out the area elements containing the labeled text data whose quantity is greater than a first preset value from the newly created area elements.

[0070] Step S32: Filter out the area elements containing the road centerline data whose number is greater than a second preset value from the newly created area elements.

[0071] Example 3

[0072] Figure 4 : is a flow chart of a method for converting a face element file provided by Embodiment 3 of the present invention, the method comprising the following steps:

[0073] Step S41: Obtain a first format surface element file, and extract vector line data, annotation text data, and road centerline data from the first format surface element file.

[0074] This step is consistent with the above step S11 and will not be described again here.

[0075] Step S42: performing preset vector line topology processing on the vector line data to obtain processed vector line data.

[0076] This step is consistent with the above step S12 and will not be repeated here.

[0077] Step S43: constructing an initial surface element using the processed vector line data, and superimposing the corresponding annotation text data and the road centerline data onto the initial surface element to obtain a newly constructed surface element.

[0078] This step is consistent with the above step S13 and will not be repeated here.

[0079] Step S44: defining and distinguishing the attributes of each newly created surface element according to the annotation text data and / or the road centerline data, and generating a second format surface element file.

[0080] This step is consistent with the above step S14 and will not be repeated here.

[0081] Step S45: After acquiring the newly created surface elements, filter out erroneous surface elements with incorrect topological relationships from the newly created surface elements according to the annotated text data, the number of road centerlines and preset screening rules.

[0082] This step is consistent with the above step S25 and will not be repeated here.

[0083] Step S46: Acquire the corresponding vector line data of the erroneous surface element, and return to the step of performing preset vector line topology processing on the vector line data.

[0084] In the embodiment of the present invention, for the erroneous surface element, the corresponding vector line data in the first format surface element file can be re-acquired, and the step of pre-setting the vector line topology processing can be returned, and the corresponding new surface element can be re-established after the topology processing. For the re-established new surface element, the topological relationship is detected again until the corresponding new surface element with the correct topological relationship is established.

[0085] Figure 5 : is a flowchart of another method for converting a face element file provided by Embodiment 3 of the present invention, the method further comprising the following steps:

[0086] Step S47: recording the number of times the erroneous surface element returns to the preset vector linearization topology processing, and when the number is greater than or equal to the preset number, exporting the erroneous surface element as an erroneous surface element file in a first format.

[0087] In an embodiment of the present invention, if a newly-created face element that has been re-established multiple times is still an erroneous face element after a preset number of times, the erroneous face element can be exported as an erroneous face element file in a first format, so that a user can manually check the erroneous face element file and make corresponding modifications, and then convert it into a face element file in a second format after the modification.

[0088] Example 4

[0089] Figure 6 It is a structural schematic diagram of a face element file conversion device provided in Example 4 of the present invention.

[0090] The face element file conversion device 600 comprises:

[0091] The file acquisition module 610 is used to acquire a first format surface element file, and extract vector line data, annotation text data and road centerline data from the first format surface element file;

[0092] A topology processing module 620 is used to perform preset vector line topology processing on the vector line data to obtain processed vector line data;

[0093] A surface element construction module 630 is used to construct an initial surface element using the processed vector line data, and to superimpose the corresponding annotation text data and the road centerline data onto the initial surface element to obtain a newly constructed surface element;

[0094] The file output module 640 is used to define and distinguish the attributes of each newly created surface element according to the annotation text data and / or the road centerline data, and generate a second format surface element file.

[0095] In the embodiment of the present invention, a more detailed functional description of each of the above modules can be referred to the corresponding parts of the aforementioned embodiment, which will not be repeated here.

[0096] In addition, the present invention also provides a computer device, which may include a smart phone, a tablet computer, a car computer, a smart wearable device, etc. The computer device includes a memory and a processor, the memory can be used to store a computer program, and the processor runs the computer program, so that the computer device executes the functions of each module in the above method or the above face element file conversion device.

[0097] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device (such as audio data, a phone book, etc.), etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0098] This embodiment also provides a computer storage medium for storing a computer program used in the above-mentioned computer device.

[0099] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow chart, and the combination of boxes in the structure diagram and / or the flow chart, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0100] In addition, the functional modules or units in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0101] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0102] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for converting a surface feature file, It is characterized in that include: Acquire a first format surface element file, and extract vector line data, annotation text data, and road centerline data from the first format surface element file; the first format surface element file is a DGN format surface element file; Performing preset vector linear topology processing on the vector line data to obtain processed vector line data; performing preset vector linear topology processing on the vector line data includes at least one of clearing tolerance, calculating actual intersections, calculating virtual intersections, correcting deficiencies, thinning lines, deleting dangling lines, deleting short geometric objects, deleting duplicate geometric objects, connecting geometric objects, merging geometric objects, and clearing surface geometric objects; Using the processed vector line data to construct an initial surface element, and superimposing the corresponding annotation text data and the road centerline data onto the initial surface element to obtain a newly created surface element; Defining and distinguishing the attributes of each newly created area element according to the annotation text data and / or the road centerline data, generating a second format area element file; the second format area element file is a PersonalGeodatabase format area element file; After the newly created surface elements are acquired, erroneous surface elements with wrong topological relationships are screened out from the newly created surface elements according to the annotated text data, the number of road centerlines and preset screening rules.

2. The method for converting a face element file according to claim 1, It is characterized in that The step of filtering out erroneous surface elements with topological errors from the newly created surface elements according to the annotated text data, the number of road centerlines and preset screening rules includes: Screening out the area elements containing the labeled text data whose quantity is greater than a first preset value from the newly created area elements; Area elements containing road centerline data whose number is greater than a second preset value are filtered out from the newly created area elements.

3. The method for converting a face element file according to claim 1, It is characterized in that Also includes: The corresponding vector line data of the erroneous surface element is obtained, and the process returns to the step of performing preset vector linear topology processing on the vector line data.

4. The method for converting a surface element file according to claim 3, It is characterized in that Also includes: The number of times the error surface element returns to the preset vector linearization topology processing is recorded, and when the number is greater than or equal to the preset number, the error surface element is exported as an error surface element file in a first format.

5. A device for converting a face element file, It is characterized in that include: A file acquisition module is used to acquire a first format surface element file, and extract vector line data, annotation text data and road centerline data from the first format surface element file; the first format surface element file is a DGN format surface element file; A topology processing module is used to perform preset vector linearization topology processing on the vector line data to obtain processed vector line data; the preset vector linearization topology processing on the vector line data includes at least one of clearing tolerance, calculating actual intersections, calculating virtual intersections, correcting deficiencies, thinning lines, deleting dangling lines, deleting short geometric objects, deleting duplicate geometric objects, connecting geometric objects, merging geometric objects, and clearing surface geometric objects; A surface element construction module, used to construct an initial surface element using the processed vector line data, and to superimpose the corresponding annotation text data and the road centerline data onto the initial surface element to obtain a newly created surface element; A file output module is used to define and distinguish the attributes of each newly created surface element according to the annotation text data and / or the road centerline data, and generate a second format surface element file; the second format surface element file is a PersonalGeodatabase format surface element file; After the newly created surface elements are acquired, erroneous surface elements with wrong topological relationships are screened out from the newly created surface elements according to the annotated text data, the number of road centerlines and preset screening rules.

6. A computer device, It is characterized in that The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is run on the processor, the method for converting a face element file according to any one of claims 1 to 4 is executed.

7. A readable storage medium, It is characterized in that The computer program stores a computer program, which executes the face element file conversion method according to any one of claims 1 to 4 when running on a processor.

Citation Information

Patent Citations

  • Vector data concurrent conversion method from VCT file to shapefile file

    CN103678705A

  • Vector file conversion method and device based on MapReduce

    CN107544948A