Urban CAD data processing method and related equipment
Processing urban underground pipeline CAD data through FME Workbench solved the problems of missing attributes and loss of precision during the conversion process, achieved efficient and accurate data conversion and integrity assurance, and provided important data support for urban lifeline risk assessment and project design.
Patent Information
- Application Number
- CN202510644357.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-19
- Publication Date
- 2025-09-09
AI Technical Summary
In the existing technology, when converting urban underground pipeline CAD data into SHP data, there are problems such as missing attributes, fragmentation of spatial elements and loss of geometric accuracy, which reduces the reference value of urban lifeline data.
FME Workbench was used to process the CAD data of urban underground pipelines, extract the elements of each layer, filter the target pipelines, obtain hidden attribute information, and unify the pipelines, protection targets, and hazard sources into the target coordinate system to associate and convert the attribute information.
It achieves efficient and accurate conversion of urban underground pipeline CAD data, ensures the integrity of attribute information and spatial connectivity, and provides high-quality data support for risk assessment and project design.
Smart Images

Figure CN120610982A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of data processing technology, and specifically relates to a method for processing urban CAD data, a device for processing urban CAD data, an electronic device, a computer-readable storage medium, and a computer program product. Background Art
[0002] Urban underground pipelines, encompassing infrastructure such as water supply, drainage, gas, and heat, are the "lifelines" that sustain urban operations. In current urban lifeline construction, CAD data for these pipelines is the primary source of data. However, due to significant differences in the data structure of their attribute information compared to SHP data, it cannot be directly used to support risk assessments and project design.
[0003] The method of converting pipeline data in CAD format into SHP data in related technologies has problems such as attribute loss, spatial element fragmentation, geometric accuracy loss, process fragmentation, etc. during conversion, which causes urban lifeline data to fall into the dilemma of "high investment and low return". Therefore, there is an urgent need to provide an efficient and accurate data conversion method to provide accurate reference data for risk assessment, project design, etc. of urban lifelines. Summary of the Invention
[0004] This application aims to solve at least one of the technical problems existing in the prior art. To this end, this application proposes a method for processing urban CAD data that can efficiently and accurately convert all elements of CAD data, while also stably connecting it with other key elements in space, providing more data support for urban lifeline work.
[0005] In a first aspect, an embodiment of the present application provides a method for processing urban CAD data, including: obtaining the urban underground pipeline CAD data to be processed in the target urban area, and extracting each layer element from the urban underground pipeline CAD data; wherein the layer elements include the underground pipelines in the target urban area; screening each layer element according to preset selection conditions to obtain the target underground pipeline that meets the preset selection conditions; extracting hidden attribute information of the urban underground pipeline CAD data; obtaining the protection targets and hazard sources of the target urban area, and unifying the target underground pipelines, protection targets and hazard sources into a target coordinate system; determining the relevant protection targets and relevant hazard sources within a preset range of the target underground pipeline, and associating the relevant protection targets and their protection attribute information, the relevant hazard sources and their hazard attribute information with the target underground pipeline and its attribute information to obtain merged attribute information, and converting the merged attribute information into a preset format.
[0006] In some embodiments, the method also includes: obtaining original urban underground pipeline CAD data, determining whether the original urban underground pipeline CAD data contains hidden attributes; in response to the original urban underground pipeline CAD data containing hidden attribute information, reading the original urban underground pipeline CAD data containing hidden attribute information to obtain the urban underground pipeline CAD data to be processed.
[0007] In some embodiments, urban underground pipeline CAD data to be processed is obtained, and each layer element is extracted from the urban underground pipeline CAD data; wherein the layer elements include underground pipelines in the target urban area, including: establishing a mapping file template in the spatial data conversion processing system; wherein the mapping file template is used to connect to the urban underground pipeline CAD data; creating a first reading module to define the data type and geometric parameters for reading the urban underground pipeline CAD data; and extracting each layer element from the urban underground pipeline CAD data through the first reading module.
[0008] In some embodiments, extracting hidden attribute information of urban underground pipeline CAD data includes: opening a view of the urban underground pipeline CAD data, viewing and marking the storage location of the undisclosed hidden attribute information of the urban underground pipeline CAD data; inputting the storage location of the undisclosed hidden attribute information into a converter to convert the undisclosed hidden attribute information into disclosed attribute information.
[0009] In some embodiments, the method further includes: establishing an attribute storage table, storing the public attribute information in the attribute storage table; and deleting redundant fields of the attribute information stored in the attribute storage table to obtain a target attribute storage table.
[0010] In some embodiments, the method also includes: adding the merged attribute information to the target attribute storage table to obtain an updated attribute storage table; merging the updated attribute storage table with the security attribute storage table to obtain a complete attribute storage table; wherein the security attribute storage table records the attribute information of spatial elements that do not have protection targets and hazard sources within a preset range.
[0011] The urban CAD data processing method provided in this application uses FME Workbench to extract urban underground pipeline CAD data. It can accurately and directly extract and retain the attribute information of urban underground pipeline CAD data in batches. In the conversion process, it can also extract the undisclosed hidden attribute information of urban underground pipeline CAD data, and spatially connect the attribute information with other key elements such as protection targets or hazard sources, further ensuring the integrity and information value of the extracted data, and providing an important basic reference for risk assessment, scheme design, project construction, etc.
[0012] In a second aspect, an embodiment of the present application provides a device for processing urban CAD data, including: a first acquisition module, configured to acquire the urban underground pipeline CAD data to be processed in the target urban area, and extract each layer element from the urban underground pipeline CAD data; wherein the layer elements include the underground pipelines in the target urban area; a screening module, configured to screen each layer element according to preset selection conditions, and obtain the target underground pipeline that meets the preset selection conditions; a second acquisition module, configured to extract hidden attribute information of the urban underground pipeline CAD data; a third acquisition module, configured to acquire the protection targets and hazardous sources of the target urban area, and unify the target underground pipelines, protection targets and hazardous sources into a target coordinate system; a determination module, configured to determine the relevant protection targets and relevant hazardous sources within a preset range of the target underground pipeline, associate the relevant protection targets and their protection attribute information and the relevant hazardous sources and their hazardous attribute information with the target underground pipeline and its attribute information, obtain merged attribute information, and convert the merged attribute information into a preset format.
[0013] The urban CAD data processing device provided in this application uses FME Workbench to extract urban underground pipeline CAD data, and can accurately and directly extract and retain the attribute information of urban underground pipeline CAD data in batches. In the conversion process, it can also extract the undisclosed hidden attribute information of urban underground pipeline CAD data, and spatially connect the attribute information with other key elements such as protection targets or hazard sources, further ensuring the integrity and information value of the extracted data, and providing an important basic reference for risk assessment, scheme design, project construction, etc.
[0014] In a third aspect, an embodiment of the present application provides an electronic device comprising: a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method for processing urban CAD data as in the first aspect are implemented.
[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method for processing urban CAD data as in the first aspect are implemented.
[0016] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed by a processor of a vehicle, implements the steps of the method for processing urban CAD data as in the first aspect.
[0017] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become obvious from the description below, or will be learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0019] Figure 1 Flowchart of a method for processing city CAD data provided in an embodiment of the present application;
[0020] Figure 2 A flowchart of a method for extracting elements of each layer from urban underground pipeline CAD data provided in an embodiment of the present application;
[0021] Figure 3 A schematic diagram of creating a CAD data reading module window provided in an embodiment of the present application;
[0022] Figure 4 A schematic diagram of a window for filtering CAD data spatial elements provided in an embodiment of the present application;
[0023] Figure 5 A flowchart of a method for extracting hidden attribute information from urban underground pipeline CAD data provided in an embodiment of the present application;
[0024] Figure 6 A schematic diagram of a window for viewing the storage location of urban underground pipeline CAD data attribute information provided in an embodiment of the present application;
[0025] Figure 7 A schematic diagram of a window for obtaining attribute information corresponding to undisclosed hidden attribute information provided in an embodiment of the present application;
[0026] Figure 8 A schematic diagram of a property manager window provided in an embodiment of the present application;
[0027] Figure 9 A schematic diagram of a serial port for deleting redundant fields in an attribute storage table provided in an embodiment of the present application;
[0028] Figure 10 A schematic diagram of a coordinate converter window provided in an embodiment of the present application;
[0029] Figure 11 A schematic diagram of a proximity finder window provided in an embodiment of the present application;
[0030] Figure 12 A flowchart of a method for outputting a complete attribute table provided in an embodiment of the present application;
[0031] Figure 13 Schematic diagram of a device for processing city CAD data provided in an embodiment of the present application;
[0032] Figure 14A more specific schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
[0033] Figure markings: 1300 - processing device for urban CAD data; 1310 - first acquisition module; 1320 - screening module; 1330 - second acquisition module; 1340 - third acquisition module; 1350 - determination module; 1410 - processor; 1420 - memory; 1430 - input / output interface; 1440 - communication interface; 1450 - bus. DETAILED DESCRIPTION
[0034] The following describes embodiments of the present application in more detail with reference to the accompanying drawings. Although certain embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be construed as limited to the embodiments described herein. Instead, these embodiments are provided to provide a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are for illustrative purposes only and are not intended to limit the scope of protection of the present application.
[0035] It should be understood that the various steps described in the method embodiments of the present application can be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present application is not limited in this respect.
[0036] As described in the technical background section, urban underground pipelines, as the core carriers of urban infrastructure such as water supply, drainage, gas, and heat, are the "lifelines" that maintain the normal operation of cities. Amidst accelerating urbanization, risk assessment, intelligent transformation, and emergency management of urban lifelines all rely on high-precision and high-completeness pipeline spatial data.
[0037] In the process of implementing the embodiments of the present application, the applicant found that in the existing urban lifeline data collection, pipeline design drawings in CAD format dominate. However, the application of urban lifeline data depends on shp data. Related technologies mostly rely on tools such as ArcGIS and Global Mapper to convert CAD to shp format. However, key attributes are easily lost during the conversion process, resulting in the output data being difficult to meet risk assessment requirements; CAD's graphic logic is prone to cause set deformation or coordinate offset during conversion, affecting the accuracy of spatial data; the conversion process requires multiple spatial connections or manual attribute repair processes, resulting in a long data processing cycle and other problems, thereby reducing the reference value of urban lifeline data.
[0038] The technical solution of the present application is further described in detail below through specific examples.
[0039] refer to Figure 1, which is a flow chart of the method for processing urban CAD data provided in an embodiment of the present application.
[0040] Step S101: obtaining CAD data of urban underground pipelines to be processed in a target urban area, and extracting various layer elements from the CAD data of the urban underground pipelines; wherein the layer elements include the underground pipelines in the target urban area.
[0041] Specifically, the urban underground pipeline CAD data includes various layer elements, which contain various point, line, and surface symbol layers. There is a topological relationship between the spatial data such as points, lines, and surfaces in the CAD layer, which is related to the spatial distribution, layout, and interaction relationship of the urban underground pipelines. It has a key impact on the operation of the urban underground pipelines. The rationality of its configuration will directly affect the resilience, efficiency, and risk resistance of the urban pipelines. For the original urban underground pipeline CAD data file obtained, it is necessary to check the storage structure format, coordinate system, etc. of the underground pipeline attribute information of the data file to ensure that the data file can be read and parsed normally, and obtain the urban underground pipeline CAD data to be processed. Further, extract the underground pipelines of the target urban area in each layer of the urban underground pipeline CAD data to be processed.
[0042] Common CAD formats include: .dwg (AutoCAD native format), .dxf (open exchange format), .dgn (MicroStation format), while non-standard formats such as .rvt, .skp, etc. need to be processed by conversion tools before they can be used; checking the coordinate system can ensure that the coordinate system of the CAD data is consistent with the target requirements, avoiding spatial positioning errors that affect subsequent data analysis; CAD format files generated by different AutoCAD versions may be incompatible. For example, a high-version DWG file (such as one generated by AutoCAD 2024) cannot be directly opened by a low-version software (such as AutoCAD 2010). You can use DWG TrueView to downgrade the file version.
[0043] As an optional embodiment, the method also includes: obtaining original urban underground pipeline CAD data, determining whether the original urban underground pipeline CAD data contains hidden attributes; in response to the original urban underground pipeline CAD data containing hidden attribute information, reading the original urban underground pipeline CAD data containing hidden attributes to obtain the urban underground pipeline CAD data to be processed.
[0044] Specifically, for the original urban underground pipeline CAD data obtained, it is necessary to confirm whether the data file contains undisclosed hidden attributes. The hidden attributes can be the remarks information of the pipeline data, etc. When the original urban underground pipeline CAD data contains hidden attribute information, it is necessary to further decrypt and read the hidden attributes of the original urban underground pipeline CAD data to obtain the urban underground pipeline CAD data to be processed, and ensure that the corresponding attribute information of the underground pipelines in the target urban area is read to ensure the integrity of the data.
[0045] refer to Figure 2 , which is a flowchart of a method for extracting elements of each layer from urban underground pipeline CAD data provided in an embodiment of the present application.
[0046] Step S201: creating a mapping file template in a spatial data conversion processing system; wherein the mapping file template is used to connect to the urban underground pipeline CAD data;
[0047] Step S202: Create a first reading module to define the data type and geometric parameters for reading the urban underground pipeline CAD data;
[0048] Step S203: extracting each layer element from the urban underground pipeline CAD data through the first reading module.
[0049] Specifically, the spatial data conversion processing system in the embodiment is preferably FME Workbench. FME Workbench is a visual graphical model builder, and users can build a data conversion workflow by using different converters.
[0050] In this application, after starting FME Workbench, create a new mapping file template. Further, find Readers in the tool panel and open the reading module (Add reader). Figure 3As shown, select Autodesk AutoCAD DWG / DXF in the format selection list of the reading module window, that is, read the CAD format file, and then locate the dataset (Dataset) to the path of the urban underground pipeline CAD data file to be processed. Further, define the geometry processing parameters (Geometry Handling) in the parameters (Parameters...), and choose how to group (by layer or by color) the objects in the urban underground pipeline CAD data and whether to retain the block structure of the urban underground pipeline CAD data or decompose the structure into independent geometric graphics. After completing the configuration of the reading module, the first reading module that stores the spatial data of the urban underground pipeline CAD data can be generated in the workspace of FME Workbench, that is, the reading of each layer element in the urban underground pipeline CAD data in the first reading module is completed.
[0051] Step S102: Filter the elements of each layer according to the preset selection conditions to obtain target underground pipelines that meet the preset selection conditions.
[0052] Specifically, for each layer element in the first reading module, the following Figure 4 The conditional filter (Tester) shown reads the preset selection conditions to further filter the elements of each layer. For example, it can filter out water supply pipelines or only require water supply or heat pipelines. The Tester can classify each layer element as Passed (passed) or Failed (failed) by filtering layer names or line colors. Furthermore, the filtered Passed layer elements are determined as target underground pipelines that meet the preset selection conditions.
[0053] Step S103: extracting hidden attribute information of the urban underground pipeline CAD data.
[0054] Specifically, the hidden attribute information of urban underground pipeline CAD data may include the layer name (autocad_layer) to which the element belongs, line type definition (autocad_linetype), unique entity ID (autocad_handle), and text annotation content (autocad_text), etc. The hidden attribute information needs to be further extracted to ensure the integrity of the attribute information of each layer element.
[0055] refer to Figure 5 , which is a flowchart of the method for extracting hidden attribute information of urban underground pipeline CAD data provided in an embodiment of the present application.
[0056] Step S501: Open the view of the city underground pipeline CAD data, check and mark the storage location of the undisclosed hidden attribute information of the city underground pipeline CAD data.
[0057] Specifically, use FME Data Inspector to open the view of the city's underground pipeline CAD data, such as Figure 6 As shown, the attribute name and index number of the storage location autocad_extended_data_list{} of the attribute information of the urban underground pipeline CAD data can be viewed, and the attribute name and index number can be further marked. For example, the index number of the marked autocad_extended_data_list{0}.value="600" is 0, and the attribute name is value.
[0058] Step S502: inputting the storage location of the undisclosed hidden attribute information into the converter to convert the undisclosed hidden attribute information into disclosed attribute information.
[0059] Specifically, for the hidden attribute information that is not disclosed, you can use Figure 7 The attribute exposure converter (AttributeExposer converter) shown obtains the attribute information location corresponding to the undisclosed hidden attribute information, and inputs the storage location autocad_extended_data_list{} of the above attribute information into the AttributeExposer converter. After running, a new field will appear in the attribute table, and the new field is the above undisclosed hidden attribute information.
[0060] Furthermore, the undisclosed hidden attribute information can be further extracted by using the AttributeRenamer converter. After selecting the AttributeRenamer converter, the attribute name and index number of the undisclosed hidden attribute information autocad_extended_data_list{} are input to the input attribute (InputAttribute), and the name corresponding to the undisclosed hidden attribute information is input to the output attribute (OutputAttribute). Further, the undisclosed hidden attribute information is stored in Figure 8 In the Attribute Manager shown.
[0061] As an optional embodiment, the method further includes: establishing an attribute storage table, storing the public attribute information in the attribute storage table; and deleting redundant fields of the attribute information stored in the attribute storage table to obtain a target attribute storage table.
[0062] Specifically, for redundant fields, they can be deleted by using the ReplaceString function of the String Functions in the Attribute Value in the attribute storage table, such as Figure 9 As shown, in the ReplaceString function, <string>The position corresponds to the attribute information in Input Attribute. <before>The field that needs to be deleted in the location corresponding attribute information, <after>The position corresponds to the field that needs to be supplemented. Further, the attribute table can be sorted using the corresponding position information, the required fields can be extracted from the attribute information string, and the redundant fields in the attribute information can be deleted to obtain the basic fields that need to be retained.
[0063] Step S104: Acquire the protection targets and hazard sources of the target urban area, and unify the target underground pipelines, protection targets, and hazard sources into the target coordinate system.
[0064] Specifically, the target urban area also includes protection targets and hazard sources that may affect the operation of the city's lifeline. Protection targets are objects that need to be protected in the target urban area, and hazard sources are objects in the target urban area that pose potential risks to the city's lifeline (facilities or factors that may cause accidents or disasters). Protection targets can be hospitals, schools, government agencies, etc., and hazard sources can be gas stations, hazardous chemical companies, geological hazard points, etc.
[0065] Data on protection targets and hazards can be user-provided, sourced from various mapping software, or obtained through online searches. Furthermore, the protection targets and hazards within the preset range of the target underground pipeline are obtained and unified into a target coordinate system. This allows users to conduct accurate and comprehensive analysis of urban lifelines based on the target underground pipelines, protection targets, and hazards in the target coordinate system, facilitating risk assessments for urban lifelines and further supporting the design and deployment of urban construction projects.
[0066] To establish the target coordinate system, you need to first create the second reading module and the third reading module, which are used to read the protection target and hazard source data respectively. Before reading the protection target, you need to filter the protection target type according to the type field and name field. Before reading the hazard source, you also need to filter it according to the type field. Figure 10 The coordinate converter (Reprojector) shown reprojects the x-coordinate and y-coordinate of the target underground pipe data, the protection target and the hazard source from one coordinate system to another coordinate system to unify the coordinate systems and obtain the target coordinate system.
[0067] Step S105, determine the relevant protection targets and relevant hazard sources within the preset range of the target underground pipeline, associate the relevant protection targets and their protection attribute information, the relevant hazard sources and their hazard attribute information with the target underground pipeline and its attribute information, obtain merged attribute information, and convert the merged attribute information into a preset format.
[0068] Specifically, it is necessary to use Figure 11 The shown neighbor finder (NeighborFinder) searches for protection targets and hazard sources within a preset range of each pipeline in the target underground pipeline, and obtains attribute information of all protection targets and hazard sources within the preset range of each pipeline.
[0069] refer to Figure 12 , which is a flowchart of a method for outputting a complete attribute table provided in an embodiment of the present application.
[0070] Step S1201, adding attribute information to the target attribute storage table to obtain an updated attribute storage table;
[0071] Specifically, a list concatenator can be used to list the target underground pipeline data, protection targets, and hazardous sources that have been associated in the target coordinate system. Any pipeline in the target underground pipeline data may be connected to multiple protection targets and / or hazardous sources. The protection targets and / or hazardous source names associated with the current pipeline can be connected using "," to form a piece of data. For example, taking the case where there are only protection targets within the preset range of the pipeline, for pipeline ID = 102, its protection target data can be recorded as [protection target = "a certain hospital, a certain school"]. Furthermore, the attribute manager converter is used to add the attribute information of the protection targets and / or hazardous sources within the preset range of the target spatial element to the target attribute storage table of the target underground pipeline related thereto to obtain an updated attribute storage table.
[0072] Step S1202: Merge the updated attribute storage table with the security attribute storage table to obtain a complete attribute storage table; wherein the security attribute storage table records the attribute information of spatial elements within a preset range that do not have protection targets and hazard sources;
[0073] Specifically, when associating protection targets and / or hazardous sources within the preset range of the pipeline of the target spatial element, there may be some pipelines that do not have protection targets and hazardous sources within the preset range. The attribute information storage table of such pipelines can be defined as a security attribute storage table. Furthermore, it is necessary to merge the above-mentioned update attribute storage table with the security attribute storage table to obtain a complete attribute storage table.
[0074] It should be noted that for the merged complete attribute storage table, you can also delete useless attribute information by selecting Remove in the attribute action to obtain a concise and standardized attribute table, providing high-quality data support for subsequent risk assessment or project construction.
[0075] Furthermore, a writer module is created in FME Workbench, and according to needs, the writer is used to output SHP data or Excel data for use in risk assessment or project construction.
[0076] According to the urban CAD data processing method of the embodiment of the present application, the urban underground pipeline CAD data is extracted using FME Workbench, which can accurately and directly extract and retain the attribute information of the urban underground pipeline CAD data in batches. In the conversion process, the undisclosed hidden attribute information of the urban underground pipeline CAD data can also be extracted, and the attribute information can be spatially connected with other key elements such as protection targets or hazard sources, further ensuring the integrity and information value of the extracted data, and providing an important basic reference for risk assessment, scheme design, project construction, etc.
[0077] refer to Figure 13 , which is a schematic diagram of a processing device for urban CAD data provided in an embodiment of the present application.
[0078] Based on the same concept, corresponding to the method for processing city CAD data provided in the above embodiment, the present application also provides a device 1300 for processing city CAD data.
[0079] The apparatus 1300 for processing city CAD data includes a first acquisition module 1310 , a screening module 1320 , a second acquisition module 1330 , a third acquisition module 1340 , and a determination module 1350 .
[0080] Specifically, the first acquisition module 1310 is configured to acquire the urban underground pipeline CAD data to be processed in the target urban area, and extract each layer element from the urban underground pipeline CAD data; wherein the layer elements include the underground pipelines in the target urban area; the screening module 1320 is configured to screen each layer element according to preset selection conditions, and obtain the target underground pipeline that meets the preset selection conditions; the second acquisition module 1330 is configured to extract the hidden attribute information of the urban underground pipeline CAD data; the third acquisition module 1340 is configured to acquire the protection targets and hazardous sources of the target urban area, and unify the target underground pipelines, protection targets and hazardous sources into the target coordinate system; the determination module 1350 is configured to determine the relevant protection targets and relevant hazardous sources within the preset range of the target underground pipeline, associate the relevant protection targets and their protection attribute information, the relevant hazardous sources and their hazardous attribute information with the target underground pipeline and its attribute information, obtain merged attribute information, and convert the merged attribute information into a preset format.
[0081] Optionally, the first acquisition module 1310 is also configured to: acquire original urban underground pipeline CAD data, determine whether the original urban underground pipeline CAD data contains hidden attributes; in response to the original urban underground pipeline CAD data containing hidden attribute information, read the original urban underground pipeline CAD data containing hidden attribute information to obtain the urban underground pipeline CAD data to be processed.
[0082] Optionally, the first acquisition module 1310 is also configured to: establish a mapping file template within the spatial data conversion processing system; wherein the mapping file template is used to connect to the urban underground pipeline CAD data; create a first reading module to define the data type and geometric parameters for reading the urban underground pipeline CAD data; and extract each layer element from the urban underground pipeline CAD data through the first reading module.
[0083] Optionally, the second acquisition module 1330 is also configured to: open the view of the urban underground pipeline CAD data, view and mark the storage location of the undisclosed hidden attribute information of the urban underground pipeline CAD data; input the storage location of the undisclosed hidden attribute information into the converter to convert the undisclosed hidden attribute information into public attribute information.
[0084] Optionally, the second acquisition module 1330 is further configured to: establish an attribute storage table, store the public attribute information in the attribute storage table; delete redundant fields of the attribute information stored in the attribute storage table, and obtain a target attribute storage table.
[0085] Optionally, the determination module 1350 is further configured to: add the merged attribute information to the target attribute storage table to obtain an updated attribute storage table; merge the updated attribute storage table with the security attribute storage table to obtain a complete attribute storage table; wherein the security attribute storage table records the attribute information of spatial elements that do not have protection targets and hazard sources within a preset range.
[0086] From the above description, it can be seen that the urban CAD data processing device provided in the embodiment of the present application uses FME Workbench to extract urban underground pipeline CAD data, and can accurately and directly extract and retain the attribute information of urban underground pipeline CAD data in batches. In the conversion process, it can also extract the undisclosed hidden attribute information of urban underground pipeline CAD data, and spatially connect the attribute information with other key elements such as protection targets or hazard sources, further ensuring the integrity and information value of the extracted data, and providing an important basic reference for risk assessment, scheme design, project construction, etc.
[0087] Based on the same concept, corresponding to the method for processing urban CAD data provided in any of the above embodiments, the present application also provides an electronic device including a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method for processing urban CAD data as in the first aspect are implemented.
[0088] Figure 14 14 shows a more specific hardware structure diagram of an electronic device provided in an embodiment of the present application. The device may include: a processor 1410, a memory 1420, an input / output interface 1430, a communication interface 1440, and a bus 1450. The processor 1410, the memory 1420, the input / output interface 1430, and the communication interface 1440 are connected to each other within the device via the bus 1450.
[0089] The processor 1410 can be implemented using a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0090] The memory 1420 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage devices, dynamic storage devices, etc. The memory 1420 can store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 1420 and is called and executed by the processor 1410.
[0091] The input / output interface 1430 is used to connect an input / output module to implement information input and output. The input / output module can be configured as a component in the device (not shown in the figure) or can be externally connected to the device to provide corresponding functions. Input devices may include a keyboard, mouse, touch screen, microphone, various sensors, etc., and output devices may include a display, speaker, vibrator, indicator light, etc.
[0092] The communication interface 1440 is used to connect to a communication module (not shown) to enable communication between the device and other devices. The communication module can communicate via a wired method (such as USB, network cable, etc.) or a wireless method (such as mobile network, WiFi, Bluetooth, etc.).
[0093] The bus 1450 comprises a pathway for transmitting information between the various components of the device (eg, the processor 1410 , the memory 1420 , the input / output interface 1430 , and the communication interface 1440 ).
[0094] It should be noted that although the above device only shows the processor 1410, the memory 1420, the input / output interface 1430, the communication interface 1440, and the bus 1450, in a specific implementation, the device may also include other components necessary for normal operation. In addition, it will be understood by those skilled in the art that the above device may only include the components necessary to implement the embodiments of this specification, and does not necessarily include all the components shown in the figure.
[0095] The electronic device of the above embodiment is used to implement the corresponding city CAD data processing method in any of the above embodiments, and has the beneficial effects of the corresponding city CAD data processing method embodiment, which will not be repeated here.
[0096] Based on the same concept, corresponding to the method for processing urban CAD data provided in any of the above embodiments, the present application also provides a computer-readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method for processing urban CAD data as in the first aspect are implemented.
[0097] The above-mentioned computer-readable storage medium can be any available medium or data storage device that can be accessed by a computer, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO)), optical storage (such as CDs, DVDs, BDs, HVDs, etc.), and semiconductor storage (such as ROMs, EPROMs, EEPROMs, non-volatile memories (NANDFLASH), solid-state drives (SSDs)), etc.
[0098] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the corresponding city CAD data processing method in any of the above embodiments, and have the beneficial effects of the corresponding city CAD data processing method embodiment, which will not be repeated here.
[0099] Based on the same concept, corresponding to the method for processing urban CAD data provided in any of the above embodiments, this application also provides a computer program product comprising computer program instructions. In some embodiments, the computer program instructions can be executed by one or more processors of a computer to cause the computer and / or processor to perform the method for processing urban CAD data. For the execution entities corresponding to the steps in each embodiment of the method for processing urban CAD data, the processors that execute the corresponding steps can belong to the corresponding execution entities.
[0100] Specifically, the computer program code for performing the operations of the present application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0101] It should be understood that each block in the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable flow detection device, thereby producing a machine. These computer program instructions are executed by the computer or other programmable flow detection device to produce a device that implements the functions / operations specified in the blocks in the flowcharts and / or block diagrams.
[0102] These computer program instructions can also be stored in a computer-readable medium that enables a computer or other programmable flow detection device to operate in a specific manner. In this way, the instructions stored in the computer-readable medium produce a product that includes an instruction device that implements the functions / operations specified in the boxes in the flowchart and / or block diagram.
[0103] Computer program instructions may also be loaded onto a computer, other programmable flow detection device, or other equipment so that a series of operational steps are performed on the computer, other programmable flow detection device, or other equipment to produce a computer-implemented process, thereby enabling the instructions executed on the computer or other programmable device to provide a process that implements the functions / operations specified in the blocks in the flowchart and / or block diagram.
[0104] The computer program product of the above embodiment is used to enable a computer and / or processor to execute the urban CAD data processing method of any of the above embodiments, and has the beneficial effects of the corresponding urban CAD data processing method embodiment, which will not be repeated here.
[0105] It should be noted that, in this document, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, but may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may be added, omitted or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0106] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms of implementation methods without departing from the purpose of this application and the scope of protection of the claims. These implementation methods are all within the protection of this application.< / after> < / before> < / string>
Claims
1. A method for processing urban CAD data, characterized in that: include: Acquire CAD data of urban underground pipelines to be processed in a target urban area, and extract various layer elements from the CAD data of urban underground pipelines; wherein the layer elements include the underground pipelines in the target urban area; Filter the elements of each layer according to the preset selection conditions to obtain the target underground pipelines that meet the preset selection conditions; Extracting hidden attribute information of the urban underground pipeline CAD data; Acquire the protection targets and danger sources of the target urban area, and unify the target underground pipelines, the protection targets, and the danger sources into a target coordinate system; Determine the relevant protection targets and relevant hazard sources within the preset range of the target underground pipeline, associate the relevant protection targets and their protection attribute information, the relevant hazard sources and their hazard attribute information with the target underground pipeline and its attribute information to obtain merged attribute information, and convert the merged attribute information into a preset format.
2. The method for processing urban CAD data according to claim 1, characterized in that: The method further comprises: Obtaining original urban underground pipeline CAD data, and determining whether the original urban underground pipeline CAD data contains hidden attributes; In response to the original urban underground pipeline CAD data containing hidden attribute information, the original urban underground pipeline CAD data containing the hidden attribute information is read to obtain the urban underground pipeline CAD data to be processed.
3. The method for processing urban CAD data according to claim 2, characterized in that: The method further comprises obtaining the urban underground pipeline CAD data to be processed and extracting each layer element from the urban underground pipeline CAD data; wherein the layer element includes the underground pipelines in the target urban area, including: Establishing a mapping file template in a spatial data conversion processing system; wherein the mapping file template is used to connect to the urban underground pipeline CAD data; Creating a first reading module to define the data type and geometric parameters of the urban underground pipeline CAD data; The layer elements are extracted from the urban underground pipeline CAD data through the first reading module.
4. The method for processing urban CAD data according to claim 3, characterized in that: The step of extracting hidden attribute information from the urban underground pipeline CAD data includes: Opening a view of the urban underground pipeline CAD data, viewing and marking a storage location of undisclosed hidden attribute information of the urban underground pipeline CAD data; The storage location of the undisclosed hidden attribute information is input into a converter to convert the undisclosed hidden attribute information into disclosed attribute information.
5. The method for processing urban CAD data according to claim 4, characterized in that: The method further comprises: Establishing an attribute storage table, and storing the disclosed attribute information in the attribute storage table; The redundant fields of the attribute information stored in the attribute storage table are deleted to obtain a target attribute storage table.
6. The method for processing city CAD data according to claim 5, characterized in that: The method further comprises: Adding the merged attribute information to the target attribute storage table to obtain an updated attribute storage table; The update attribute storage table and the security attribute storage table are merged to obtain a complete attribute storage table; wherein, the security attribute storage table records the attribute information of spatial elements that do not have protection targets and danger sources within a preset range.
7. A device for processing urban CAD data, characterized in that: include: The first acquisition module is configured to obtain the CAD data of the urban underground pipelines to be processed in the target urban area, and extract each layer element from the CAD data of the urban underground pipelines; wherein the layer elements include the underground pipelines in the target urban area; A screening module is configured to screen the elements of each layer according to a preset selection condition to obtain a target underground pipeline that meets the preset selection condition; A second acquisition module is configured to extract hidden attribute information of the urban underground pipeline CAD data; A third acquisition module is configured to acquire the protection targets and danger sources of the target urban area, and unify the target underground pipelines, the protection targets, and the danger sources into a target coordinate system; The determination module is configured to determine the relevant protection targets and relevant hazardous sources within the preset range of the target underground pipeline, associate the relevant protection targets and their protection attribute information, the relevant hazardous sources and their hazardous attribute information with the target underground pipeline and its attribute information, obtain merged attribute information, and convert the merged attribute information into a preset format.
8. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method for processing urban CAD data according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium, characterized in that The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method for processing city CAD data according to any one of claims 1 to 6 are implemented.
10. A computer program product comprising computer program instructions, which, when executed on a computer, enable the computer to execute the steps of the method for processing urban CAD data according to any one of claims 1 to 6.