Automatic conversion method and system for CAD and GIS data of highway route design

By using the FME system to automatically process highway route design CAD files, the cumbersome manual operation and data quality problems in the existing technology are solved, and the full-factor automatic conversion of CAD files to GIS data is realized, which improves efficiency and quality.

CN119903576APending Publication Date: 2025-04-29XINJIANG TRANSPORTATION PLANNING SURVEYING & DESIGN INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411905158.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

In the prior art, when converting the highway route design CAD files into GIS data, a large amount of manual operations are required, resulting in large workloads, low efficiency, and easy data quality problems.

Method used

The spatial data conversion processing system FME is used to automatically convert all-factors of highway route design CAD files to GIS data, including obtaining CAD files, analyzing feature layers, loading data to FME, performing automated data processing, outputting GIS data files and performing quality inspections.

Benefits of technology

It realizes the full-factor automatic conversion of highway route design CAD files to GIS data, reduces manual operations, improves data processing efficiency and quality, and opens up the conversion channel between CAD and GIS data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119903576A_ABST
    Figure CN119903576A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of traffic geospatial data management, and particularly relates to an automatic conversion method and system for highway route design CAD and GIS data, and the method comprises the steps: obtaining a highway route design CAD file; analyzing the obtained CAD file, and determining a layer corresponding to the to-be-converted element; adding a reading module in a spatial data conversion processing system FME, and loading a CAD file and a layer corresponding to an element to be converted based on the added reading module; the spatial data conversion processing system performs automatic data processing on the road line design CAD file to obtain a GIS data file; and checking the obtained GIS data file, and completing automatic conversion between the CAD data and the GIS data of the highway route design.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of traffic geographic space data management, and in particular relates to a method and system for automatically converting highway route design CAD and GIS data. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] AutoCAD software is widely used in highway route design due to its powerful graphics drawing and editing functions, as well as accurate graphics measurement and text annotation functions. The design documents include routes, slopes, bridges, tunnels, service areas, kilometer piles and other elements. The element attributes are reflected through text annotations, and the display ability is relatively strong. However, due to the lack of geographic spatial coordinate system, the geographical location of element entities and the separation of attributes, CAD files are not suitable for spatial analysis, calculation, query and other applications in the information platform.

[0004] At present, CAD files can be converted into GIS data (GIS data is usually in the form of shapefile or Geodatabase files), and then the GIS data can be stored in the database for information management. However, in the process of converting CAD files into GIS data, the traditional approach is to simply perform format conversion and coordinate system definition using software tools, then create new feature geographic entities on the road line according to the marked position, and manually assign values ​​to the corresponding feature entities according to the marked text. However, the conversion method is labor-intensive and inefficient, and the manual assignment process is prone to errors and omissions, resulting in data quality problems. Taking the pile number element as an example, highway pile numbers generally include kilometer pile numbers, hundred-meter pile numbers, and key structure pile numbers. A highway that is dozens of kilometers long requires processing of nearly a thousand elements, which is labor-intensive and prone to errors, resulting in data quality problems. Summary of the invention

[0005] In order to solve the above problems, the present invention proposes a method and system for automatic conversion of highway route design CAD and GIS data, which automatically converts highway route design CAD files into all elements of GIS data based on a spatial data conversion processing system (Feature Manipulate Engine, FME for short), realizes the full-element conversion of highway design CAD files into GIS data, reduces manual repetitive operations, and realizes automatic conversion of the entire process.

[0006] According to some embodiments, a first solution of the present invention provides a method for automatically converting highway route design CAD and GIS data, using the following technical solution:

[0007] A method for automatically converting highway route design CAD and GIS data, comprising:

[0008] Obtain highway route design CAD files;

[0009] Analyze the acquired CAD file to determine the layer corresponding to the element to be converted;

[0010] Add a reader module in the spatial data conversion processing system FME, and load the CAD file and the layers corresponding to the elements to be converted based on the added reader module;

[0011] The spatial data conversion and processing system performs automated data processing of highway route design CAD files to obtain GIS data files;

[0012] Check the obtained GIS data files and complete the automatic conversion between highway route design CAD and GIS data.

[0013] As one or more implementation modes, when determining the layer corresponding to the element to be converted, it is necessary to determine the layer corresponding to the annotation text of the elements including at least the route, stake point, bridge and tunnel and the pull line.

[0014] As one or more implementation modes, the automated data processing includes at least the definition of a coordinate system, the fusion of spatial positions and attributes of element entities, and the regularization of attribute fields.

[0015] As one or more implementation modes, a writing module is added to the workspace of the spatial data conversion processing system, and the highway route design CAD file after automated processing is output in the added writing module, that is, the GIS data file is output. The output GIS data file includes at least the feature name, output field order and field length.

[0016] As one or more implementation methods, the quality of the obtained GIS data file is checked by checking the spatial position of the elements and the element attribute table to check whether there are any omissions or errors, thereby completing the check of the data spatial position and attribute integrity of the GIS data file.

[0017] As one or more implementation methods, the obtained highway route design CAD file is opened based on AutoCAD software, the entire highway route and its ancillary facilities in the CAD file are analyzed, and the layer corresponding to each element is confirmed based on the analysis result.

[0018] According to some embodiments, the second solution of the present invention provides an automatic conversion system between CAD and GIS data for highway route design, which adopts the following technical solution:

[0019] An automatic conversion system for highway route design CAD and GIS data, comprising:

[0020] An acquisition module, configured to acquire a highway route design CAD file;

[0021] An analysis module is configured to analyze the acquired CAD file and determine the layer corresponding to the element to be converted;

[0022] A loading module is configured to add a reading module in the spatial data conversion processing system FME, and load the CAD file and the layers corresponding to the elements to be converted based on the added reading module;

[0023] A processing module, which is configured as a spatial data conversion processing system to perform automated data processing of the highway route design CAD file to obtain a GIS data file;

[0024] The checking module is configured to check the obtained GIS data file and complete the automatic conversion between the highway route design CAD and GIS data.

[0025] According to some embodiments, a third solution of the present invention provides a computer-readable storage medium, which adopts the following technical solution:

[0026] A computer-readable storage medium stores a program, which, when executed by a processor, implements the steps in the method for automatically converting highway route design CAD and GIS data as described in the first solution of the present invention.

[0027] According to some embodiments, a fourth solution of the present invention provides an electronic device, which adopts the following technical solution:

[0028] An electronic device includes a memory, a processor, and a program stored in the memory and running on the processor. When the processor executes the program, the steps in the method for automatically converting highway route design CAD and GIS data as described in the first embodiment of the present invention are implemented.

[0029] According to some embodiments, a fifth solution of the present invention provides a computer program product, which adopts the following technical solution:

[0030] A computer program product includes software codes, wherein the program in the software codes executes the steps in the method for automatically converting highway route design CAD and GIS data as described in the first embodiment of the present invention.

[0031] Compared with the prior art, the present invention has the following beneficial effects:

[0032] The present invention performs automatic conversion of highway route design CAD files to all elements of GIS data based on FME. For any highway route CAD file, the present invention realizes accurate generation of the spatial positions of element entities including routes, pile points, bridges, tunnels, service areas, etc., and simultaneously absorbs the corresponding text annotations of element entities as attributes and stores them in the element entity data structure. The converted data is output as a shapefile file commonly used in GIS software to realize the full element conversion of highway design CAD files to GIS data, reduce manual repetitive operations, and realize automatic conversion of the whole process. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The drawings in the specification that constitute a part of this embodiment are used to provide a further understanding of this embodiment. The schematic embodiments of this embodiment and their descriptions are used to explain this embodiment and do not constitute improper limitations on this embodiment.

[0034] Figure 1 A flowchart of a method for automatically converting CAD and GIS data for highway route design in Embodiment 1 of the present invention;

[0035] Figure 2 This is a schematic diagram of a data conversion workspace based on FME in the first embodiment of the present invention;

[0036] Figure 3 This is a structural block diagram of the automatic conversion system between CAD and GIS data for highway route design in the second embodiment of the present invention. DETAILED DESCRIPTION

[0037] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0038] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.

[0039] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0040] In the present invention, terms such as "upper", "lower", "left", "right", "front", "back", "vertical", "horizontal", "side", "bottom", etc. indicate directions or positional relationships based on the directions or positional relationships shown in the accompanying drawings. They are relational words determined only for the convenience of describing the structural relationships of the various parts or elements of the present invention, and do not specifically refer to any part or element in the present invention and should not be understood as limitations on the present invention.

[0041] In the present invention, terms such as "fixed connection", "connected", "connection", etc. should be understood in a broad sense, indicating that it can be fixedly connected, integrally connected or detachably connected; it can be directly connected or indirectly connected through an intermediate medium. For relevant scientific research or technical personnel in this field, the specific meanings of the above terms in the present invention can be determined according to specific circumstances, and they cannot be understood as limitations on the present invention.

[0042] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0043] Embodiment 1

[0044] Embodiment 1 of the present invention introduces a method for automatically converting highway route design CAD and GIS data.

[0045] like Figure 1 The method for automatically converting highway route design CAD and GIS data shown in the figure comprises the following steps:

[0046] Analyze the highway route design CAD file to determine the layers corresponding to the route, stake points, bridges, tunnels and other elements and their annotation texts;

[0047] Add a reader module to load the CAD file into the FME software and expose the layers that need to be processed;

[0048] Use FME software to automate data processing of highway design CAD files, including coordinate system definition, merging the annotation text of highway CAD design file elements as attributes and element entity data based on spatial position relationships, and regularizing element attribute fields;

[0049] Output GIS data files in the specified format;

[0050] Quality check: Check the spatial location and attribute integrity of the converted data.

[0051] As one or more implementation methods, the user opens the highway design CAD file in AutoCAD software as needed, analyzes the entire highway and its ancillary facilities, and confirms the layer corresponding to each element. Generally, the same type of element may have multiple layers. For example, due to different design standards in different sections of the highway, the route element layer names may be inconsistent.

[0052] As one or more implementation methods, open FME software, add a reading module, load the route design CAD file into the FME software, select "Individual Feature Types" in "Work flow options", and add the features that need to be converted.

[0053] As one or more embodiments, Figure 2 As shown, use the connection line in FME software to connect each input feature to the corresponding transformer as input data.

[0054] As one or more implementation methods, the CoordinateSystemSetter converter is used to uniformly set the geographic coordinate system for all elements; this embodiment takes the highway pile number element as an example to introduce the detailed implementation strategy of data processing. The input data in this embodiment is the pile number annotation, pile number guide line, and highway center line: the guide line is encoded using the Counter converter and the LineID attribute is output; the pile number guide line Chopper converter generates the endpoints of the guide line at both ends, the guide line close to the annotation endpoint is A, and the guide line close to the feature endpoint is B; through the NeighborFinder converter, the pile number annotation text attribute is assigned to the endpoint A close to the annotation; using the NeighborFinder, the perpendicular coordinates of the pile number point B on the road line are found, and the VertexCreator converter is used to generate the pile number point B corresponding to the guide line position close to the road; using the FeatureMerger converter, point B is used as the Requester input end, and point A is used as the Supplier input end, A and B are both attached according to the LineID attribute, and the A attribute is attached to point B. At this time, the spatial position of the pile number point and the attribute element are unified and integrated; the AttributeKeeper and AttributeRenamer converters are used to regularize the fields.

[0055] It should be noted that, in this embodiment, when the NeighborFinder converter is used, there is a one-to-one correspondence between feature annotations and guide lines. When setting parameters, the number of neighboring features to be found, "Number of Neighbors to Find", is set to 1.

[0056] It should be noted that, in this embodiment, the attribute field names are regularized using the AttributeRenamer converter for the converted data elements, and unnecessary attribute fields are removed using the AttributeRemover converter.

[0057] As one or more implementation methods, a writing module is added to the workspace of the FME software to output the converted data into a GIS data file in a specified format, generally a shapefile format, and specify feature names, output field order, field length, etc.;

[0058] As one or more implementation methods, the converted data is quality checked in GIS software to check whether there are any missing or erroneous problems by checking the spatial position of the elements and the element attribute table. Generally, there are fewer problems after processing using this method, but it cannot be ruled out that problems may be caused by insufficient understanding of the basic data situation beforehand.

[0059] This embodiment introduces a method for automatically converting highway route design CAD files to GIS data elements. It uses FME software to realize the automated processing of the data conversion process, opens up the conversion channel between highway route design files from CAD to GIS data, reduces a lot of manual operations, avoids data errors and omissions, greatly improves data processing efficiency and data quality, realizes automation and intelligence, and provides technical support for data governance work in the construction of transportation geographic information platform.

[0060] Embodiment 2

[0061] The second embodiment of the present invention introduces a system for automatically converting highway route design CAD and GIS data.

[0062] like Figure 3 The automatic conversion system of highway route design CAD and GIS data shown in the figure comprises:

[0063] An acquisition module, configured to acquire a highway route design CAD file;

[0064] An analysis module is configured to analyze the acquired CAD file and determine the layer corresponding to the element to be converted;

[0065] A loading module is configured to add a reading module in the spatial data conversion processing system FME, and load the CAD file and the layers corresponding to the elements to be converted based on the added reading module;

[0066] A processing module, which is configured as a spatial data conversion processing system to perform automated data processing of the highway route design CAD file to obtain a GIS data file;

[0067] The checking module is configured to check the obtained GIS data file and complete the automatic conversion between the highway route design CAD and GIS data.

[0068] The detailed steps are the same as the method for automatic conversion of highway route design CAD and GIS data provided in Example 1, and will not be repeated here.

[0069] Embodiment 3

[0070] Embodiment 3 of the present invention provides a computer-readable storage medium.

[0071] A computer-readable storage medium stores a program, which, when executed by a processor, implements the steps of the method for automatically converting highway route design CAD and GIS data as described in the first embodiment of the present invention.

[0072] The detailed steps are the same as the method for automatic conversion of highway route design CAD and GIS data provided in Example 1, and will not be repeated here.

[0073] Embodiment 4

[0074] A fourth embodiment of the present invention provides an electronic device.

[0075] An electronic device includes a memory, a processor, and a program stored in the memory and running on the processor. When the processor executes the program, the steps in the method for automatically converting highway route design CAD and GIS data as described in Example 1 of the present invention are implemented.

[0076] The detailed steps are the same as the method for automatic conversion of highway route design CAD and GIS data provided in Example 1, and will not be repeated here.

[0077] Embodiment 5

[0078] Embodiment 5 of the present invention provides a computer program product.

[0079] A computer program product includes software code, wherein the program in the software code executes the steps in the method for automatically converting highway route design CAD and GIS data as described in the first embodiment of the present invention.

[0080] The detailed steps are the same as the method for automatic conversion of highway route design CAD and GIS data provided in Example 1, and will not be repeated here.

[0081] The above description is only a preferred embodiment of the present embodiment and is not intended to limit the present embodiment. For those skilled in the art, the present embodiment may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present embodiment shall be included in the protection scope of the present embodiment.

Claims

1. A method for automatically converting highway route design CAD and GIS data, characterized in that: include: Obtain highway route design CAD files; Analyze the acquired CAD file to determine the layer corresponding to the element to be converted; Add a reader module in the spatial data conversion processing system FME, and load the CAD file and the layers corresponding to the elements to be converted based on the added reader module; The spatial data conversion and processing system performs automated data processing of highway route design CAD files to obtain GIS data files; Check the obtained GIS data files and complete the automatic conversion between highway route design CAD and GIS data.

2. A method for automatically converting highway route design CAD and GIS data as claimed in claim 1, characterized in that: When determining the layer corresponding to the feature to be converted, it is necessary to determine at least the annotation text of the features including the route, stake point, bridge and tunnel, as well as the layer corresponding to the pull line.

3. A method for automatically converting highway route design CAD and GIS data as claimed in claim 1, characterized in that: The automated data processing at least includes the definition of a coordinate system, the fusion of element entity spatial positions and attributes, and the regularization of attribute fields.

4. A method for automatically converting highway route design CAD and GIS data as claimed in claim 1, characterized in that: A writing module is added in the workspace of the spatial data conversion processing system, and the highway route design CAD file after automated processing is output in the added writing module, that is, the GIS data file is output. The output GIS data file at least includes the feature name, output field order and field length.

5. The method for automatically converting highway route design CAD and GIS data as claimed in claim 1, characterized in that: Check the quality of the obtained GIS data file by checking the spatial position of the elements and the feature attribute table to check whether there are any missing or errors, and complete the check of the data spatial position and attribute integrity of the GIS data file.

6. A method for automatically converting highway route design CAD and GIS data as claimed in claim 1, characterized in that: The obtained highway route design CAD file is opened based on AutoCAD software, the entire highway route and its ancillary facilities in the CAD file are analyzed, and the layers corresponding to each element are confirmed based on the analysis results.

7. An automatic conversion system between CAD and GIS data for highway route design, characterized in that: include: An acquisition module, configured to acquire a highway route design CAD file; An analysis module is configured to analyze the acquired CAD file and determine the layer corresponding to the element to be converted; A loading module is configured to add a reading module in the spatial data conversion processing system FME, and load the CAD file and the layers corresponding to the elements to be converted based on the added reading module; A processing module, which is configured as a spatial data conversion processing system to perform automated data processing of the highway route design CAD file to obtain a GIS data file; The checking module is configured to check the obtained GIS data file and complete the automatic conversion between the highway route design CAD and GIS data.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method for automatically converting highway route design CAD and GIS data as described in any one of claims 1 to 6 are implemented.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the program, the steps of the method for automatically converting highway route design CAD and GIS data as described in any one of claims 1-6 are implemented.

10. A computer program product comprising software code, characterized in that The program in the software code executes the steps of the method for automatically converting highway route design CAD and GIS data as described in any one of claims 1-6.