Disclosure of Invention
The embodiment of the application provides a plan view synthesizing method, a plan view synthesizing device, a storage medium and electronic equipment, which are used for solving the problem of low efficiency in the archaeological plan view by the conventional method.
The embodiment of the application provides a plan view synthesis method, which comprises the following steps: acquiring each single-remains plan drawn based on continuous opening line key points of remains in a detecting party, and merging the single-remains plan to obtain an original merged plan; drawing an opening line on the original combined plane graph based on the opening line key points, and extracting lines according to the opening line on the original combined plane graph to obtain an opening line plane combined graph; extracting single-remains coordinates of each single-remains planar graph based on the opening lines, and positioning and translating each single-remains planar graph in a target coordinate system based on the single-remains coordinates of the single-remains planar graph to obtain a combined planar graph, wherein the target coordinate system is a coordinate system constructed based on the base points of the probe side; setting spatial position attributes of the opening lines in the combined plane graph to obtain a combined layered plane graph; and converting the appointed opening lines in the merged layered plan based on the set spatial position attribute to obtain a plan composite diagram of all single-remains plan.
In the implementation process, single-remains coordinates of each single-remains plan can be extracted in batches based on the opening lines, and the single-remains plan is positioned, translated, laminated or broken and analyzed, so that the synthesis of the single-remains plan is realized, and the efficiency of obtaining the plane synthesis graph is improved.
Optionally, the performing line extraction according to the opening line on the original combined plan view to obtain an opening line plan combined plan view includes: and reserving the opening lines in the original combined plan view and deleting other detail lines to obtain the opening line plan combined view.
In the implementation process, only the opening lines which keep the remains can represent the scale of the remains and the relation among all parts of the remains, so that the remains identification accuracy and the processing efficiency can be improved, and the simplicity of the opening line plane synthetic diagram is improved.
Optionally, the extracting single-remains coordinates of the single-remains planar graphs based on the opening line, and positioning and translating the single-remains planar graphs in a target coordinate system based on the single-remains planar graph coordinates to obtain a combined planar graph, including: extracting the coordinate positions of the single-remains plan views based on the origin of the target coordinate system; and translating each single-remains plan in the opening line merging plan according to the coordinate positions of each single-remains so as to finish positioning, so that the merging plan is obtained.
In the implementation process, after the coordinate positions of the single-remains planar graphs are obtained, all the single-remains planar graphs are positioned and displaced so that the single-remains planar graphs are aligned in the same coordinate system, and the accuracy of the combined planar graph obtained after the single-remains planar graphs are combined is improved.
Optionally, the spatial position attribute includes a stacking or breaking attribute, and the setting of the spatial position attribute on the opening line in the merged plane map to obtain a merged layered plane map includes: setting the stacking or breaking attribute of the merged plane graph according to the stacking or breaking relation, and adding a legend to obtain a layered plane graph; and merging the layered plan views to obtain the merged layered plan view.
In the implementation process, the position space relation of the remains can be analyzed by performing lamination or breaking analysis based on lamination or breaking relation, and the efficiency of obtaining the merged layered plan is improved by performing batch analysis on the position space relation of the remains through lamination or breaking attribute.
Optionally, the converting, based on the set spatial position attribute, the opening line specified in the merged hierarchical plan view to obtain a plan composite view of all single-remains plan views includes: extracting the opening line in the merged layered plan view, and reserving the legend; and converting the overlapped or broken opening line into a broken line according to the overlapping or breaking relation, and adding a legend to obtain the plane synthetic graph.
In the implementation process, the opening lines on the merging and layering planes are distinguished according to the spatial position relation, and the opening lines of the merging and layering plane diagrams are processed in batches based on the overlapping or breaking relation, so that the efficiency of obtaining the plane synthetic diagram is improved.
Optionally, the setting of the stacking or breaking attribute of the merged plan according to the stacking or breaking relation, and adding a legend to obtain a layered plan, including: and adding the scale and the direction indication mark to the combined plane graph according to the overlapping or breaking relation to obtain the layered plane graph.
In the implementation process, the scale and the compass are added into the layered plan, so that the readability of the layered plan is improved.
The embodiment of the application also provides a plan view synthesis device, which comprises: the drawing module is used for obtaining each single-remains plan drawn based on the continuous opening line key points of the remains in the detecting party, and combining the single-remains plan to obtain an original combined plan; the opening line determining module is used for drawing an opening line on the original combined plane graph based on the opening line key points, and extracting lines according to the opening line on the original combined plane graph so as to obtain an opening line plane combined graph; the processing module is used for extracting single-remains coordinates of each single-remains planar graph based on the opening line, positioning and translating each single-remains planar graph in a target coordinate system based on the single-remains coordinates of the single-remains planar graph to obtain a combined planar graph, wherein the target coordinate system is a coordinate system constructed based on base points of a probe; the analysis module is used for setting spatial position attributes of the opening lines in the combined plane graph to obtain a combined layered plane graph; and the distinguishing and summarizing module is used for converting the appointed opening lines in the merging and layering plan based on the set spatial position attribute so as to obtain a plan composition diagram of all single-remains plan.
In the implementation process, single-remains coordinates of each single-remains plan can be extracted in batches based on the opening lines, and the single-remains plan is positioned, translated, laminated or broken and analyzed, so that the synthesis of the single-remains plan is realized, and the efficiency of obtaining the plane synthesis graph is improved.
Optionally, the opening line determining module is specifically configured to: and reserving the opening lines in the original combined plan view and deleting other detail lines to obtain the opening line plan combined view.
In the implementation process, only the opening lines which keep the remains can represent the scale of the remains and the relation among all parts of the remains, so that the remains identification accuracy and the processing efficiency can be improved, and the simplicity of the opening line plane synthetic diagram is improved.
Optionally, the processing module is specifically configured to: extracting the coordinate positions of the single-remains plan views based on the target coordinate system origin; and translating each single-remains plan in the opening line merging plan according to the coordinate positions of each single-remains so as to finish positioning, so that the merging plan is obtained.
In the implementation process, after the coordinate positions of the single-remains planar graphs are obtained, all the single-remains planar graphs are subjected to positioning displacement so that the single-remains planar graphs are aligned in the same coordinate system, and the accuracy of the combined planar graph obtained after the single-remains planar graphs are combined is improved.
Optionally, the analysis module is specifically configured to: setting the stacking or breaking attribute of the merged plane graph according to the stacking or breaking relation, and adding a legend to obtain a layered plane graph; and merging the layered plan views to obtain a merged layered plan view.
In the implementation process, the position space relation of the remains can be analyzed by performing lamination or breaking analysis based on lamination or breaking relation, and the efficiency of obtaining the merged layered plan is improved by performing batch analysis on the position space relation of the remains through lamination or breaking attribute.
Optionally, the distinguishing and summarizing module is specifically configured to: extracting the opening line in the merged layered plan view, and reserving the legend; and converting the overlapped or broken opening lines into broken lines according to the overlapping or breaking relation, and adding a legend to obtain the plane synthetic graph.
In the implementation process, the opening lines on the merging and layering planes are distinguished according to the spatial position relation, and the opening lines of the merging and layering plane diagrams are processed in batches based on the overlapping or breaking relation, so that the efficiency of obtaining the plane synthetic diagram is improved.
Optionally, the analysis module is specifically configured to: and adding the scale and the direction indication mark to the combined plane graph according to the overlapping or breaking relation to obtain the layered plane graph.
In the implementation process, the scale and the compass are added into the layered plan, so that the readability of the layered plan is improved.
The present embodiment also provides a storage medium having stored therein computer program instructions which, when executed by a processor, perform the steps of any of the methods described above.
The embodiment also provides an electronic device, which includes a memory and a processor, where the memory stores program instructions, and the processor executes steps in any of the methods when executing the program instructions.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
In the description of the present application, it should be noted that the terms "first," "second," and the like are used merely to distinguish between descriptions and should not be construed as indicating or implying relative importance.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the embodiments of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and drawings.
Referring to fig. 1, fig. 1 is a step flowchart of a plan view synthesizing method according to an embodiment of the present application, where the method includes the following steps:
step S1: and acquiring each single-remains plan drawn based on continuous opening line key points of remains in the detecting party, and merging the single-remains plan to obtain an original merged plan.
It can be understood that the opening line in the archaeological engineering mainly refers to the excavation boundary line of the remains, that is, the excavation boundary line, that is, the opening line, needs to be calculated according to the slope release coefficient and the slope release height before excavation and determined by measurement in the field.
In the archaeological engineering field, the excavation area of the remains is generally divided into a plurality of equal regular squares, and the regular squares are called as 'probe' by taking the squares as units. The method for distributing the detection method comprises the following steps: in the selected excavation area, a square grid is drawn, and 1 peg is cut at each cross point. The size of the square lattice depends on the thickness of the cultural deposit of the site, and the detection method is suitable for exploring the whole site.
As an implementation mode, after a unified coordinate system is established, the merging processing of the single-heritage plane graphs can be better carried out, in the embodiment, the southwest angle of the detecting party is taken as a base point, the base point is taken as a coordinate origin, and a plane rectangular coordinate system of the horizontal projection plane is established, wherein the eastern direction is the positive x direction, and the northbound direction is the positive y direction.
Selecting n consecutive key points on the trace opening line in the detecting party, e.g. by K 1 、K 2 ...K n N continuous key points on the open line of the remains in the detecting party are represented as the key points of the open line, and the measurement and plotting of the plane coordinates of the remains are completed by inputting coordinate points, importing coordinate information or directly plotting the coordinate points and other modes, and the corresponding coordinate point K of the key points of the open line of the remains in the coordinate system is displayed in each single remains plane figure 1 (x 1 ,y 1 )、K 2 (x 2 ,y 2 )…K n (x n ,y n )。
Step S2: and drawing an opening line on the original combined plane graph based on the opening line key points, and extracting lines according to the opening line on the original combined plane graph to obtain an opening line plane combined graph.
Optionally, step S2 includes: and (5) retaining the open line in the original combined plan view and deleting other detail lines to obtain the open line plan combined view.
To clearly show the scale of the remains and the relationships between the parts of the remains, only the open lines of the remains need to be maintained and the remaining detail lines deleted. As one embodiment, when the attribute of a particular detail line is a according to the attribute of all marked detail lines 1 When the detail line is the opening line in the original combined plane view. When the attribute of a detail line is a 2 、a 3 .. or a n And when the detail lines are judged to be other detail lines except the opening lines in the original combined plane diagram, deleting all the other detail lines, and simultaneously eliminating auxiliary objects such as each single scale, compass, legend and the like in the original combined plane diagram.
Step S3: and extracting single-heritage coordinates of each single-heritage plan based on the opening lines, and positioning and translating each single-heritage plan in a target coordinate system based on the single-heritage coordinates of the single-heritage plan to obtain a combined plan, wherein the target coordinate system is a coordinate system constructed based on base points of a probe.
Referring to fig. 2, fig. 2 is a flowchart illustrating steps for obtaining a combined plan view according to an embodiment of the present application. Optionally, step S3 is divided into the following sub-steps:
step S31: and extracting the coordinate positions of each single-remains plan based on the origin of the target coordinate system.
Step S32: and translating each single-remains plan in the opening line merging plan according to the coordinate positions of each single-remains so as to finish positioning, so as to obtain the merging plan.
Because the coordinates of each point on the remains are determined based on the same coordinate system when each single remains plan is drawn, the coordinates of each single remains plan can be extracted uniformly and in batches, and the efficiency of obtaining the coordinate positions of each single remains plan is improved.
After the coordinate positions of the single-remains planar graphs are extracted, the single-remains planar graphs can be aligned after being rapidly translated based on the same coordinate system to realize positioning, and the single-remains planar graphs can be combined after alignment, so that the combined planar graphs can be obtained.
Because each single-remains planar graph is drawn based on a unified horizontal plane projection rectangular coordinate system, and the positions of the single-remains planar graphs are defined by continuous key points, the automatic setting of the positions of the single-remains planar graphs in the horizontal plane projection coordinate system is realized by extracting the coordinate positions of the key points of the single-remains planar graphs and translating according to the coordinate system. After being aligned in the same coordinate system, the single-remains planar graphs can be combined to obtain a combined planar graph, and the accuracy of the combined planar graph obtained after the single-remains planar graphs are combined can be improved.
Step S4: and setting spatial position attributes of the opening lines in the merging plan to obtain a merging layered plan.
Referring to fig. 3, fig. 3 is a flowchart illustrating a step of obtaining a merged layered plan according to an embodiment of the present application. Optionally, step S4 is divided into the following sub-steps:
step S41: and performing stacking or breaking attribute setting on the combined plane graphs according to the stacking or breaking relation, and adding a legend to obtain the layered plane graphs.
Optionally, step S41 includes: and adding a scale and a direction indication mark to the joint plan according to the lamination or breaking relation to obtain a layered plan.
It will be appreciated that legends commonly used in archaeological drawings include scale, directional indicators (e.g., compass) and the like to facilitate reading and understanding of the drawing.
Step S42: and merging the layered plan views to obtain a merged layered plan view. And judging the overlapping or breaking relation of each remains in the stratum according to the sequence number and the space position of each remains, wherein the coordinate positions of different remains are staggered in the coordinate system, the overlapping or breaking relation possibly exists, and the overlapped or broken remains can be determined according to the sequence number of the remains.
In archaeology, the relative early-late relationship between remains is studied by judging the sequence or order of the accumulation formation in the remains. Different piles are distinguished according to soil quality and soil color, the sequence of different piles is determined according to lamination and breaking, and the excavation work is guided by a related theory on the basis of observing and analyzing the formation of various cultural layers, and meanwhile, the remains of all layers are processed. The primary problem of archaeological stratigraphy is to distinguish cultural stacking layers with different properties and time as accurately as possible, so as to determine their relative ages, namely their time sequence.
The lamination is the normal archaeological hierarchical relationship, namely 'old under new over'. Breaking is that the time sequence represented by normal up and down is broken, for example, building foundation pit, tomb, well digging and the like can cause the relation breaking.
Step S5: and converting the designated opening lines in the merged layered plan based on the set spatial position attribute to obtain a plan composite diagram of all single-remains plan.
Referring to fig. 4, fig. 4 is a flowchart illustrating steps for obtaining a plan view based on lamination or breaking according to an embodiment of the present application. Optionally, step S5 is divided into sub-steps:
step S51: the open line in the merged layered plan is extracted, leaving the legend.
Step S52: and converting the overlapped or broken opening lines into broken lines according to the overlapping or breaking relation, and adding a legend to obtain a plane synthetic diagram.
After determining the folded or broken remains, carrying out dotted line conversion on the folded or broken open line, for example, representing the folded open line, the broken open line or two different dotted lines respectively representing the folded open line and the broken open line, thereby realizing automatic matching and setting of the remains folding or breaking relation, improving the efficiency of obtaining the plane synthetic diagram, avoiding the judgment of the folding or breaking relation in the manual operation process, and improving the accuracy.
Optionally, after obtaining the plane synthetic graph, extracting the remains in each file according to the graph attribute in each file, and only reserving one part of related components such as the square opening line, the scale, the compass and the like.
In order to better implement the plan view synthesizing method provided in the present embodiment, please refer to fig. 5, fig. 5 is a schematic diagram of a plan view synthesizing apparatus provided in the embodiment of the present application. The plan view synthesizing apparatus 60 includes:
the drawing module 601 is configured to obtain each single-remains plan drawn based on continuous open-line key points of remains in the probe, and combine the single-remains plan to obtain an original combined plan; the opening line determining module 602 is configured to draw an opening line on the original combined plan based on the opening line key point, and perform line extraction according to the opening line on the original combined plan, so as to obtain an opening line plane composite graph; the processing module 603 is configured to extract single-remains coordinates of each single-remains plan based on the opening line, and position and translate each single-remains plan in a target coordinate system based on the single-remains plan coordinates, so as to obtain a combined plan, where the target coordinate system is a coordinate system constructed based on base points of a probe; an analysis module 604, configured to set spatial position attributes of the opening lines in the merged plan to obtain a merged layered plan; the distinguishing and summarizing module 605 is configured to convert the opening lines specified in the merged hierarchical plan based on the set spatial position attribute, so as to obtain a plan composite graph of all single-remains plan.
Optionally, the opening line determining module 602 is specifically configured to: and (5) retaining the open line in the original combined plan view and deleting other detail lines to obtain the open line plan combined view.
Optionally, the processing module 603 is specifically configured to: extracting the coordinate positions of each single-remains plan based on the origin of the target coordinate system; and translating each single-remains plan in the opening line merging plan according to the coordinate positions of each single-remains so as to finish positioning, so as to obtain the merging plan.
Optionally, the analysis module 604 is specifically configured to: performing stacking or breaking attribute setting on the combined plane graphs according to stacking or breaking relation, and adding a legend to obtain layered plane graphs; and merging the layered plan views to obtain a merged layered plan view.
Optionally, the distinguishing and summarizing module 605 is specifically configured to: extracting the opening lines in the combined layered plan view, and reserving a legend; and converting the overlapped or broken opening lines into broken lines according to the overlapping or breaking relation, and adding a legend to obtain a plane synthetic diagram.
Optionally, the analysis module 604 is specifically configured to: and adding a scale and a direction indication mark to the joint plan according to the lamination or breaking relation to obtain a layered plan.
The embodiment also provides an electronic device, which includes a memory and a processor, where the memory stores program instructions, and the processor executes steps in any of the methods when executing the program instructions.
The present embodiment also provides a storage medium having stored therein computer program instructions which, when executed by a processor, perform the steps of any of the methods described above.
Alternatively, the electronic device may be a personal computer (personal computer, PC), tablet, smart phone, personal digital assistant (personal digital assistant, PDA), or the like.
In summary, the embodiment of the application provides a plan view synthesis method, a device, a storage medium and electronic equipment, and relates to the technical field of archaeological drawing, wherein the method comprises the following steps: constructing a coordinate system based on basic points of a detecting party, drawing each single-remains plan based on continuous opening line key points of remains in the detecting party, and merging each single-remains plan to obtain an original merged plan; drawing an opening line on the original combined plane graph based on the opening line key points; the opening lines in the original combined plane graph are reserved, other detail lines are deleted, and an opening line plane combined graph is obtained; extracting single-remains coordinates of each single-remains planar graph based on the opening lines, and positioning and translating each single-remains planar graph in the coordinate system based on the single-remains planar graph coordinates to obtain a combined planar graph; overlapping or breaking attribute setting is carried out on the opening lines in the combined plane diagram so as to obtain a combined layered plane diagram; and converting the overlapped or broken trace lines in the combined layered plan view into broken lines based on the overlapped or broken attribute of the opening line so as to obtain a plan composite view of all single trace plan views.
In the implementation process, single-remains coordinates of each single-remains plan can be extracted in batches based on the opening lines, positioning, translation, lamination or breaking analysis can be performed, and the efficiency of obtaining the plan synthetic graph is improved.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of devices according to various embodiments of the present application. In this regard, each block in the block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams, and combinations of blocks in the block diagrams, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. The present embodiment therefore also provides a readable storage medium having stored therein computer program instructions which, when read and executed by a processor, perform the steps of any one of the methods of block data storage. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.