Drawing data conversion method and system based on GIS software and mapping software

CN118656433BActive Publication Date: 2026-09-18SHANDONG TRAFFIC PLANNING DESIGN INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410611071.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2026-09-18
Estimated Expiration
2044-05-16

AI Technical Summary

Technical Problem

[0005](1)将多个不同坐标系的图纸数据导入GIS软件时,需要逐一检查数据中的坐标系,再分别定义相应坐标系,工作量较大,效率较低;若工程人员不熟悉坐标系名称,容易出现坐标系定义错误,导致图纸数据的位置偏移

Benefits of technology

[0042]1. When batch processing drawing data, the coordinate system, central meridian, and zone information of the drawing data are parsed according to the set file naming rules. The zone number information of the drawing data is parsed according to the integer number of digits and values ​​of the Y coordinate. The EPSG CODE of the drawing data is determined according to the coordinate system, central meridian, zone, and zone number information. The coordinate system of the drawing data is defined in batches according to the EPSG CODE. This can solve the problem of drawing data position errors caused by uncertain coordinate system names and improve the efficiency and accuracy of defining coordinate systems for drawing data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656433B_ABST
    Figure CN118656433B_ABST
Patent Text Reader

Abstract

The present application relates to a drawing data conversion method and system based on GIS software and mapping software, EPSG CODE of the drawing data is parsed, the coordinate system of the drawing data is defined, and the GIS software is imported; the data type of the drawing data is judged, and corresponding post-processing is carried out according to the data type, the topology of the drawing data is converted into surface data; the layer field value of the surface data is obtained, the layer field value of the line data is updated into the surface data according to the spatial relationship, the surface elements that need to be deducted are queried and deleted according to the layer field value; the converted surface data is exported, the data conversion record table is generated, and the drawing data is corrected according to the recorded conversion information; other land use type surface data for superimposed analysis with the converted drawing data is imported, converted into the same coordinate system as the drawing data, and superimposed analysis is carried out to generate superimposed analysis results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of software engineering technology, specifically to a method and system for converting drawing data based on GIS software and cartographic software. Background Technology

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

[0003] During the land resource planning and design phase, it is necessary to calculate the positional relationship and overlapping area between the project's surface data and other land use type surface data. This allows for land use overlay analysis and adjustment of the project plan. This process requires converting the drawing data from engineering drawing software to GIS (Geographic Information System) software for further overlay analysis. The drawing data in engineering drawing software is typically land use boundary line data, which needs to be converted into surface data in GIS software. After deducting the non-project land use portions within the surface data, it is then overlaid, calculated, analyzed, and adjusted with other land use type data.

[0004] The following issues exist during the conversion of drawing data to GIS software:

[0005] (1) When importing drawing data from multiple different coordinate systems into GIS software, it is necessary to check the coordinate systems in the data one by one and then define the corresponding coordinate systems respectively, which is a lot of work and inefficient. If the engineers are not familiar with the coordinate system names, it is easy to make a mistake in the coordinate system definition, which will cause the position of the drawing data to shift.

[0006] (2) GIS software cannot convert non-closed line data into surface data, and the land use boundary lines in the drawing data are not checked in advance to see if they are closed; the number of breakpoints in the drawing data may be large and the distance between them may be close. If the non-closed positions in the drawing data are searched and connected manually, the work efficiency is low and there will be problems with not finding all the non-closed points.

[0007] (3) If the drawing data marks a non-project land map layer, the attributes of the drawing data will be lost when the line data is converted to polygon data in the GIS software. The layer attributes of non-project land cannot be queried in the polygon data, and the non-project land part cannot be deducted, resulting in inaccurate calculation results of project land overlay analysis.

[0008] (4) When converting a large amount of land use boundary line data of drawing data into area data, if the conversion fails, the GIS software cannot report the items and reasons for the conversion failure. It is necessary to manually search for the drawing data that failed to be converted and check the reasons for the conversion failure one by one, which is quite difficult. Summary of the Invention

[0009] To address the technical problems mentioned above, this invention provides a drawing data conversion method and system based on GIS and cartographic software, which realizes functions such as drawing data import, topology, conversion, deduction, overlay calculation with other land use data, and generation of overlay analysis charts, forming an automated tool.

[0010] To achieve the above objectives, the present invention adopts the following technical solution:

[0011] The first aspect of the present invention provides a method for converting drawing data based on GIS software and cartographic software, comprising the following steps:

[0012] Parse the EPSG code of the drawing data, define the coordinate system of the drawing data, and import it into GIS software;

[0013] Determine the data type of the drawing data and perform corresponding post-processing based on the data type to convert the drawing data topology into surface data;

[0014] Get the layer field values ​​of the polygon data, update the layer field values ​​of the line data to the polygon data according to the spatial relationship, and query and delete the polygon features that need to be deducted based on the layer field values;

[0015] Export the converted surface data, generate a data conversion record table, and correct the drawing data based on the conversion information recorded.

[0016] Imported and converted drawing data is used to perform overlay analysis on other land use type surface data. This data is then converted to the same coordinate system as the drawing data and overlay analysis is performed to generate overlay analysis results.

[0017] Furthermore, the EPSG code of the drawing data is parsed, the coordinate system of the drawing data is defined, and the data is imported into the GIS software. Specifically, the drawing data is obtained, and according to the set file naming rules, the coordinate system, central meridian, and zone information in the drawing data are parsed. The zone number information of the drawing data is parsed based on the integer number of digits and values ​​of the Y coordinate. Based on the coordinate system, central meridian, zone, and zone number information, the EPSG code of the drawing data is determined, the coordinate system of the drawing data is defined, and the drawing data is imported into the GIS software.

[0018] Furthermore, the data type of the drawing data is determined, and corresponding post-processing is performed based on the data type to convert the drawing data topology into surface data, specifically:

[0019] Based on the vector dataset tool of GIS software, determine the data type of drawing data;

[0020] When the data type is line data, based on the topology checking and processing tools of GIS software, duplicate lines in the drawing data are removed, breakpoints within the tolerance range are merged, and the line data is converted into polygon data. When line data cannot be converted into polygon data, the coordinates of non-closed points are obtained and conversion error information is recorded.

[0021] When the data type is polygon data, the polygon data is stored in the polygon data list; when the data type is point data, the conversion error that point data cannot be converted into polygon data is recorded in the conversion record table; when the data type is a composite type, it is processed as a line data type based on engineering experience.

[0022] Furthermore, the layer field values ​​of the polygon data are obtained, and the layer field values ​​of the line data are updated to the polygon data according to spatial relationships. Based on the layer field values, the polygon features that need to be deducted are queried and deleted. Specifically:

[0023] The drawing data is labeled with the names of the layers to be deducted according to the set layer name labeling rules; for polygon data with layer field values, the polygon features with layer field values ​​of "deducted" are erased using the overlay analysis tool of the GIS software;

[0024] When converting line data topology to polygon data, feature attributes are lost and polygon data without layer fields are generated. This paper stores the mapping relationship between the length of all line features in the line data and the layer field value. Based on the attribute update tool of GIS software, according to the spatial relationship between the line and the polygon, the length field value of the line feature with the longest included length is updated to the converted polygon data.

[0025] Based on the mapping relationship between the length of the recorded line data and the layer field values, update the layer field values ​​of the line data to the polygon data; based on the layer field values ​​of the polygon data, query and delete polygon features with a layer field value of "deduct".

[0026] Furthermore, the converted surface data is exported, a data conversion record table is generated, and the drawing data is corrected based on the conversion information recorded. Specifically:

[0027] Record the file name, project name, coordinate system information, data type, conversion information, floor area, and deducted area of ​​the drawing data in the conversion record table, and export the deducted surface data and the conversion record table;

[0028] The conversion information includes information on successful conversion or conversion errors. Successful conversion information includes the number of polygon features generated and deducted after conversion. Conversion error information includes line data not being closed, point data not being able to be converted into polygon data, and missing coordinate system information.

[0029] When the conversion error is due to missing coordinate system information, correct the file name of the drawing data according to the set file naming rules;

[0030] When the conversion error is that the line data is not closed, record the coordinates of all non-closed points, search for the corresponding non-closed points in the mapping software, and correct them into closed line data.

[0031] Furthermore, the imported and converted drawing data, along with other land use type surface data for overlay analysis, are converted to the same coordinate system as the drawing data and subjected to overlay analysis to generate overlay analysis results, specifically:

[0032] Based on the projection conversion tool of GIS software, all converted project surface data and other land use type surface data are converted into the same coordinate system and all project surface data are merged.

[0033] Based on the overlay analysis tool of GIS software, the intersecting area is calculated to obtain the field attributes of the land use type surface data that intersects with the project surface data.

[0034] Export the merged project surface data GIS file, export the overlay analysis results GIS file, and export a table recording the area and land use attributes of other land use types occupied by the project.

[0035] A second aspect of the present invention provides a system for implementing the above-described method, comprising:

[0036] The coordinate definition module is configured to: parse the EPSG CODE of the drawing data, define the coordinate system of the drawing data, and import it into the GIS software;

[0037] The topology conversion module is configured to: determine the data type of the drawing data, and perform corresponding post-processing based on the data type to convert the drawing data into surface data.

[0038] The feature deduction module is configured to: obtain the layer field values ​​of polygon data, update the layer field values ​​of line data to the polygon data according to spatial relationships, and query and delete the polygon features that need to be deducted based on the layer field values;

[0039] The conversion record module is configured to: export the converted surface data, generate a data conversion record table, and correct the drawing data based on the conversion information recorded;

[0040] The overlay analysis module is configured to: import and convert the drawing data into other land use type surface data for overlay analysis, convert it into the same coordinate system as the drawing data, perform overlay analysis, and generate overlay analysis results.

[0041] Compared with existing technologies, one or more of the above technical solutions have the following beneficial effects:

[0042] 1. When batch processing drawing data, the coordinate system, central meridian, and zone information of the drawing data are parsed according to the set file naming rules. The zone number information of the drawing data is parsed according to the integer number of digits and values ​​of the Y coordinate. The EPSG CODE of the drawing data is determined according to the coordinate system, central meridian, zone, and zone number information. The coordinate system of the drawing data is defined in batches according to the EPSG CODE. This can solve the problem of drawing data position errors caused by uncertain coordinate system names and improve the efficiency and accuracy of defining coordinate systems for drawing data.

[0043] 2. When converting line data to polygon data, use the topology check tool in GIS software to check for errors such as dangling lines within the lines. Record the coordinates of non-closed points in the line data. This helps engineers accurately search for breakpoints in the drawing data in the drafting software and correct them into closed line data, enabling the line data to be successfully converted into polygon data.

[0044] 3. Based on the spatial relationship where the longest line feature is contained within a polygon, the layer field values ​​of the line data are updated to the polygon data, obtaining the layer field values ​​of all features in the polygon data. This is used to query and delete polygon features that need to be deducted, which can solve the problem of attribute loss in drawing data when converting line data topology to polygon data. By deducting non-project land use based on the layer field values, the accuracy of project land overlay analysis results is improved.

[0045] 4. Record the conversion results of drawing data and generate a data conversion record table including file name, project name, coordinate system information, data type, conversion information, floor area, and deducted area. This table is used to verify the accuracy of the data conversion results and correct the drawing data based on the recorded conversion errors, reducing the workload of manually opening files to check conversion results and finding conversion errors. Attached Figure Description

[0046] The accompanying drawings, which form part of this invention, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an improper limitation of the invention.

[0047] Figure 1 This is a flowchart of the drawing data conversion process provided in one or more embodiments of the present invention;

[0048] Figure 2 This is a schematic diagram of a batch data conversion interface provided in one or more embodiments of the present invention;

[0049] Figure 3 This is a schematic diagram of data conversion records provided in one or more embodiments of the present invention;

[0050] Figure 4 This is a schematic diagram of the overlay analysis results of a single item provided by one or more embodiments of the present invention. Detailed Implementation

[0051] The present invention will be further described below with reference to the accompanying drawings and embodiments.

[0052] It should be noted that the following detailed descriptions are exemplary and intended to provide further illustration of the invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.

[0053] Engineering drawing software refers to the software that creates two-dimensional drawing data by combining points and lines, such as various versions of CAD software. In the following examples, engineering drawing software will be collectively referred to as CAD software, and the resulting drawing data will be collectively referred to as CAD data.

[0054] EPSG CODE is a dataset parameter of a coordinate reference system maintained and published by the European Petroleum Survey Group (EPG). Different combinations of reference ellipsoids, geodetic coordinate systems, and projected coordinate systems correspond to different EPSG IDs, known as EPSG CODEs. These represent specific information such as the ellipsoid, unit, geographic coordinate system, or projected coordinate system. EPSG has created maps for most regions of the world, but due to different coordinate systems, the maps vary. Specific EPSG CODEs can be found on public websites.

[0055] GIS (Geographic Information System) software refers to software that can provide functions for storing, displaying, and analyzing geographic data, such as SuperMap. However, there are many problems when using SuperMap for CAD data topology conversion and overlay analysis.

[0056] (1) When importing CAD data from multiple different coordinate systems into SuperMap, it is necessary to check the coordinate systems in the data one by one and then define the corresponding coordinate systems. This is a lot of work and inefficient. If the engineers are not familiar with the coordinate system names, it is easy to make a mistake in the coordinate system definition, which will cause the CAD data to shift.

[0057] (2) SuperMap cannot convert non-closed line data into surface data, and CAD land use line data generally does not check whether it is closed beforehand; the number of breakpoints in CAD data may be large and the distance between them may be close. If you manually search for and connect the non-closed positions in CAD data in CAD drawing software, the work efficiency is low and there will be problems with not finding all the non-closed points.

[0058] (3) If non-project land use map layers are marked in the CAD data, the attributes of the CAD data will be lost when the line data topology is converted into polygon data in SuperMap. It is impossible to query the layer attributes of non-project land use in the polygon data, and it is impossible to deduct the non-project land use part, resulting in inaccurate calculation results of project land use overlay analysis.

[0059] (4) When converting a large amount of CAD data from land use line data to surface data, if the conversion fails, SuperMap cannot report the items and reasons for the conversion failure. It is necessary to manually search for the drawing data that failed to be converted and check the reasons for the conversion failure one by one, which is quite difficult.

[0060] The following examples use SuperMap as an example to present a method and system for converting drawing data based on GIS and cartographic software. This solves the problems mentioned in the background technology, realizes the functions of CAD data import, topology, conversion, deduction, overlay calculation with other land use data, and generation of overlay analysis charts, and forms an automated tool.

[0061] Example 1:

[0062] like Figures 1-4 As shown, the method for converting drawing data based on GIS software and cartographic software includes the following steps:

[0063] Step 1: Parse the EPSG CODE of the CAD data and define coordinate systems in batches;

[0064] Place all CAD land boundary line data into the same initial folder, call the SuperMap CAD file import settings class, and set the import path of the CAD data and the SuperMap dataset to be placed after import.

[0065] The coordinate system, central meridian, zone, and zone number information of each CAD data are read in a loop to obtain the EPSG CODE of each CAD data.

[0066] Engineers typically annotate the coordinate system, central meridian, and zone information in CAD data. When submitting project documents, the standard format for the file name is "X Project_X Coordinate System_X Central Meridian_X Degree Zone". The file name of the CAD data is read, and the coordinate system, central meridian, and zone information of the data are parsed.

[0067] To obtain the EPSG code of CAD data, it is also necessary to acquire the zone number information of the data and identify whether the CAD data has a zone number; if the zone number information is missing, the EPSG code of the data cannot be determined. When the coordinate system, central meridian, and zone are the same, the EPSG code will differ for data with and without a zone number.

[0068] The original document coordinate system typically uses the Gauss-Kruger projection (2000 National Geodetic Coordinate System, CGCS2000), with either 6-degree or 3-degree zones. The 6-degree zones start from the Prime Meridian and are divided from west to east, with each 6-degree longitude difference forming a zone. There are a total of 60 zones globally, numbered 1 to 60. The 3-degree zones start from the 1°30'E meridian and are divided from west to east, with each 3-degree longitude difference forming a zone. There are a total of 120 zones globally, numbered 1 to 120. Within my country's longitude range, the 6-degree projection zone numbers range from 13 to 23, and the 3-degree projection zone numbers range from 24 to 45.

[0069] Call the geometry object class of SuperMap to read the X and Y coordinates of the CAD data. Based on the number of integer digits and the value of the Y coordinate, parse the zone number information of the CAD data. If the integer part of the Y coordinate of the CAD data is 8 digits, the data has a zone number, which is the first 2 digits of the integer part of the Y coordinate. If the integer part of the Y coordinate is 6 digits, the data does not have a zone number.

[0070] Call SuperMap's projection settings class to define the coordinate system of the CAD data according to the EPSG CODE of each CAD data item.

[0071] Step 2: Convert the topology into surface data;

[0072] Call the SuperMap vector dataset class to read the data type of the CAD data.

[0073] When the data type is line data, SuperMap's topology check class is called to remove duplicate lines and merge breakpoints within the tolerance range of 0.001m; the no-dangling-line topology rule within the line is used to check for line data errors.

[0074] If the line data topology check finds no errors, call the SuperMap topology processing class to convert the line data topology into polygon data and store it in the line-to-polygon data list;

[0075] If there are errors in the line data topology check, obtain the coordinates of the non-closed points, record the conversion error of non-closed line data in the conversion record table, and record the coordinates of the non-closed points.

[0076] When the data type is face data, the face data is stored in the face data list;

[0077] When the data type is point data, it cannot be converted to polygon data. Record the conversion error "Point data cannot be converted to polygon data" in the conversion record table.

[0078] When the data type is a composite type, based on engineering experience, it is processed as a linear data type, and the data type contained in the data is recorded in the conversion record table.

[0079] Step 3: Subtract the specified features from the polygon data;

[0080] Within the project site boundary line, there may be non-project site lines. The area defined by these non-project site lines is considered non-project land and needs to be deducted during project site overlay analysis. If non-project site lines exist in the CAD data, it is stipulated that all non-project site lines should be stored in the same layer, and the layer name should be labeled "Deduct".

[0081] For polygon data in the polygon data list, call the SuperMap overlay analysis class to erase polygon features whose layer field value is "deducted" using polygon features whose layer field value is not "deducted".

[0082] For polygon data in the line-to-polygon data list, when the line data is topologically converted to polygon data, feature attributes are lost and the polygon data does not have layer fields. It is necessary to update the field values ​​of the line data to the polygon data according to the spatial relationship.

[0083] Record the mapping relationship between the length of all line features in the line data and the layer field value, call the SuperMap attribute update class, and update the length field value of the line feature with the longest included length to the converted polygon data according to the spatial relationship between the line and the polygon.

[0084] Based on the mapping relationship between the recorded line data length and the layer field values, update the layer field values ​​of the line data to the polygon data;

[0085] Based on the layer field values ​​of the polygon data, query and delete polygon features whose layer field value is "deduct".

[0086] Call the SuperMap recordset class to record the number and area of ​​the deducted polygon features, and record the area occupied by the project after deduction.

[0087] Step 4: Export the converted surface data and conversion record table.

[0088] Call the Supermap vector dataset class, add a project name field to all transformed and subtracted polygon data and assign values, and store the polygon data in the dataset;

[0089] Call SuperMap's SHP file export settings class to set the exported polygon data dataset and SHP file export path, and export the polygon data as an SHP file.

[0090] Record all CAD data conversion information in an Excel spreadsheet to generate a conversion record table, and then export it to the selected export folder.

[0091] The fields in the conversion record table include file name, project name, coordinate system information, data type, conversion information, area occupied, and area deducted.

[0092] The coordinate system information and data type fields record the coordinate system and data type of the CAD data, which are used to check the accuracy of the CAD data import process into SuperMap.

[0093] The conversion information field records whether the conversion was successful or failed.

[0094] Information indicating a successful conversion includes the number of face features after the topology conversion, the number of face features deducted, and the area occupied and the area deducted, which are used to check the accuracy of the conversion and deduction process.

[0095] Error messages include: line data not closed, point data unable to be converted to surface data, and missing coordinate system information;

[0096] When the conversion error is due to missing coordinate system information, correct the file name of the drawing data according to the set file naming rules;

[0097] When the conversion error is that the line data is not closed, record the coordinates of all non-closed points, search for the corresponding non-closed points in the CAD drawing software, and correct them into closed line data.

[0098] Step 5, Overlay analysis.

[0099] The SHP file import settings class is called to import SHP files of other land use type surface data that are overlaid with the project surface data for analysis; the Supermap projection transformation class is called to convert all project surface data and other land use type surface data into the same coordinate system; the SuperMap vector dataset class is called to merge all project surface data into one SHP file, and the data before merging is distinguished according to the project name field value.

[0100] The Supermap overlay analysis class is called to calculate the intersection area and obtain the field attributes of the intersecting land use type surface data. The overlay analysis results of the merged project surface data and other land use type surface data are exported as an SHP file, and the calculation results of the area occupied by the project surface data in other land use type surface data and the land use attributes are exported as an Excel file.

[0101] When processing single CAD data and displaying spatial locations on a front-end interface, the following steps are included:

[0102] Step 1: Parse the CAD data;

[0103] Select the coordinate system, central meridian, zone, and zone number information of the CAD data to obtain the EPSG CODE of the CAD data; select the CAD data, call SuperMap's projection settings class, and define the coordinate system of the CAD data according to the EPSG CODE of the CAD data; display the location map of the CAD data on the front-end map interface.

[0104] Step 2: Perform the line-to-surface conversion function;

[0105] Call SuperMap's vector dataset class to read the data type of the CAD data;

[0106] When the data type is line data, SuperMap's topology check class is called to remove duplicate lines and merge breakpoints within the tolerance range of 0.001m; the no-dangling-line topology rule within the line is used to check for line data errors.

[0107] If the topology check finds no errors, the SuperMap topology processing class is called to convert the line data topology into polygon data. The positions of all features in the polygon data are then displayed on the front-end map interface, along with selection boxes for each feature.

[0108] If the topology check finds errors, obtain the coordinates of all non-closed points, display the positions of all non-closed points on the front-end map interface, and display the text information of the non-closed point coordinates; copy the coordinate text information, search for the point coordinates in the CAD drawing software, jump to the position of the non-closed point in the CAD line data, connect the breakpoints, and correct the non-closed CAD line data into closed line data.

[0109] When the data type is dot data, the front end displays a data type error.

[0110] When the data type is polygon data, the location of all features of the polygon data is displayed on the front-end map interface, and the selection boxes for each feature of the polygon data are also displayed.

[0111] When the data type is a composite type, it is processed as a linear data type, and the data type contained in the data is displayed on the front end.

[0112] Step 3: Select the surface features to participate in the overlay calculation;

[0113] Based on the location and area of ​​all elements in the transformed data, select the polygon elements to participate in the overlay calculation in the selection boxes of each polygon element; polygon elements that are not selected are non-project land that needs to be deducted and will not participate in the overlay calculation.

[0114] Step 4: Select the land use type surface data to overlay and analyze with the converted project data;

[0115] Call the SuperMap projection transformation class to convert its land use type surface data into the same coordinate system as the project surface data.

[0116] Step 5: Perform the overlay analysis function;

[0117] The SuperMap overlay analysis class is called to overlay the selected project surface features with the selected other land use type data; the intersection area is calculated, the location of the intersection surface features is displayed on the front-end map interface, and a table showing the area occupied by the project in other land use types and the land use attributes is displayed.

[0118] Use the chart export function to export images and tables showing the overlay analysis results.

[0119] Example 2:

[0120] A system for implementing the above method includes:

[0121] The coordinate definition module is configured to: import CAD data into SuperMap, read the coordinate system, central meridian, zone, and zone number information of the CAD data, obtain the EPSG CODE of the CAD data, and define the coordinate system of the CAD data according to the EPSG CODE.

[0122] The topology conversion module is configured to: determine the data type of the drawing data, perform corresponding post-processing based on the data type; when the data type is line data, perform topology checks and topology processing, remove duplicate lines from the drawing data, merge breakpoints within the tolerance range, and convert the line data into surface data; when line data cannot be converted into surface data, obtain the coordinates of non-closed points and record conversion error information.

[0123] The feature deduction module is configured to: obtain the layer field values ​​of polygon data; query and delete polygon features to be deducted based on the layer field values ​​of polygon data; when the polygon data has no layer field values, update the length field value of the longest contained line feature in the converted polygon data according to the spatial relationship between the line and the polygon; and update the layer field values ​​of the line data in the polygon data according to the mapping relationship between the recorded line data length and the layer field values.

[0124] The conversion record module is configured to: export the converted surface data, generate a data conversion record table, and record the file name, project name, coordinate system information, data type, conversion information, floor area, and deducted area of ​​the drawing data; check the conversion process of the CAD data based on the recorded conversion results, and correct the drawing data based on the recorded conversion errors.

[0125] The overlay analysis module is configured to: import and convert the project surface data into other land use type surface data for overlay analysis, convert it into the same coordinate system as the project surface data; and perform overlay analysis on the converted project surface data and other land use type surface data to generate overlay analysis result charts.

[0126] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for converting drawing data based on GIS software and cartographic software, characterized in that, Includes the following steps: Parse the EPSG code of the drawing data, define the coordinate system of the drawing data, and import it into GIS software; Determine the data type of the drawing data and perform corresponding post-processing based on the data type to convert the drawing data topology into surface data; Get the layer field values ​​of the polygon data, update the layer field values ​​of the line data to the polygon data according to the spatial relationship, and query and delete the polygon features that need to be deducted based on the layer field values; Export the converted surface data, generate a data conversion record table, and correct the drawing data based on the conversion information in the record; Imported and converted drawing data is used to perform overlay analysis on other land use type surface data. This data is then converted to the same coordinate system as the drawing data and overlay analysis is performed to generate overlay analysis results. This includes retrieving layer field values ​​from polygon data, updating layer field values ​​from line data to polygon data according to spatial relationships, querying and deleting polygon features that need to be deducted based on layer field values, and also includes: When converting line data topology to polygon data, feature attributes are lost and polygon data lacks layer fields. This paper stores the mapping relationship between the length of all line features in the line data and the layer field values. Based on the attribute update tool of GIS software, according to the spatial relationship between lines and polygons, the length field value of the line feature with the longest included length is updated to the converted polygon data.

2. The drawing data conversion method based on GIS software and cartographic software as described in claim 1, characterized in that, The process of parsing the EPSG code of drawing data, defining the coordinate system of the drawing data, and importing it into GIS software involves: acquiring the drawing data; parsing the coordinate system, central meridian, and zone information from the drawing data according to the set file naming rules; parsing the zone number information from the drawing data based on the integer number of digits and values ​​of the Y-coordinate; determining the EPSG code of the drawing data based on the coordinate system, central meridian, zone, and zone number information; defining the coordinate system of the drawing data; and importing the drawing data into the GIS software.

3. The drawing data conversion method based on GIS software and cartographic software as described in claim 1, characterized in that, Determine the data type of the drawing data and perform corresponding post-processing based on the data type, converting the drawing data topology into surface data, specifically: Based on the vector dataset tool of GIS software, determine the data type of drawing data; When the data type is line data, based on the topology checking and processing tools of GIS software, duplicate lines in the drawing data are removed, breakpoints within the tolerance range are merged, and the line data is converted into polygon data. When line data cannot be converted into polygon data, the coordinates of non-closed points are obtained and conversion error information is recorded. When the data type is face data, the face data is stored in the face data list; When the data type is point data, record the conversion error that point data cannot be converted into polygon data in the conversion record table; when the data type is composite type, process it as a line data type based on engineering experience.

4. The drawing data conversion method based on GIS software and cartographic software as described in claim 1, characterized in that, Retrieve the layer field values ​​from the polygon data, update the layer field values ​​from the line data to the polygon data according to spatial relationships, and query and delete the polygon features that need to be deducted based on the layer field values, including: The drawing data is labeled with the names of the layers to be deducted according to the set layer naming rules; For polygon data with layer field values, the overlay analysis tool of GIS software is used to erase polygon features with layer field values ​​other than "deduct" by using polygon features with layer field values ​​other than "deduct".

5. The drawing data conversion method based on GIS software and cartographic software as described in claim 1, characterized in that, The process includes retrieving layer field values ​​from polygon data, updating the layer field values ​​of line data to the polygon data according to spatial relationships, querying and deleting polygon features that need to be deducted based on the layer field values, and also includes: Based on the mapping relationship between the length of the recorded line data and the layer field values, update the layer field values ​​of the line data to the polygon data; based on the layer field values ​​of the polygon data, query and delete polygon features with a layer field value of "deduct".

6. The drawing data conversion method based on GIS software and cartographic software as described in claim 1, characterized in that, Export the converted surface data, generate a data conversion record table, and correct the drawing data based on the conversion information recorded. Specifically: Record the file name, project name, coordinate system information, data type, conversion information, floor area, and deducted area of ​​the drawing data in the conversion record table, and export the deducted surface data and the conversion record table; The conversion information includes information on successful conversion or conversion errors. Successful conversion information includes the number of polygon features generated and deducted after conversion. Conversion error information includes line data not being closed, point data being unable to be converted into polygon data, and missing coordinate system information.

7. The drawing data conversion method based on GIS software and cartographic software as described in claim 6, characterized in that, When the conversion error is due to missing coordinate system information, correct the file name of the drawing data according to the set file naming rules; When the conversion error is that the line data is not closed, record the coordinates of all non-closed points, search for the corresponding non-closed points in the mapping software, and correct them into closed line data.

8. The drawing data conversion method based on GIS software and cartographic software as described in claim 1, characterized in that, Imported and converted drawing data is used for overlay analysis of other land use type surface data. This data is then converted to the same coordinate system as the drawing data and overlay analysis is performed to generate the overlay analysis results, specifically: Based on the projection conversion tool of GIS software, all converted project surface data and other land use type surface data are converted into the same coordinate system and all project surface data are merged. Based on the overlay analysis tool of GIS software, the intersecting area is calculated to obtain the field attributes of the land use type surface data that intersects with the project surface data; Export the merged project surface data GIS file, export the overlay analysis results GIS file, and export a table recording the area and land use attributes of other land use types occupied by the project.

9. A drawing data conversion system based on GIS software and cartographic software, characterized in that, include: The coordinate definition module is configured to: parse the EPSG CODE of the drawing data, define the coordinate system of the drawing data, and import it into the GIS software; The topology conversion module is configured to: determine the data type of the drawing data, and perform corresponding post-processing based on the data type to convert the drawing data topology into surface data; The feature deduction module is configured to: obtain the layer field values ​​of polygon data, update the layer field values ​​of line data to the polygon data according to spatial relationships, and query and delete the polygon features that need to be deducted based on the layer field values; The conversion record module is configured to: export the converted surface data, generate a data conversion record table, and correct the drawing data based on the conversion information recorded; The overlay analysis module is configured to: import and convert the drawing data into other land use type surface data for overlay analysis, convert it into the same coordinate system as the drawing data, perform overlay analysis, and generate overlay analysis results; This includes retrieving layer field values ​​from polygon data, updating layer field values ​​from line data to polygon data according to spatial relationships, querying and deleting polygon features that need to be deducted based on layer field values, and also includes: When converting line data topology to polygon data, feature attributes are lost and polygon data lacks layer fields. This paper stores the mapping relationship between the length of all line features in the line data and the layer field values. Based on the attribute update tool of GIS software, according to the spatial relationship between lines and polygons, the length field value of the line feature with the longest included length is updated to the converted polygon data.