Method for batch production of engineering review graphs based on arcgis data drive
Through the arcgis data-driven method, the problem of project review maps cannot be batched is solved, data integration management and map style consistency is achieved, and the mapping cost is reduced.
Patent Information
- Application Number
- CN202510426998.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-07
- Publication Date
- 2025-07-18
AI Technical Summary
The existing technology cannot realize batch drawing production when making project review drawings. The traditional drawing method is very laborious and has cumbersome modification and update. Arcgis' drawing function is difficult to support diversified work scenarios and domestic specification requirements.
Based on the arcgis data-driven method, batch drawing and update are realized through the association of the drawing unit with data elements and surface elements, including collecting basic landform data, creating drawing layers, calculating drawing frame coordinates, making legend schema symbol libraries, and exporting project review drawing pictures.
It realizes integrated data management, facilitates data sharing and communication, ensures unified standards and style consistency of maps, reduces artificial errors, and reduces mapping costs.
Smart Images

Figure CN120337365A_ABST
Abstract
Description
Background Art
[0001] Engineering review drawings are an important part of engineering projects, used to ensure the correct implementation of design intentions and the control of project quality. Although existing technologies are relatively mature in the production of engineering review drawings, there are still some drawbacks and deficiencies. The following are some common deficiencies.
[0002] In daily work, the production of drawings often faces the problem of a large number of plots in the project area with scattered spatial positions. Traditional drawing methods such as CAD drawing have a large workload and are cumbersome to modify and update, making it difficult to achieve batch drawing. As a relatively popular geographic information system application program, arcgis has unique advantages in automated drawing due to its powerful data spatial analysis and management capabilities and the support of the arcpy site package. However, in the face of diversified work scenarios and domestic specification requirements, its drawing functions are still difficult to fully support, and it is not convenient for the efficient batch production of professional maps. Summary of the Invention
[0003] The purpose of the present invention is a method for batch producing engineering review drawings based on arcgis data driving, which solves the problem that the existing drawing methods cannot achieve batch production of engineering review drawings.
[0004] The technical solution adopted by the present invention is a method for batch producing engineering review drawings based on arcgis data driving. The general idea is: taking the mapping unit as the driving core, taking data elements and graphic elements as the mapping management objects, and realizing data-driven batch drawing and updating by associating the mapping unit with data elements and graphic elements. Specifically, it includes: Step 1: Collect basic ground feature data, organize the basic ground feature data to form a mapping layer; extract and identify various layers with the engineering review plot as the mapping unit; create a point legend layer in combination with the mapping layer; create a bill of quantities layer in combination with the form of the bill of quantities. Step 2: Create a data-driven map engineering document, and batch obtain the map scale in reverse; batch calculate the map frame coordinates in combination with the mapping scale, central coordinates and map frame size of the mapping unit; create a mask layer according to the map frame coordinates. Step 3: Adjust and improve the order of each layer of the above map engineering document, make various legend symbol libraries and symbolize the layers. Step 4: Create various graphic elements in the above map engineering document, mainly including text elements, legend elements and chart elements, and associate the content of various elements with the mapping unit or the graphic information where the mapping unit is located in different reference forms; set the format and style of various graphic finishing elements according to requirements. Step 5: For the above map engineering document, call the arcgis data-driven function to batch export the engineering review drawing pictures.
[0005] In the method for batch production of engineering review drawings driven by arcgis data, step 1 specifically includes: Step 1.1: Extract basic ground feature data, mark and merge to form data elements, and then organize them into mapping layers. Specifically: Classify and organize the basic ground feature data into mapping layers according to the three data types of points, lines, and surfaces in arcgis format; The basic ground feature data includes engineering review objects and current ground feature data. Engineering review objects refer to physical projects formed through engineering construction, including levelled plots, newly built roads, ditches, machine wells, and forest belts; current ground features refer to current topographic ground features, including elevation points, current roads, ditches, field ridges, and various types of cultivated land, forests, and grasslands; Step 1.2: The method for extracting and identifying various layers with the engineering review plot as the mapping unit is as follows: Loop through the mapping unit, extract the mapping layer elements adjacent to the mapping unit, and add the mapping unit number for identification to associate the data elements with the mapping unit.
[0006] Step 1.3: The specific steps for creating a point legend layer in combination with the mapping layer are as follows: Use arcgis software to perform element to point conversion and merging, convert the above-extracted and identified line and surface mapping layers into point elements, and merge them with the extracted and identified point layer to form a point legend layer; Step 1.4: The method for creating an engineering quantity chart layer in combination with the form of the bill of quantities is as follows: Based on the actual form of the bill of quantities, create an engineering quantity table for each mapping unit, create an element layer that matches the quantity of engineering content as the engineering quantity carrier layer, and use the mapping unit number as the key to attach the above engineering quantity table to form an engineering quantity table layer; In the method for batch production of engineering review drawings driven by arcgis data, step 2 specifically includes: Step 2.1: First, adjust the optimal layout of the mapping unit within the drawing frame. The corresponding scale under the optimal layout condition is the optimal mapping scale. Specifically: Relying on the arcgis data-driven function, set the optimal margin to 200m (i.e., the distance between the drawing frame edge and the nearest point of the mapping unit is 200m), and the scale rounding to the nearest value is 500 (i.e., the iteration step size when adapting to the optimal mapping scale is 500). Call the data-driven page of the arcpy site package, automatically update each page and obtain the optimal mapping scale of each mapping unit, and save it to the scale attribute table synchronously; Step 2.2: Combine the mapping scale, central coordinates, and drawing frame size of the mapping unit to batch calculate the drawing frame coordinates, establish a drawing frame coordinate calculation formula, and batch calculate the coordinate values and save them to the mapping unit coordinate attribute table: Upper left corner: X, Y = (CX - Scale × Mwidth / 2 / 100, CY + Scale × Mheight / 2 / 100) Upper right corner: X, Y = (CX + Scale × Mwidth / 2 / 100, CY + Scale × Mheight / 2 / 100) Lower right corner: X, Y = (CX + Scale × Mwidth / 2 / 100, CY - Scale × Mheight / 2 / 100) Lower left corner: X, Y = (CX - Scale × Mwidth / 2 / 100, CY - Scale × Mheight / 2 / 100) Where: X and Y are the X and Y coordinate values of the spatial position points; CX and CY are the central coordinate values of the mapping unit, obtained through the mapping unit attributes; Scale is the denominator value of the scale of the mapping unit; Mwidth and Mheight are the width and height dimension values of the map frame. Step 2.3: The method for creating a mask layer according to the map frame coordinates is as follows: Taking the 4 map frame coordinate pairs corresponding to each mapping unit as parameters, call the arcpy site package to create a mask layer of polygon type, and add the mapping unit number for identification.
[0007] In the method for batch production of project review maps based on arcgis data drive, step 3 specifically includes: Step 3.1: Add and improve the mapping layers in the map engineering document in step 2, and adjust the placement order of each layer according to the graphic display effects of point, line, and polygon layers. The point legend layer and the bill of quantities layer are placed at the bottom under the mask layer and are not expressed when the graphic is expressed. Step 3.2: Produce various legend symbol libraries and symbolize the layers, which specifically includes two steps: (1) Use FontCreator software to produce a computer.otf font file; the basis for making the arcgis symbol library is the computer font. The computer basic font library contains a large number of symbol styles, but it is still difficult to fully cover some specific symbol styles, and it is not conducive to management and shared use if the referenced symbols are stored in different font files. Therefore, first use FontCreator software to produce the missing symbol styles, integrate them with the existing symbol styles to form an.otf font file, and install it in the computer font folder. (2)Create.style files for various legend graphic symbols. Among them, various legend graphic symbols include three types: area fill symbols, line symbols, and point marker symbols. Relying on the above.otf font file, create a legend graphic symbol library.style file in the style manager of the arcgis software. The symbol styles are made according to topographic surveying and mapping and the graphic legends of the third national land survey. Use the legend graphic symbol library.style file to symbolize the layers and complete the expression of various data elements in the mapping process; Specifically, in the point marker symbol style, create complete line and area symbol styles, and symbolize the point legend layer. Use point symbols to replace line and area symbols to make the display of complex line and area symbols in the legend more standardized.
[0008] In the method for batch production of engineering review drawings based on arcgis data driving described above, step 4 specifically includes: Step 4.1: Create various graphic elements in the above map engineering document. Among them, various graphic elements include text elements, legend elements, and chart elements. Text elements specifically include titles, map frame coordinates, scales, mapping data sources, and mapping personnel information. Legend elements refer to mapping legends, and chart elements refer to engineering quantity tables; Step 4.2: Associate the contents of various graphic elements with the mapping units or the graphic information of the mapping units where they are located in different reference forms. The different reference forms are as follows: titles, map frame coordinates, and scales are associated with the title information of the mapping unit through dynamic text, and the mapping scales and map frame coordinates obtained in step 2 are updated. The mapping data sources and mapping personnel information are static information and are directly filled in. Legends are dynamically updated by inserting legend references to associate with the point legend layer in step 1, and charts are dynamically updated by inserting chart references to associate with the engineering quantity chart layer in step 1.
[0009] In the method for batch production of engineering review drawings based on arcgis data driving described above, step 5 specifically includes: In the map engineering document, after completing the association between the mapping units and relevant data elements and graphic elements, batch export engineering review drawing pictures in.jpeg,.pdf, and.png formats by calling the mapping module of arcpy.
[0010] The beneficial effects of the present invention are: (1)The present invention associates mapping units with data elements, realizes the integrated management of data, facilitates data sharing and communication, and provides an idea for making engineering review drawings and similar graphic forms based on the arcgis platform; (2) By data-driven extraction of the optimal scale and combined with the frame size to calculate the frame coordinates and complete the standardized annotation, the present invention ensures that the scales and parameters used for each page are consistent, reduces human errors, ensures that the generated maps have a unified standard and style, and improves the overall consistency and professionalism of the map surface; (3) By using point features to replace line and surface features to achieve the standardized expression of dynamic legends, the present invention ensures the precise association between the legend reference source data and the map surface, is easy to modify and update, and can quickly respond to changes in requirements; (4) The automation and batch processing of the present invention reduce the labor input and repetitive work, and reduce the mapping cost. Description of the Drawings
[0011] Figure 1 It is a schematic diagram of the classification of data elements and map elements in the results content of the engineering review drawing of the present invention.
[0012] Figure 2 It is a data-driven update logic diagram for making the engineering review drawing of the present invention.
[0013] Figure 3 It is a flow chart for batch making engineering review drawings based on arcgis data-driven of the present invention. Detailed Embodiments
[0014] In order to more clearly and specifically elaborate the ideas, technical features and effects of the present invention, the embodiments of the present invention will be further described in detail.
[0015] Embodiment 1 The method for batch making engineering review drawings based on arcgis data-driven provided by the present invention takes the mapping unit as the driving core, takes data elements and map elements as the mapping management objects, and realizes data-driven batch mapping and update by associating the mapping unit with data elements and map elements; specifically includes the following steps: Step 1, collect basic ground object data, organize the basic ground object data to form a mapping layer; extract and identify various layers with the engineering review plot as the mapping unit; create a point legend layer in combination with the mapping layer; create a bill of quantities layer in combination with the form of the bill of quantities; Step 2, create a data-driven map engineering document, and batch obtain the map surface scale in reverse; batch calculate the frame coordinates in combination with the mapping scale, central coordinates and frame size of the mapping unit; create a mask layer according to the frame coordinates; Step 3, adjust and improve the order of each layer of the map engineering document, make various legend symbol libraries and symbolize the layers; Step 4: Create various graphic elements in the above map engineering document. The graphic elements include text elements, legend elements, and chart elements. Associate the content of each type of element with the cartographic unit or the graphic information of the map where the cartographic unit is located in different reference forms; set the format and style of each type of graphic decoration element as required. Step 5: For the above map engineering document, call the arcgis data-driven function to batch export the pictures of the engineering review maps.
[0016] Embodiment 2 Based on Embodiment 1, Step 1 is specifically as follows: Step 1.1: Extract the basic ground feature data marks, merge them to form data elements, and then organize them into cartographic layers. Specifically: Classify and organize the basic ground feature data into cartographic layers according to the three data types of points, lines, and surfaces in the arcgis format. The basic ground feature data includes the engineering review objects and the current ground feature data. The engineering review objects refer to the physical projects formed through engineering construction, including leveled plots, newly built roads, ditches, motor wells, and forest belts; the current ground features refer to the current topographic features, including elevation points, current roads, ditches, field ridges, and various types of land such as cultivated land, gardens, and grasslands. Step 1.2: The method of extracting and identifying various layers with the engineering review plot as the cartographic unit is specifically as follows: Loop through the cartographic unit, extract the cartographic layer elements adjacent to the cartographic unit, and add the cartographic unit number for identification to associate the data elements with the cartographic unit. Step 1.3: The specific steps of creating a point legend layer in combination with the cartographic layer are as follows: Use the arcgis software to perform element conversion to points and merge to convert the above-extracted and identified line and surface cartographic layers into point elements and merge them with the extracted and identified point layer to form a point legend layer. Step 1.4: The method of creating an engineering quantity chart layer in combination with the bill of quantities form is specifically as follows: Based on the actual form of the bill of quantities, make an engineering quantity table for each cartographic unit, create an element layer that matches the quantity of the engineering content as the engineering quantity carrier layer, and link the engineering quantity table with the cartographic unit number as the key to form an engineering quantity table layer.
[0017] Embodiment 3 Based on Embodiment 2, Step 2 is specifically as follows: Step 2.1: First, adjust the optimal layout of the cartographic units within the map frame. The scale corresponding to the optimal layout condition is the optimal cartographic scale. Specifically, set the optimal margin to 200m under the drive of arcgis data. The optimal margin is the distance between the map frame edge and the nearest point of the cartographic unit. The scale rounding to the nearest value is 500, and the scale rounding to the nearest value is the step size iterated when adapting to the optimal cartographic scale. Automatically update and obtain the optimal cartographic scale of each cartographic unit and synchronously save it to the scale attribute table. Step 2.2: Combine the cartographic scale, central coordinates, and map frame size of the cartographic units to batch calculate the map frame coordinates. Establish a map frame coordinate calculation formula and batch calculate the coordinate values and save them to the cartographic unit coordinate attribute table: Upper left corner: X,Y = (CX - Scale × Mwidth / 2 / 100, CY + Scale × Mheight / 2 / 100) Upper right corner: X,Y = (CX + Scale × Mwidth / 2 / 100, CY + Scale × Mheight / 2 / 100) Lower right corner: X,Y = (CX + Scale × Mwidth / 2 / 100, CY - Scale × Mheight / 2 / 100) Lower left corner: X,Y = (CX - Scale × Mwidth / 2 / 100, CY - Scale × Mheight / 2 / 100) In the formula: X and Y are the X and Y coordinate values of the spatial position point; CX and CY are the central coordinate values of the cartographic unit, obtained through the cartographic unit attributes; Scale is the denominator value of the cartographic scale of the cartographic unit; Mwidth and Mheight are the width and height dimension values of the map frame. The method for creating a mask layer according to the map frame coordinates is as follows: Using the 4 map frame coordinate pairs corresponding to each cartographic unit as parameters, create a polygon-type mask layer and add the cartographic unit number for identification.
[0018] Example 4 Based on Example 3, Step 3 is as follows: Step 3.1: Add and improve the cartographic layers in the Step 2 map engineering document, and adjust the placement order of each layer according to the graphic display effects of the point, line, and polygon layers. The point legend layer and the bill of quantities layer are placed at the bottom under the mask layer and are not expressed when the graphic is expressed. Step 3.2: Make various legend symbol libraries and symbolize the layers. Specifically: (1) Use FontCreator software to make a computer.otf font file. (2)Create.style files for various legend graphic symbols. Among them, various legend graphic symbols include three types: area fill symbols, line symbols, and point marker symbols. Create a legend graphic symbol library.style file based on the.otf font file. The symbol styles are made according to topographic surveying and mapping and the legend graphic symbols of the third national land survey. Use the legend graphic symbol library.style file to symbolize the layers and complete the expression of various data elements in the mapping process. In the point marker symbol style, create complete line and area symbol styles, and symbolize the point legend layer, replacing line and area symbols with point symbols.
[0019] Example 5 Based on Example 4, step 4 is specifically as follows: Step 4.1: Create various graphic elements in the above map engineering document. Among them, various graphic elements include text elements, legend elements, and chart elements. Text elements specifically include titles, map frame coordinates, scales, mapping data sources, and cartographer information. Legend elements refer to mapping legends, and chart elements refer to engineering quantity tables. Step 4.2: Associate the contents of various graphic elements with mapping units or the graphic information of the mapping units where they are located in different reference forms. Among them, the different reference forms are as follows: titles, map frame coordinates, and scales are associated with the title information of the mapping unit through dynamic text, and the mapping scales and map frame coordinates obtained in step 2 are updated. The mapping data sources and cartographer information are static information and are directly filled in. Legends are dynamically updated by inserting legend references to associate with the point legend layer in step 1, and charts are dynamically updated by inserting chart references to associate with the engineering quantity chart layer in step 1.
[0020] Example 6 The method for batch producing engineering review maps based on arcgis data drive in the present invention is as Figures 1-3 shown, and the specific operation steps are as follows: Step 1: Basic data collation Step 1.1, complete the collection of basic ground object data through on-site survey work. According to the actual work requirements, the collection mainly includes but is not limited to current ground objects such as elevation points, machine wells, ditches, roads, field ridges, cultivated land, orchards, forests, grasslands, homesteads, etc. and engineering review objects such as engineering renovation plots, newly built roads, newly built ditches, newly built field ridges, etc. Organize the above basic ground object data into point (including elevation points, machine wells, etc.), line (roads, ditches, etc.), and area (cultivated land, orchards, forests, etc.) mapping layers in arcgis format, and add fields to mark the names of each ground object. Engineering review objects are similarly organized into point, line, and area mapping layers and the names of ground objects are marked. Step 1.2: Taking the project review plot as the mapping unit, analyze the spatial location relationship between the mapping unit and the basic data, batch extract the point, line, and surface elements adjacent to each element of the mapping unit, mark the corresponding mapping unit numbers, and then merge them into point, line, and surface mapping layers; Step 1.3: Use arcgis software to perform element conversion to points and merge. Convert the above-extracted and marked line and surface mapping layers into point elements and merge them with the extracted and marked point layer to form a point legend layer. When creating a legend, use the point legend layer as the source to avoid the situation where the legend content is displayed irregularly or is missing when using line and surface layers as the legend source; Step 1.4: Taking the actual form of the bill of quantities as the standard, create a bill of quantities for each mapping unit. Based on the mapping unit elements, create an element layer that matches the quantity of engineering content as the bill of quantities carrier layer. Link the bill of quantities to the bill of quantities carrier layer with the mapping unit number as the key to create a bill of quantities layer, realizing the association between the mapping unit and the bill of quantities; Step 2: Mapping parameter measurement Step 2.1: Rely on arcgis to create a map document with the suffix.mxd, set the drawing size to the standard A4 drawing size, place it horizontally, with the drawing frame width and height being 24.3 cm and 14.3 cm respectively, and the outer drawing frame width and height being 26.3 cm and 16.3 cm respectively. The distances between the outer drawing frame and the top, bottom, left, and right margins of the drawing are 3.2 cm, 1.5 cm, 1.5 cm, and 1.5 cm respectively; Add the mapping unit as the data-driven layer, and the mapping unit number as the index field. In this example, set the optimal margin to 200m (that is, the distance between the drawing frame edge and the nearest point of the mapping unit is 200m), and round the scale to the nearest value of 500 (that is, the iteration step when adapting to the optimal scale is 500) to ensure that the sizes and positions of the drawing elements are appropriate and beautiful; Call the data-driven page dataDrivenPages class of the arcpy site package, automatically update each page and obtain the optimal mapping scale of each mapping unit and save it to the scale attribute table synchronously; Step 2.2: Combine the mapping scale, central coordinates, and drawing frame size of the mapping unit to batch calculate the drawing frame coordinates and save the coordinate values to the mapping unit coordinate attribute table. The drawing frame coordinate calculation formula: Upper left corner: X,Y = (CX - Scale × Mwidth / 2 / 100, CY + Scale × Mheight / 2 / 100) Upper right corner: X,Y = (CX + Scale × Mwidth / 2 / 100, CY + Scale × Mheight / 2 / 100) Lower right corner: X,Y = (CX + Scale × Mwidth / 2 / 100, CY - Scale × Mheight / 2 / 100) Lower left corner: X, Y = (CX - Scale × Mwidth / 2 / 100, CY - Scale × Mheight / 2 / 100) Where: X and Y are the X and Y coordinate values of the spatial position point; CX and CY are the central coordinate values of the mapping unit, obtained through the mapping unit attributes; Scale is the denominator value of the scale of the mapping unit; Mwidth and Mheight are the width and height dimension values of the map frame; in this example, the width and height are 24.3 cm and 14.3 cm respectively. Step 2.3: Using the 4 map frame coordinate pairs corresponding to each mapping unit above as parameters, call the arcpy site package to create a mask layer of polygon type, and add the mapping unit number for identification to obtain a mask layer associated with the mapping unit.
[0021] Step 3, Cartographic content expression Step 3.1: Add the point, line, and polygon cartographic layers described in Step 1.2, the point legend layer described in Step 1.3, the bill of quantities layer described in Step 1.4, and the mask layer described in Step 2.3 to the map document described in Step 2.1. The point legend layer and the bill of quantities layer are placed at the bottom under the mask layer and are covered and not expressed during the map surface expression; Step 3.2: Make various legend symbol libraries and symbolize the layers, which specifically includes two steps: (1) Use FontCreator software to make symbol styles missing from the computer basic font library, integrate them with the existing symbol styles in the basic font library to form an.otf font file, and install it in the computer font folder; (2) Relying on the above.otf font file, make a.legend symbol library.style file in the arcgis software style manager. The symbol styles are made according to the topographic surveying and mapping and the legend of the third national land survey; use the.legend symbol library.style file to symbolize the layers and complete the expression work of various data elements in the cartographic link; In particular, in the point marker symbol style, make complete line and polygon symbol styles, and symbolize the point legend layer. Use point symbols to replace line and polygon symbols to make the display of complex line and polygon symbols in the legend more standardized; the mask layer symbol is white, borderless, and opaque to ensure that the point legend layer and the bill of quantities layer are not expressed on the map surface and only exist as data referenced by other elements; in this example, the completed.otf font file and the symbol library.style file can be reused and shared, and new symbol styles can still be expanded on this basis in the future.
[0022] Step 4, Map surface element decoration Step 4.1: Add various graphic elements to the above map engineering document, mainly including text elements, legend elements, chart elements, and other elements. Among them, the text elements specifically include the title, frame coordinates, scale, source of mapping data, and information of the mapping personnel; the legend element refers to the mapping legend, and the chart element refers to the bill of quantities. Step 4.2: Associate the content of various graphic elements with the mapping unit or the graphic information of the mapping unit where it is located in different reference forms. Among them, the title, frame coordinates, and scale are associated with the title information of the mapping unit through dynamic text, and the mapping scale and frame coordinates obtained in Step 2.1 are updated. The source of mapping data and the information of the mapping personnel are static information and are directly filled in. The legend is dynamically updated by inserting a legend reference to the legend layer in Step 1, and the chart is dynamically updated by inserting a chart reference to the bill of quantities chart layer in Step 1. All types of graphic elements are adjusted to appropriate sizes, positions, and formats according to the mapping requirements.
[0023] Step 5, Batch output of the map In the map engineering document, after completing the association between the mapping unit and the relevant data elements and graphic elements, batch export.jpg format engineering review map pictures by calling the mapping module of arcpy.
[0024] The above specific implementation manners have elaborated on each link of the present invention with examples. The parts not detailed are all basic operations and will not be elaborated. However, the present invention is not limited to the above examples. According to the technical method of the present invention, it is still possible to efficiently and conveniently batch compile other schematic materials with similar characteristics, such as design drawings, as-built drawings, and cultivated land quality evaluation maps of multiple plots. All changes made by those skilled in the art within the essence of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for batch generating engineering review drawings based on ArcGIS data drive, characterized in that, With the mapping unit as the driving core, and data elements and graphic elements as the mapping management objects, data-driven batch mapping and updating are realized by associating the mapping unit with data elements and graphic elements.
2. The method for batch production of engineering review drawings based on arcgis data drive according to claim 1, characterized in that, Specifically, it includes the following steps: Step 1: Collect basic ground feature data, and organize the basic ground feature data to form a mapping layer; extract and identify various layers with the project review plot as the mapping unit; create a point legend layer in combination with the mapping layer; create a bill of quantities layer in combination with the form of the bill of quantities; Step 2: Create a data-driven map engineering document, and batch obtain the graphic scale in reverse; batch calculate the frame coordinates in combination with the mapping scale, central coordinates and frame size of the mapping unit; create a mask layer according to the frame coordinates; Step 3: Adjust and improve the order of each layer in the map engineering document, make various legend symbol libraries and symbolize the layers; Step 4: Create various graphic elements in the map engineering document. The graphic elements include text elements, legend elements and chart elements, and associate the contents of various elements with the mapping unit or the graphic information where the mapping unit is located in different reference forms; set the format and style of various graphic decoration elements as required; Step 5: For the above map engineering document, call the arcgis data-driven function to batch export the pictures of the project review drawings.
3. The method for batch production of engineering review drawings based on arcgis data drive according to claim 2, wherein Step 1 is specifically as follows: Step 1.1: Extract, mark and merge the basic ground feature data to form data elements and then organize them into a mapping layer. Specifically: classify and organize the basic ground feature data into mapping layers according to the three data types of points, lines and surfaces in the arcgis format; The basic ground feature data includes the project review object and the current ground feature data. The project review object refers to the physical project formed through project construction, including the leveled plot, newly built road, ditch, well, forest belt; the current ground feature refers to the current terrain and ground feature, including elevation points, current roads, ditches, ridge, cultivated land, gardens, grasslands and other types of land; The method of Step 1.2: Extract and identify various layers with the project review plot as the mapping unit is specifically as follows: Loop through the mapping unit, extract the mapping layer elements adjacent to the mapping unit, and add the mapping unit number for identification to associate the data elements with the mapping unit; The specific steps of Step 1.3: Create a point legend layer in combination with the mapping layer are as follows: Use the arcgis software to perform element to point conversion and merging to convert the above-mentioned extracted and identified line and surface mapping layers into point elements and merge them with the extracted and identified point layer to form a point legend layer; The method of Step 1.4: Create a bill of quantities chart layer in combination with the form of the bill of quantities is specifically as follows: Based on the actual form of the bill of quantities, make a bill of quantities for each mapping unit, create an element layer that matches the quantity of the project content as the bill of quantities carrier layer, and connect the bill of quantities with the mapping unit number as the key to form a bill of quantities layer.
4. The method for batch production of engineering review drawings based on arcgis data drive according to claim 2, characterized in that, Step 2 is specifically as follows: Step 2.1: First, adjust the optimal layout of the cartographic unit within the map frame. The scale corresponding to the optimal layout condition is the optimal cartographic scale. Specifically, set the optimal margin size to 200m under the drive of arcgis. The optimal margin size is the distance between the map frame edge and the nearest point of the cartographic unit. The scale rounding nearest value is 500, and the scale rounding nearest value is the step size iterated when adapting to the optimal cartographic scale. Automatically update and obtain the optimal cartographic scale of each cartographic unit and synchronously save it to the scale attribute table. Step 2.2: Combine the cartographic scale, central coordinates, and map frame size of the cartographic unit to batch calculate the map frame coordinates. Establish a map frame coordinate calculation formula and batch calculate the coordinate values and save them to the cartographic unit coordinate attribute table: Upper left corner: X, Y = (CX - Scale × Mwidth / 2 / 100, CY + Scale × Mheight / 2 / 100) Upper right corner: X, Y = (CX + Scale × Mwidth / 2 / 100, CY + Scale × Mheight / 2 / 100) Lower right corner: X, Y = (CX + Scale × Mwidth / 2 / 100, CY - Scale × Mheight / 2 / 100) Lower left corner: X, Y = (CX - Scale × Mwidth / 2 / 100, CY - Scale × Mheight / 2 / 100) In the formula: X and Y are the X and Y coordinate values of the spatial position point; CX and CY are the central coordinate values of the cartographic unit, obtained through the cartographic unit attributes; Scale is the denominator value of the cartographic scale of the cartographic unit; Mwidth and Mheight are the width and height dimension values of the map frame. The method for creating a mask layer according to the map frame coordinates in Step 2.3 is as follows: Using the 4 map frame coordinate pairs corresponding to each cartographic unit as parameters, create a mask layer of polygon type and add the cartographic unit number for identification.
5. The method for batch production of engineering review drawings based on arcgis data drive according to claim 4, characterized in that, Step 3 is as follows: Step 3.1: Add and improve the cartographic layers in the map engineering document in Step 2, and adjust the placement order of each layer according to the graphic display effects of point, line, and polygon layers. The point legend layer and the bill of quantities layer are placed at the bottom under the mask layer and are not expressed when the graphic is expressed. Step 3.2: Make various legend symbol libraries and symbolize the layers.
6. The method for batch production of engineering review drawings based on arcgis data drive according to claim 5, characterized in that Step 3.2 is as follows: (1) Use FontCreator software to make a computer.otf font file. (2) Make various legend symbol.style files. Among them, various legend symbols include three types: polygon fill symbols, line symbols, and point marker symbols. Rely on the.otf font file to make the legend symbol library.style file. The symbol styles are made according to the topographic surveying and mapping and the legend of the third national land survey. Use the legend symbol library.style file to symbolize the layers and complete the expression of various data elements in the cartographic link. In the point marker symbol style, create complete line and area symbol styles, and symbolize the point legend layer, replacing the line and area symbols with point symbols.
7. The method for batch production of engineering review drawings based on arcgis data drive according to claim 6, wherein Step 4 is specifically as follows: Step 4.1: Create various graphic elements in the above map engineering document. Among them, various graphic elements include text elements, legend elements, and chart elements; text elements specifically include title, map frame coordinates, scale, cartographic data source, and cartographer information; legend elements refer to cartographic legends, and chart elements refer to bill of quantities tables. Step 4.2: Associate the content of various graphic elements with the cartographic unit or the graphic information where the cartographic unit is located in different reference forms. The different reference forms are as follows: The title, map frame coordinates, and scale are associated with the cartographic unit title information through dynamic text, and the cartographic scale and map frame coordinates obtained in Step 2 are updated. The cartographic data source and cartographer information are static information and are directly filled in. The legend is dynamically updated by inserting a legend reference to associate with the point legend layer in Step 1, and the chart is dynamically updated by inserting a chart reference to associate with the bill of quantities chart layer in Step 1.
8. The method for batch production of engineering review drawings based on arcgis data drive according to claim 7, characterized in that, Step 5 includes: In the map engineering document, after completing the association between the cartographic unit and the relevant data elements and graphic elements, batch export the engineering review map images in.jpeg,.pdf, and.png formats by calling the mapping module of arcpy.