Automatic drawing method for religious boundary map and boundary point

By using the Gauss-Krüger inverse formula and VBA programming in the AutoCAD environment, the automatic drawing of the Zonghai boundary map and boundary points is realized, which solves the problem of cumbersome manual operation in the existing technology and improves the efficiency and accuracy of the Zonghai map drawing.

CN120707694APending Publication Date: 2025-09-26王锦明
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510914341.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-03
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

The existing technology cannot realize the automatic drawing of the Zonghai boundary map in the AutoCAD environment, especially the automatic annotation of longitude and latitude, and the manual operation is cumbersome, resulting in low efficiency and poor accuracy in the drawing of the Zonghai boundary map.

Method used

Through programming, the Gauss-Krüger inverse formula is used to automatically convert projection coordinates into longitude and latitude coordinates in degree, minute, and second format. Combined with AutoCAD's VBA programming, the zonghai boundary map and boundary points are automatically drawn, including drawing frames, list boxes, and symbol annotations, reducing manual operations.

Benefits of technology

It has realized the automated drawing of Zonghai boundary maps and boundary points, improved drawing efficiency and accuracy, standardized the map format, reduced manual repetitive operations, and improved the overall quality of Zonghai maps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120707694A_ABST
    Figure CN120707694A_ABST
Patent Text Reader

Abstract

The invention relates to an automatic drawing method for a religious boundary map and a boundary point, and the method comprises the following steps: achieving the automatic conversion of projection coordinates into latitude and longitude coordinates in a degree-minute-second format through programming processing according to a Gaussian-Kruger inverse calculation formula; the method comprises the following steps: judging the range of a religious boundary site, selecting proper mapsheet size and mapping geographic parameters, reading a projection coordinate file of the religious boundary site point, combining mapping information and internal unit contents, automatically drawing a religious boundary site map according with technical specifications through programming processing, and realizing automatic annotation of the religious boundary site point. The function of automatically converting projection coordinates to latitude and longitude coordinates in a degree, minute and second format can be achieved in an AutoCAD model space environment, independent calculation and manual repeated operation are reduced, and working efficiency and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of drawing sea area maps, in particular to a method for automatically drawing sea boundary maps and boundary points. Background Art

[0002] The Zonghai map is a general term for various maps that accurately record the location, boundary points, boundary lines and relationships with adjacent Zonghai of sea area use projects. It is an important basis for declaring the ownership of sea area use rights and is also the main attachment of real estate title certificates (sea area use rights) and Zonghai archives. The Zonghai map includes the Zonghai location map, the Zonghai boundary map and the Zonghai plan layout map. Among them, the Zonghai boundary map refers to a map that reflects the distribution of boundary points, boundary range, sea area, purpose, sea use method and adjacent Zonghai information of the Zonghai and its internal units. Standardized and systematic Zonghai map automatic drawing technology can significantly improve the speed and accuracy of Zonghai map drawing and improve the overall quality of Zonghai map. It is of great significance to technicians in marine surveys and sea area use demonstrations.

[0003] With the popularization of relevant technical specifications and drawing software, AutoCAD and ArcGIS, as mainstream drawing and geographic information system software, are widely used in the creation of zonghai maps. ArcGIS, due to its advantages in spatial data attribute management, accurate raster map registration, and flexible configuration of drawing frames and latitude and longitude grids, is the preferred drawing software for zonghai location maps and zonghai plan layout maps. Most sea area use projects use AutoCAD software during the design and construction stages, and the demarcation of zonghai boundaries requires a large amount of precise graphic vector operations. Therefore, AutoCAD has advantages over ArcGIS in the creation of zonghai boundary maps. However, AutoCAD also has many problems, such as the inability to directly generate zonghai boundary maps with automatic annotation of latitude and longitude at the four corners. The coordinate information table on the right, the internal unit list, and the information list need to be repeatedly manually added and subtracted according to actual conditions, and the layout and automatic annotation of zonghai boundary points cannot be achieved.

[0004] In the article "Research on the Method of Drawing Zonghai Maps in the ArcGIS Environment - Taking the Marine Development and Utilization Activities along the Yantai Coast as an Example", Feng Yinyin et al. proposed techniques and methods for drawing Zonghai maps in the ArcGIS environment. The Zonghai boundary map frame is automatically applied in the later stage after the first manual production by ArcGIS; the Zonghai boundary points can be imported into ArcGIS from table data and the boundary point layer data can be generated, which can realize the automatic labeling of boundary points. The relevant tables on the right side of the Zonghai boundary map can be imported into ArcGIS through the interactive processing of ArcGIS and Excel data. However, in actual operation, the automatic labeling of Zonghai boundary points by ArcGIS is usually determined automatically by the system, and manual intervention is still required in the later stage to achieve an aesthetically pleasing and readable effect; the adjustment of the Zonghai internal cell frame and the Zonghai boundary point list box on the right side requires a lot of manual operation, and it is very easy to cause differences in table format, font size, etc.

[0005] In "Rapid and Automated Drawing Technology for Zonghai Boundary Maps Based on ObjectARX," Sun Yuchao et al. proposed using the ObjectARX development kit to redevelop AutoCAD software within a single AutoCAD environment, enabling rapid and automated drawing of Zonghai Boundary Maps. This technology, based on AutoCAD's layout and viewport, requires frequent switching between the model and layout spaces during the drawing process. This can easily lead to scale changes and misalignment between the viewport range and the model space due to misoperation. Furthermore, this technology currently only allows the drawing of Zonghai Boundary Maps for a single sea-use unit. Furthermore, ObjectARX runs in the Windows and V++ programming environments, requiring high programming skills from the developer and a complex development process. Furthermore, the program runs at high risk; a crash of the ObjectARX program often causes a crash of AutoCAD or even Windows. Summary of the Invention

[0006] In view of the shortcomings of the existing technology, the purpose of the present invention is to provide a method for automatically drawing a zonghai boundary map and boundary points, which can reduce repeated manual operations and improve the standardization and accuracy of map drawing.

[0007] The above-mentioned object of the present invention is achieved through the following technical solutions:

[0008] The method for automatically drawing a Zonghai boundary map and boundary points comprises the following steps: automatically converting projection coordinates into latitude and longitude coordinates in degree-minute-second format by programming based on the Gauss-Krüger inverse calculation formula;

[0009] By judging the scope of the Zonghai boundary, selecting appropriate map size and cartographic geographic parameters, reading the projection coordinate file of the Zonghai boundary points, combining the mapping information and internal unit content, and automatically drawing the Zonghai boundary map that meets technical specifications through programming processing, and realizing automatic annotation of the Zonghai boundary points.

[0010] As a further technical solution of the present invention: the programming process includes the following steps:

[0011] Step 1: Determine the drawing sheet size, cartographic geographic parameters, the number of internal units of the zonghai and the number of three-dimensional title confirmation units, and mapping information based on the scope and complexity of the zonghai boundary;

[0012] Step 2: Draw the inner frame and annotate the latitude and longitude coordinates of the four corners, draw the compass, scale, and scale stick, draw the outer frame and map title, draw the cartographic information list box, the Zonghai internal unit list box, and the three-dimensional title confirmation unit list box, and fill in the corresponding symbols and annotations;

[0013] Step 3: Determine whether to read the projection coordinate file of the Zonghai boundary point. If so, execute step 4; if not, execute step 5.

[0014] Step 4: read the projection coordinate file of the Zonghai boundary point, convert the read projection coordinates of the Zonghai boundary point into longitude and latitude coordinates, draw a Zonghai boundary point list box and fill in the converted longitude and latitude coordinates of the Zonghai boundary point, draw the Zonghai boundary point symbol and number it;

[0015] Step 5. Draw a list box of the Zonghai boundary points and set the longitude and latitude as a single annotation.

[0016] As a further technical solution of the present invention: Step 1 specifically includes the following steps:

[0017] Step 1a: Determine the scope of the Zonghai site, taking into account the project scope, shape, and complexity, and select A4 or A3 as the drawing size, which should occupy 1 / 4 to 1 / 3 of the drawing frame;

[0018] Step 1b: Cartographic geographic parameters include scale, coordinate system, projection, and central meridian;

[0019] Step 1c, determine the number of internal units of the Zonghai and the number of stereo rights confirmation units within the map range;

[0020] Step 1d: Determine the map title, surveying and mapping unit, drawing date, surveyor, draftsman, and reviewer.

[0021] As a further technical solution of the present invention: Step 2 specifically includes the following steps:

[0022] Step 2a: Use the GetPoint command to obtain the projection coordinates of the lower left corner of the inner frame, and use them as the reference point for the automatic drawing of the boundary map of the Zonghai area;

[0023] Step 2b: Set corresponding layers for each unit frame of the Zonghai boundary map to facilitate subsequent retrieval, copying, and moving operations;

[0024] Step 2c: Based on the drawing reference point and the set parameters, draw the inner frame, outer frame, mapping information list box, Zonghai internal unit list box, and three-dimensional right confirmation unit list box in the AutoCAD model space, draw the drawing name annotation and the symbol annotation of each unit frame content, and draw the compass, scale, and scale bar mapping auxiliary elements, so as to achieve the effect of "one-time parameter setting and one-time frame formation";

[0025] The Gauss-Krüger inverse calculation function is used to automatically convert the projection coordinates of the four corners of the inner frame into longitude and latitude coordinates in degree, minute and second format and annotate them, which solves the difficulty of automatic annotation of longitude and latitude in the AutoCAD environment.

[0026] As a further technical solution of the present invention: Step 4 specifically includes the following steps:

[0027] Step 4a, set the display drawing layer of the Zonghai boundary points to "JZD_YYYYMMDD", where YYYYMMDD is the system date automatically read by the program, so as to facilitate the relevant vector operations on the displayed Zonghai boundary points;

[0028] Step 4b, using VBA to call the Autolisp function (getfiled) to open a file selection dialog box, and read the projection coordinate file of the Zonghai boundary point (the file filter suffix is ​​set to "*.XY"). This solves the problem that the file selection dialog box cannot be opened by calling the CommonDialog control under the conventional 64-bit operating system, realizes direct human-computer interaction, and saves the trouble of manually modifying the file path each time;

[0029] Step 4c: Count the number of points contained in the read Zonghai boundary point projection file, and use this to calculate the total row height H1 (including the header) required to annotate the latitude and longitude coordinates of all Zonghai boundary points. Subtract the width of the cartographic information list box and the width of the internal unit list box (including the stereo rights confirmation list box) from the width of the internal map frame, and calculate the total height H2 of the Zonghai boundary point list box that can be placed in the remaining map sheet;

[0030] When H1>H2, take H2 as the height value H of the list box of the Zonghai boundary points and calculate the number of Zonghai boundary points whose longitude and latitude coordinates can be annotated;

[0031] When H1≤H2, H1 is used as the height value H of the list box of the Zonghai boundary points. At this time, the longitude and latitude coordinates of the Zonghai boundary points read can be noted;

[0032] The purpose of this is to dynamically adjust the height and latitude and longitude annotations of the Zonghai boundary point list box according to actual conditions, so as to achieve a fixed position of each unit box and a unified overall map format;

[0033] Step 4d: If the number of read boundary points is small and the distribution is relatively even, you can choose to directly plot them according to the scale;

[0034] When there are a large number of boundary points and their distribution is complex, in order to facilitate the later modification of the map, you can choose to display the map at a scale reduced by 10 times.

[0035] As a further technical solution of the present invention: Step 5 specifically includes the following steps:

[0036] Step 5a: Subtract the width of the cartographic information list frame and the width of the internal unit list frame (including the three-dimensional title confirmation list frame) from the width of the inner map frame to calculate the total height of the list frame of the zonghai boundary points that can be placed in the remaining map sheet;

[0037] Step 5b: Draw a list box of the Zonghai boundary points, and set the longitude and latitude of the Zonghai boundary points as a single annotation, which can be manually modified later.

[0038] As a further technical solution of the present invention: the method uses VBA to write Function functions (DrawB, DrawL) to realize the function of automatically converting projection coordinates into longitude and latitude coordinates in degree, minute and second format, and writes a program visual interactive interface to directly realize the automatic drawing of the zonghai boundary map and boundary points in the AutoCAD model space.

[0039] In summary, the present invention includes at least one of the following beneficial technical effects:

[0040] 1. The present invention discloses a method for automatically drawing a zonghai boundary map and boundary points, which can realize the function of automatically converting projection coordinates to latitude and longitude coordinates in degree, minute and second format in the AutoCAD model space environment, reducing separate calculations and manual repetitive operations, and improving work efficiency and accuracy.

[0041] 2. The present invention automatically draws the corresponding list box and fills in the relevant content based on the input number of internal units of the Zonghai area and the number of three-dimensional title confirmation units, and calculates the remaining frame height at the same time. When the Zonghai boundary point projection coordinate file is read, the remaining frame height and the number of read Zonghai boundary points are judged and analyzed, and a Zonghai boundary point list box with a full or indented remaining frame height is automatically generated and filled with the Zonghai boundary point coordinates converted to the longitude and latitude format; when the Zonghai boundary point projection coordinate file is not read, the Zonghai boundary point list box is drawn with a full remaining frame height and a single longitude and latitude annotation is made. This standardizes the position and format of each information column on the right side of the Zonghai boundary map and minimizes the trouble of manual repeated operations, thereby improving the standardization of mapping and the uniformity of format.

[0042] 3. According to the distribution and complexity of the zonghai boundary points, the present invention can flexibly draw the zonghai boundary point symbols and annotations according to the scale or reduce them by 10 times, thereby improving the efficiency of later map finishing.

[0043] 4. The present invention utilizes the secondary development platform integrated with AutoCAD to write a program visual interactive interface. The selection and setting of various parameters are intuitive and clear. The program has a high degree of integration and is simple and easy to use. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 The present invention is a flow chart of the method for automatically drawing a zonghai boundary map and boundary points.

[0045] Figure 2 The present invention is a program interface diagram for automatically drawing a zonghai boundary map and boundary points.

[0046] Figure 3 The list box of the zonghai boundary points is automatically drawn according to the full height of the remaining frame in the example of the present invention and the coordinate map of the zonghai boundary points converted into the latitude and longitude format is automatically filled in.

[0047] Figure 4 The example of the present invention is a list box of zonghai boundary points that is automatically indented and drawn according to the actual number of zonghai boundary points and automatically filled with the zonghai boundary point coordinate map converted into the latitude and longitude format. DETAILED DESCRIPTION

[0048] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application; it is obvious that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0049] In the description of this application, it should be noted that the terms "upper," "lower," "inner," "outer," "top / bottom," and the like, indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings and are intended solely to facilitate the description of this application and simplify the description. They do not indicate or imply that the devices or components referred to must have a specific orientation, be constructed, or operate in a specific orientation. Therefore, they should not be construed as limitations on this application. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0050] In the description of this application, it should be noted that, unless otherwise expressly specified or limited, the terms "installed," "provided with," "mounted / connected," and "connected" should be understood in a broad sense. For example, "connected" can mean a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be internal communication between two components. Those skilled in the art will understand the specific meanings of the above terms in this application based on the specific circumstances.

[0051] Example 1:

[0052] Reference Figure 1 , is a method for automatically drawing a Zonghai boundary map and boundary points disclosed in the present invention, comprising the following steps: according to the Gauss-Krüger inverse calculation formula, automatically converting the projection coordinates into latitude and longitude coordinates in the degree, minute and second format through programming;

[0053] By judging the scope of the Zonghai boundary, selecting appropriate map size and cartographic geographic parameters, reading the projection coordinate file of the Zonghai boundary points, combining the mapping information and internal unit content, and automatically drawing the Zonghai boundary map that meets technical specifications through programming processing, and realizing automatic annotation of the Zonghai boundary points.

[0054] The programming process includes the following steps:

[0055] Step 1: Determine the drawing sheet size, cartographic geographic parameters, the number of internal units of the zonghai and the number of three-dimensional title confirmation units, and mapping information based on the scope and complexity of the zonghai boundary;

[0056] Step 1 specifically includes the following steps:

[0057] Step 1a: Determine the scope of the Zonghai site, taking into account the project scope, shape, and complexity, and select A4 or A3 as the drawing size, which should occupy 1 / 4 to 1 / 3 of the drawing frame;

[0058] Step 1b: Cartographic geographic parameters include scale, coordinate system, projection, and central meridian;

[0059] Step 1c, determine the number of internal units of the Zonghai and the number of stereo rights confirmation units within the map range;

[0060] Step 1d: Determine the map title, surveying and mapping unit, drawing date, surveyor, draftsman, and reviewer.

[0061] Step 2: Draw the inner frame and annotate the latitude and longitude coordinates of the four corners, draw the compass, scale, and scale stick, draw the outer frame and map title, draw the cartographic information list box, the Zonghai internal unit list box, and the three-dimensional title confirmation unit list box, and fill in the corresponding symbols and annotations;

[0062] Step 2 specifically includes the following steps:

[0063] Step 2a: Use the GetPoint command to obtain the projection coordinates of the lower left corner of the inner frame, and use them as the reference point for the automatic drawing of the boundary map of the Zonghai area;

[0064] Step 2b: Set corresponding layers for each unit frame of the Zonghai boundary map to facilitate subsequent retrieval, copying, and moving operations;

[0065] Step 2c: Based on the drawing reference point and the set parameters, draw the inner frame, outer frame, mapping information list box, Zonghai internal unit list box, and three-dimensional right confirmation unit list box in the AutoCAD model space, draw the drawing name annotation and the symbol annotation of each unit frame content, and draw the compass, scale, and scale bar mapping auxiliary elements, so as to achieve the effect of "one-time parameter setting and one-time frame formation";

[0066] The Gauss-Krüger inverse calculation function is used to automatically convert the projection coordinates of the four corners of the inner frame into longitude and latitude coordinates in degree, minute and second format and annotate them, which solves the difficulty of automatic annotation of longitude and latitude in the AutoCAD environment.

[0067] Step 3: Determine whether to read the projection coordinate file of the Zonghai boundary point. If so, execute step 4; if not, execute step 5.

[0068] Step 4: read the projection coordinate file of the Zonghai boundary point, convert the read projection coordinates of the Zonghai boundary point into longitude and latitude coordinates, draw a Zonghai boundary point list box and fill in the converted longitude and latitude coordinates of the Zonghai boundary point, draw the Zonghai boundary point symbol and number it;

[0069] Step 4 specifically includes the following steps:

[0070] Step 4a, set the display drawing layer of the Zonghai boundary points to "JZD_YYYYMMDD", where YYYYMMDD is the system date automatically read by the program, so as to facilitate the relevant vector operations on the displayed Zonghai boundary points;

[0071] Step 4b, using VBA to call the Autolisp function (getfiled) to open a file selection dialog box, and read the projection coordinate file of the Zonghai boundary point (the file filter suffix is ​​set to "*.XY"). This solves the problem that the file selection dialog box cannot be opened by calling the CommonDialog control under the conventional 64-bit operating system, realizes direct human-computer interaction, and saves the trouble of manually modifying the file path each time;

[0072] Step 4c: Count the number of points contained in the read Zonghai boundary point projection file, and use this to calculate the total row height H1 (including the header) required to annotate the latitude and longitude coordinates of all Zonghai boundary points. Subtract the width of the cartographic information list box and the width of the internal unit list box (including the stereo rights confirmation list box) from the width of the internal map frame, and calculate the total height H2 of the Zonghai boundary point list box that can be placed in the remaining map sheet;

[0073] When H1>H2, take H2 as the height value H of the list box of the Zonghai boundary points and calculate the number of Zonghai boundary points whose longitude and latitude coordinates can be annotated;

[0074] When H1≤H2, H1 is used as the height value H of the list box of the Zonghai boundary points. At this time, the longitude and latitude coordinates of the Zonghai boundary points read can be noted;

[0075] The purpose of this is to dynamically adjust the height and latitude and longitude annotations of the Zonghai boundary point list box according to actual conditions, so as to achieve a fixed position of each unit box and a unified overall map format;

[0076] Step 4d: If the number of read boundary points is small and the distribution is relatively even, you can choose to directly plot them according to the scale;

[0077] When there are a large number of boundary points and their distribution is complex, in order to facilitate the later modification of the map, you can choose to display the map at a scale reduced by 10 times.

[0078] Step 5: Draw a list box of the Zonghai boundary points, and set the longitude and latitude as a single annotation;

[0079] Step 5 specifically includes the following steps:

[0080] Step 5a: Subtract the width of the cartographic information list frame and the width of the internal unit list frame (including the three-dimensional title confirmation list frame) from the width of the inner map frame to calculate the total height of the list frame of the zonghai boundary points that can be placed in the remaining map sheet;

[0081] Step 5b: Draw a list box of the Zonghai boundary points, and set the longitude and latitude of the Zonghai boundary points as a single annotation, which can be manually modified later.

[0082] This method uses VBA to write Function functions (DrawB, DrawL) to realize the automatic conversion of projection coordinates into longitude and latitude coordinates in degree, minute and second format, and writes a program visual interactive interface to directly realize the automatic drawing of zonghai boundary map and boundary points in AutoCAD model space.

[0083] like Figure 1 and Figure 2 As shown, the present invention provides a technology for automatically drawing zonghai boundary maps and boundary points based on the research and practice of drawing zonghai boundary maps for sea area use rights. First, the drawing parameters such as the drawing sheet size and cartographic geographic parameters, zonghai units, drawing units, and personnel are determined. Then, the AutoCAD Visual Basic for Applications (VBA) secondary development platform is used to write a function that automatically converts projection coordinates to latitude and longitude coordinates in the degree, minute, and second format, and automatically draws zonghai boundary maps and boundary points. At the same time, it can flexibly choose whether to read the zonghai boundary point projection coordinate file, and adopt different methods to draw the zonghai boundary point coordinate annotations based on the selection result.

[0084] like Figure 1 As shown, the present invention mainly includes three steps: determining drawing parameters, drawing a map of the main sea boundary, and classifying and processing the main sea boundary points. This embodiment uses the 2025 Shanghai Marine Ecological Protection and Restoration Project (Hangzhou Bay) (hereinafter referred to as the "Hangzhou Bay Ecological Restoration Project") as an example to illustrate the three steps respectively:

[0085] (1) Determination of drawing parameters:

[0086] The Hangzhou Bay Ecological Restoration Project is located on the north shore of Hangzhou Bay and in the waters near Dajinshan Island in Jinshan District, Shanghai. The project center is at 30°43′55.3″N, 121°24′46.7″E. The sea-use units include oyster reefs, ecological monitoring and early warning buoys, bioherms, beach protection dams, riprap belts, P-shaped reefs, warning buoys, and maintenance piers. There are many sea-use units and they are widely distributed. In order to fully reflect the actual sea use of each sea-use unit, clearly draw the sea area of ​​each sea-use unit, and reflect the distribution of sea boundary points, the Hangzhou Bay Ecological Restoration Project Sea Boundary Map was drawn using A4 as the drawing sheet and reasonably divided into sections and determined the drawing scale based on the actual situation. The specific information is shown in Table 1:

[0087] Table 1 Hangzhou Bay Ecological Restoration Project Map Information Column

[0088]

[0089] According to the current relevant technical specifications, the 2000 National Geodetic Coordinate System (CGCS2000) is used as the coordinate system for this drawing, the Gauss-Krüger projection is used, 121°30′E is the central meridian, the elevation datum is the 1985 National Elevation Datum, and the depth datum is the local theoretical lowest tide level; the surveyor, draftsman, and reviewer are all relevant technical personnel of this unit, and their respective electronic signatures are called through the program. The drawing date is April 9, 2025.

[0090] (2) Drawing of Zonghai Boundary Map:

[0091] The drawing of the Zonghai boundary map mainly includes the drawing of various unit frames, various text elements and symbol annotations, etc., and specifically includes the following steps:

[0092] 11) Use the GetPoint command to obtain the projection coordinates of the lower left corner of the inner frame, which will be used as the reference point for the automatic drawing of the boundary map of this zonghai.

[0093] 12) Set corresponding layers for each unit frame of the Zonghai boundary map to facilitate subsequent retrieval, copying, moving and other operations;

[0094] 13) Based on the drawing reference point and the set parameters, the inner frame, outer frame, mapping information list box, Zonghai internal unit list box and stereo rights confirmation unit list box are drawn in the AutoCAD model space, the drawing name annotation and the symbol annotation of each unit frame content are drawn, and the compass, scale, scale bar and other auxiliary mapping elements are drawn, which can achieve the effect of "one-time parameter setting and one-time drawing frame formation"; the Gauss-Krüger inverse calculation function is used to automatically convert the projection coordinates of the four corners of the inner frame into longitude and latitude coordinates in the degree, minute and second format and annotate them, solving the difficulty of automatic longitude and latitude annotation in the AutoCAD environment;

[0095] (3) Classification and processing of Zonghai boundary points:

[0096] For Zonghai boundary points, you can flexibly choose whether to include them in the Zonghai boundary map. If the Zonghai boundary points on the map are complex and dense, you can choose to draw them at a scale 10 times smaller than the map scale. If the Zonghai boundary points are few and regular, you can choose to draw them directly at the map scale.

[0097] Read the projection coordinate file of the Zonghai boundary points, count the number of Zonghai boundary points contained in the file, and calculate the total line height H1 (including the header) required to display all the Zonghai boundary points. Subtract the width of the cartographic information list frame and the width of the internal unit list frame (including the stereo rights confirmation list frame) from the width of the inner map frame (17cm on the map) to calculate the total height H2 of the Zonghai boundary point list frame that can be placed in the remaining map sheet. When H1>H2, use H2 as the Zonghai boundary point list frame height H and calculate the number of Zonghai boundary points that can be displayed (see Figure 3 ); When H1≤H2, H1 is the height value H of the list box of the zonghai boundary points. At this time, all the zonghai boundary points read can be displayed (see Figure 4 ) Based on the height value H, the AddLightWeightPolyline command is used to draw a list box of Zonghai boundary points. The Function function is used to convert the projection coordinates of the Zonghai boundary points into longitude and latitude coordinates in degrees, minutes, and seconds format, and then the AddMText command is used to display them. The automatic display of Zonghai boundary points and the automatic drawing of the Zonghai boundary point list box not only standardize the Zonghai boundary map format, but also greatly reduce the repetitive manual operations and greatly improve the efficiency of Zonghai boundary map drawing.

[0098] The implementation principle of the present invention is as follows: the present invention discloses a method for automatically drawing a zonghai boundary map and boundary points, which can realize the function of automatically converting the projection coordinates to the latitude and longitude coordinates in the degree, minute and second format in the AutoCAD model space environment, reducing separate calculations and manual repetitive operations, and improving work efficiency and accuracy.

[0099] The embodiments of this specific implementation method are all preferred embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for automatically drawing a Zonghai boundary map and boundary points, characterized in that: The following steps are involved: According to the Gauss-Krüger inverse calculation formula, the projection coordinates are automatically converted into latitude and longitude coordinates in degree, minute and second format through programming. By judging the scope of the Zonghai boundary, selecting appropriate map size and cartographic geographic parameters, reading the projection coordinate file of the Zonghai boundary points, combining the mapping information and internal unit content, and automatically drawing the Zonghai boundary map that meets technical specifications through programming processing, and realizing automatic annotation of the Zonghai boundary points.

2. The method for automatically drawing a Zonghai boundary map and boundary points according to claim 1, characterized in that: The programming process includes the following steps: Step 1: Determine the drawing sheet size, cartographic geographic parameters, the number of internal units of the zonghai and the number of three-dimensional title confirmation units, and mapping information based on the scope and complexity of the zonghai boundary; Step 2: Draw the inner frame and annotate the latitude and longitude coordinates of the four corners, draw the compass, scale, and scale stick, draw the outer frame and map title, draw the cartographic information list box, the Zonghai internal unit list box, and the three-dimensional title confirmation unit list box, and fill in the corresponding symbols and annotations; Step 3: Determine whether to read the projection coordinate file of the Zonghai boundary point. If so, execute step 4; if not, execute step 5. Step 4: read the projection coordinate file of the Zonghai boundary point, convert the read projection coordinates of the Zonghai boundary point into longitude and latitude coordinates, draw a Zonghai boundary point list box and fill in the converted longitude and latitude coordinates of the Zonghai boundary point, draw the Zonghai boundary point symbol and number it; Step 5. Draw a list box of the Zonghai boundary points and set the longitude and latitude as a single annotation.

3. The method for automatically drawing a Zonghai boundary map and boundary points according to claim 2, characterized in that: The step 1 specifically includes the following steps: Step 1a: Determine the scope of the Zonghai site, taking into account the project scope, shape, and complexity, and select A4 or A3 as the drawing size, which should occupy 1 / 4 to 1 / 3 of the drawing frame; Step 1b: Cartographic geographic parameters include scale, coordinate system, projection, and central meridian; Step 1c, determine the number of internal units of the Zonghai and the number of stereo rights confirmation units within the map range; Step 1d: Determine the map title, surveying and mapping unit, drawing date, surveyor, draftsman, and reviewer.

4. The method for automatically drawing a Zonghai boundary map and boundary points according to claim 2, characterized in that: The step 2 specifically includes the following steps: Step 2a: Use the GetPoint command to obtain the projection coordinates of the lower left corner of the inner frame, and use them as the reference point for the automatic drawing of the boundary map of the Zonghai area; Step 2b: Set corresponding layers for each unit frame of the Zonghai boundary map to facilitate subsequent retrieval, copying, and moving operations; Step 2c: Based on the drawing reference point and the set parameters, draw the inner frame, outer frame, mapping information list box, Zonghai internal unit list box, and three-dimensional right confirmation unit list box in the AutoCAD model space, draw the drawing name annotation and the symbol annotation of each unit frame content, and draw the compass, scale, and scale bar mapping auxiliary elements, so as to achieve the effect of "one-time parameter setting and one-time frame formation"; The Gauss-Krüger inverse calculation function is used to automatically convert the projection coordinates of the four corners of the inner frame into longitude and latitude coordinates in degree, minute and second format and annotate them, which solves the difficulty of automatic annotation of longitude and latitude in the AutoCAD environment.

5. The method for automatically drawing a Zonghai boundary map and boundary points according to claim 2, characterized in that: The step 4 specifically includes the following steps: Step 4a, set the drawing layer of the Zonghai boundary points to "JZD_YYYYMMDD", where YYYYMMDD is the system date automatically read by the program, so as to facilitate the relevant vector operations on the displayed Zonghai boundary points; Step 4b: Use VBA to call the Autolisp function (getfiled) to open a file selection dialog box and read the projection coordinate file of the Zonghai boundary point (the file filter suffix is ​​set to "*.XY"). This solves the problem that the file selection dialog box cannot be opened by calling the CommonDialog control in a conventional 64-bit operating system, realizes direct human-computer interaction, and saves the trouble of manually modifying the file path each time; Step 4c: Count the number of points contained in the read Zonghai boundary point projection file, and use this to calculate the total row height H1 (including the header) required to annotate the latitude and longitude coordinates of all Zonghai boundary points. Subtract the width of the cartographic information list box and the width of the internal unit list box (including the stereo rights confirmation list box) from the width of the internal map frame, and calculate the total height H2 of the Zonghai boundary point list box that can be placed in the remaining map sheet; When H1>H2, take H2 as the height value H of the list box of the Zonghai boundary points and calculate the number of Zonghai boundary points whose longitude and latitude coordinates can be annotated; When H1≤H2, H1 is used as the height value H of the list box of the Zonghai boundary points. At this time, the longitude and latitude coordinates of the Zonghai boundary points read can be noted; The purpose of this is to dynamically adjust the height and latitude and longitude annotations of the Zonghai boundary point list box according to actual conditions, so as to achieve a fixed position of each unit box and a unified overall map format; Step 4d: If the number of read boundary points is small and the distribution is relatively even, you can choose to directly plot them according to the scale; When there are a large number of boundary points and their distribution is complex, in order to facilitate the later modification of the map, you can choose to display the map at a scale reduced by 10 times.

6. The method for automatically drawing a Zonghai boundary map and boundary points according to claim 1, characterized in that: The step 5 specifically includes the following steps: Step 5a: Subtract the width of the cartographic information list frame and the width of the internal unit list frame (including the three-dimensional title confirmation list frame) from the width of the inner map frame to calculate the total height of the list frame of the zonghai boundary points that can be placed in the remaining map sheet; Step 5b: Draw a list box of the Zonghai boundary points, and set the longitude and latitude of the Zonghai boundary points as a single annotation, which can be manually modified later.

7. The method for automatically drawing a Zonghai boundary map and boundary points according to claim 1, characterized in that: The method adopts VBA to write a Function function to realize the automatic conversion of projection coordinates into latitude and longitude coordinates in degree, minute and second format, and writes a program visual interactive interface to directly realize the automatic drawing of the Zonghai boundary map and boundary points in the AutoCAD model space.

Citation Information

Cited By

  • RPA and LLM multi-agent cooperation-based religious chart drawing method

    CN122134966A