CN107633246B - Automatic checking and repairing method and system for water system collecting direction - Google Patents
Automatic checking and repairing method and system for water system collecting direction Download PDFInfo
- Publication number
- CN107633246B CN107633246B CN201710944767.3A CN201710944767A CN107633246B CN 107633246 B CN107633246 B CN 107633246B CN 201710944767 A CN201710944767 A CN 201710944767A CN 107633246 B CN107633246 B CN 107633246B
- Authority
- CN
- China
- Prior art keywords
- water system
- system structure
- flow direction
- point
- structure line
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention provides a method and a system for automatically checking and repairing a water system collecting direction, wherein the method comprises the following steps: receiving imported DLG source data; acquiring a flow direction symbol matched with a water system structure line to be processed in a designated area; obtaining a point on the water system structure line closest to the flow direction symbol, and calculating a direction value between the point and the next node; the obtained direction value is differenced with the angle value of the flow direction symbol, and the obtained difference value is compared with a preset threshold value; and if the difference is larger than the preset threshold value, performing reverse processing on the water system structure line to repair the water system structure line, performing error marking on the water system structure line, storing and outputting the error mark. The automatic checking and repairing scheme for the water system collecting direction provided by the invention has the advantages of no need of manual intervention, scientific and reasonable design, convenience in operation and high stability, can effectively overcome the defects of unreasonable checking and large amount of manual checking and modification of the existing water system direction, and improves the production efficiency.
Description
Technical Field
The invention relates to the technical field of GIS, in particular to a method and a system for automatically checking and repairing a water system collecting direction.
Background
In the digital topographic map (DLG) warehousing result, water system elements are parts essential for describing topographic elements and topographic features, and the water system direction plays an important role in geographic information analysis. The water system flow direction symbol is an indispensable part on a topographic map and plays a role of assisting in map recognition, and each water system is required to have a flow direction mark in principle.
In a production mode of aerial photogrammetry, wherein the water system elements are collected in a three-dimensional model firstly, and then the water system flow direction is determined by field painting, the situation that the water system direction collected by the field painting is contradictory with the water system flow direction symbol drawn by the field painting is easy to occur, particularly a trench manually excavated in a flat area, and the digital topographic map storage data requires the water system to be collected according to the flow direction. For a large-scale developed water system survey area, if the problem of contradiction between the acquisition direction and the flow direction of the water system is repaired by manual inspection, the method is a work which is time-consuming and labor-consuming, the data production period is prolonged, the cost is increased, and the conditions of missed judgment and erroneous judgment exist. At present, the solution to the problem at home and abroad is mainly a mode of displaying the direction and flow direction symbols of a water line and then manually checking one by one, and the mode needs more operators, is low in working efficiency, labor-consuming and time-consuming, and has the conditions of missing judgment and erroneous judgment, which become important reasons for restricting the progress and the achievement quality of a project. Therefore, how to implement an automatic system capable of completing the inspection and repair of the water system direction without manual intervention is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, the present invention provides a method and a system for automatically inspecting and repairing a water system collecting direction, so as to solve the above problems.
The embodiment of the invention provides a method for automatically checking and repairing a water system collecting direction, which comprises the following steps:
receiving imported DLG source data;
acquiring a flow direction symbol matched with a water system structure line to be processed in a designated area;
obtaining a point on the water system structure line closest to the flow direction symbol, and calculating a direction value between the point and the next node;
carrying out difference processing on the direction value obtained by calculation and the angle value of the flow direction symbol, and comparing the obtained difference value with a preset threshold value;
and if the difference is larger than the preset threshold, performing reverse processing on the water system structure line to obtain a repaired water system structure line, performing error marking on the water system structure line, storing and outputting the error mark.
Further, the method further comprises:
acquiring a water system structure line of a preset code in the source data and a flow direction symbol of the preset code in the source data;
and detecting whether flow direction symbols matched with the water system structure lines one by one exist or not, if the flow direction symbols do not match with the flow direction symbols, marking the water system structure lines which do not have the flow direction symbols matched with the water system structure lines, and outputting a marking result.
Further, the step of obtaining a point on the water system structure line closest to the flow direction symbol and calculating a direction value between the point and a next node thereof includes:
inserting a point on the water system structure line so that a distance between the inserted point and the flow direction symbol is shorter than a distance between other points on the water system structure line and the flow direction symbol;
obtaining coordinate values of the inserted point and coordinate values of a next node of the point in a direction along the water system structure line;
and obtaining a direction value between the inserted point and the next node according to the coordinate value of the inserted point and the coordinate value of the next node.
Further, the coordinate value of the inserted point is marked as A (x)1,y1,z1) Marking the coordinate value of the next node as B (x)2,y2,z2) A direction value between the inserted point and the next node is obtained by the following formula:
wherein x is1、y1The values of the points A on the x-axis and the y-axis, x2、y2The values of point B on the x-axis and y-axis, respectively.
Further, the method further comprises:
when the inserted point is equal to the abscissa of the next node and the ordinate of the next node is greater than the ordinate of the inserted point, it is determined that the direction of the water system structure line at the inserted point is the same as
When the inserted point is equal to the abscissa of the next node and the ordinate of the next node is smaller than the ordinate of the inserted point, thenDetermining the direction of the water system structure line at the point of insertion as
Further, the step of acquiring a flow direction symbol matching the water system structure line to be processed in the designated area includes:
receiving an input designated area, and acquiring a code of a water system structure line to be processed in the designated area;
and finding the flow direction symbol with the code matched with the code of the water system structure line in the specified area.
Another preferred embodiment of the present invention further provides an automatic inspecting and repairing system for water system collecting direction, the system comprising:
the source data receiving module is used for receiving imported DLG source data;
the first acquisition module is used for acquiring a flow direction symbol matched with a water system structure line to be processed in a specified area;
the calculation module is used for obtaining a point on the water system structure line closest to the flow direction symbol and calculating a direction value between the point and the next node;
the comparison module is used for carrying out difference processing on the direction value obtained by calculation and the angle value of the flow direction symbol and comparing the obtained difference value with a preset threshold value;
and the processing module is used for performing reverse processing on the water system structure line to obtain a repaired water system structure line when the difference is larger than the preset threshold, performing error marking on the water system structure line, and storing and outputting the error mark.
Further, the system further comprises:
the second acquisition module is used for acquiring a water system structure line of a preset code in the source data and a flow direction symbol of the preset code in the source data;
the detection module is used for detecting whether flow direction symbols matched with the water system structure lines one by one exist or not;
and the marking module is used for marking the water system structure line which does not have the flow direction symbol matched with the water system structure line when the water system structure line does not have the flow direction symbol matched with the water system structure line, and outputting a marking result.
Further, the calculation module comprises an insertion unit, a coordinate value acquisition unit and a direction value acquisition unit;
an insertion unit configured to insert a point on the water system configuration line such that a distance between the inserted point and the flow direction symbol is shorter than a distance between another point on the water system configuration line and the flow direction symbol;
a coordinate value acquisition unit for acquiring a coordinate value of the inserted point and a coordinate value of a next node of the point;
a direction value acquisition unit for acquiring a direction value between the inserted point and the next node according to the coordinate value of the inserted point and the coordinate value of the next node.
Further, the first obtaining module comprises a code obtaining unit and a searching unit;
the code acquisition unit is used for receiving an input designated area and acquiring a code of a water system structure line to be processed in the designated area;
the searching unit is used for searching the flow direction symbol with the code matched with the code of the water system structure line in the designated area.
The method and the system for automatically checking and repairing the water system acquisition direction provided by the embodiment of the invention are characterized in that a flow direction symbol matched with a water system structure line to be processed in a specified area is firstly obtained, a point on the water system structure line closest to the flow direction symbol is obtained, and a direction value between the point and the next node is calculated. And performing difference processing on the direction value obtained by calculation and the angle value of the flow direction symbol, and comparing the obtained difference value with a preset threshold value. And if the obtained difference is larger than the preset threshold, performing reverse processing on the water system structure line to obtain a repaired water system structure line, performing error marking on the water system structure line, storing and outputting the error mark. The automatic checking and repairing scheme for the water system collecting direction provided by the invention has the advantages of no need of manual intervention, scientific and reasonable design, convenience in operation and high stability, can effectively overcome the defects of unreasonable checking and large amount of manual checking and modification of the existing water system direction, and improves the production efficiency.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic structural block diagram of an electronic device according to an embodiment of the present invention.
Fig. 2 is a flowchart of an automatic inspection and repair method for a water system collecting direction according to an embodiment of the present invention.
Fig. 3 is another flowchart of the method for automatically checking and repairing the water system collecting direction according to the preferred embodiment of the present invention.
Fig. 4 is a flowchart of the substeps of step S102 in fig. 2.
Fig. 5 is a flowchart of the substeps of step S103 in fig. 2.
Fig. 6(a) and 6(b) are graphs comparing effects before and after restoration in the water system structure line direction.
Fig. 7 is a functional block diagram of an automatic inspection and repair system for a water system collection direction according to an embodiment of the present invention.
Fig. 8 is another functional block diagram of the automatic water system collection direction checking and repairing system according to the embodiment of the present invention.
Fig. 9 is a functional block diagram of a computing module according to an embodiment of the present invention.
Fig. 10 is a functional block diagram of a first obtaining module according to an embodiment of the present invention.
Icon: 100-an electronic device; 110-water system collection direction automatic checking and repairing system; 111-source data receiving module; 112-a first acquisition module; 1121-code acquisition unit; 1122-a lookup unit; 113-a calculation module; 1131 — an insertion unit; 1132 — coordinate value acquisition unit; 1133, a direction value acquisition unit; 114-a comparison module; 115-a processing module; 116-a second acquisition module; 117-detection module; 118-a labeling module; 120-a processor; 130-memory.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Fig. 1 is a block diagram of an electronic device 100 according to an embodiment of the invention. In this embodiment, the electronic device 100 includes an automatic water system collecting direction checking and repairing system 110, a processor 120, and a memory 130. Wherein, the memory 130 is electrically connected with the processor 120 directly or indirectly to realize the data transmission or interaction. The water system collecting direction automatic checking and repairing system 110 includes at least one software function module which can be stored in the memory 130 in the form of software or firmware or solidified in the operating system of the electronic device 100. The processor 120 is configured to execute executable modules stored in the memory 130, such as software functional modules or computer programs included in the water system collecting direction automatic checking and repairing system 110, so as to check and repair the water system collecting direction.
In this embodiment, the electronic device 100 may be, but is not limited to, a terminal device with data processing capability, such as a personal computer, a notebook computer, and the like.
Fig. 2 is a schematic flowchart of an automatic water system collection direction checking and repairing method applied to the electronic device 100 shown in fig. 1 according to an embodiment of the present invention. It should be noted that the method provided by the present embodiment is not limited by the sequence shown in fig. 2 and described below. The specific process shown in fig. 2 will be described in detail below.
Step S101, receiving the imported DLG source data.
Step S102, obtaining a flow direction symbol matched with a water system structure line to be processed in a designated area.
DLG (Digital Line Graphic) is a vector data set of map elements that substantially matches existing Line, and stores spatial relationships between elements and related attribute information. In implementation, DLG source data is imported into the electronic device 100 for subsequent related processing.
The method for automatically checking and repairing the water system acquisition direction provided by the embodiment aims to solve the problem that the direction of a water system structure line acquired by aerial survey interior work is contradictory to the direction of a water system flow symbol sketched by exterior work, and realizes the automatic checking and repairing of the water system structure line direction.
Optionally, for the imported DLG source data, an appropriate designated area may be set, and information in the designated area is used as the object to be processed. In practice, the user may set a designated area and input the designated area into the electronic device 100 through the input medium. And acquiring a water system structure line to be processed and a flow direction symbol matched with the water system structure line in the designated area.
Referring to fig. 3, in the embodiment, the method for automatically checking and repairing the water system in the collecting direction further includes the following steps:
step S201, acquiring a water system structure line of a predetermined code in the source data and a flow direction symbol of the predetermined code in the source data.
Step S202 detects whether or not there is a flow direction symbol that matches the water system configuration line one by one, and if there is no flow direction symbol that matches it, the following step S203 is executed.
In step S203, the water system configuration row line having no flow direction symbol matching the row line is marked, and the marking result is output.
In this embodiment, before checking and repairing the acquisition direction of the water system configuration line, preliminary detection of the water system configuration line and the flow direction symbol in the DLG source data is required. Alternatively, it is considered to match the code of the flow direction symbol with the code of the water-based structural line. For example, for a certain water system configuration line, the code of the flow direction symbol closest to the water system configuration line may be set to match the code of the water system configuration line.
Optionally, a water system structure line of a predetermined code in the source data and a flow direction symbol of the predetermined code in the source data are acquired. And finding out the water system structure line of the flow direction symbol without the matched code, marking the water system structure line, and outputting a marking result for a subsequent worker to check, wherein the marking result can be in a form of 'code mismatch'.
In addition, in this embodiment, each error record may be numbered, and an error record ID may be generated, so as to bind each error record event and ID, so that the following staff may summarize and check the event.
Referring to fig. 4, in the present embodiment, the step S102 may include two sub-steps of step S1021 and step S1022.
Step S1021, receiving an input designated area, and acquiring codes of water system structure lines to be processed in the designated area.
Step S1022 is to find a flow direction symbol having a code matching the code of the water-based structure line in the designated area.
In the present embodiment, a designated area is received as an input, and a code of a water system structural line to be processed is acquired in the designated area in the DLG source data, and the water system structural line is taken as a feature. And finding a flow direction symbol having a code matching the code of the water system structural line in the specified area, and using the flow direction symbol as a point feature. The line feature and the point feature are taken as system processing objects.
Step S103, obtaining a point on the water system structure line closest to the flow direction symbol, and calculating a direction value between the point and the next node.
Referring to fig. 5, in the present embodiment, step S103 may include three substeps, i.e., step S1031, step S1032 and step S1033.
And a step S1031 of inserting a point on the water system configuration line such that a distance between the inserted point and the flow symbol is shorter than a distance between other points on the water system configuration line and the flow symbol.
In step S1032, coordinate values of the inserted point and coordinate values of a next node of the point in the direction along the water system structure line are obtained.
Step S1033, obtaining a direction value between the inserted point and the next node according to the coordinate value of the inserted point and the coordinate value of the next node.
In the present embodiment, the coordinate value of the inserted point is denoted as a (x)1,y1,z1) The coordinate value of the next node of the point inserted immediately in the direction of the water system structure line is denoted as B (x)2,y2,z2) A direction value between the inserted point and the next node is obtained by the following formula:
wherein x is1、y1The values of the points A on the x-axis and the y-axis, x2、y2The values of point B on the x-axis and y-axis, respectively.
Through the above disclosureEquation, then the calculation can be made to obtain the value between point A and point BA camber value within a range.
Optionally, in this embodiment, the method further includes the following steps:
when the inserted point is equal to the abscissa of the next node and the ordinate of the next node is greater than the ordinate of the inserted point, it is determined that the direction of the water system structure line at the inserted point is the same as
When the inserted point is equal to the abscissa of the next node and the ordinate of the next node is smaller than the ordinate of the inserted point, it is determined that the direction of the water system structure line at the inserted point is the same as
And step S104, carrying out difference processing on the direction value obtained by calculation and the angle value of the flow direction symbol, and comparing the obtained difference value with a preset threshold value.
And S105, when the difference value is larger than the preset threshold value, performing reverse processing on the water system structure line to obtain a repaired water system structure line, performing error marking on the water system structure line, and storing and outputting the error mark.
In this embodiment, the calculated insertion point A (x)1,y1,z1) With its next node B (x)2,y2,z2) The direction value between the two is compared with the angle value of the flow direction symbol matched with the water system structure line. Thereby, whether the direction of the water system structure line is consistent with the direction of the matched flow direction symbol is detected. That is, whether the difference between the direction value and the angle value is greater than a preset threshold is detected, if so, it indicates that the direction of the water system structural line is inconsistent with the direction of the flow direction symbol, and the water system structural line needs to be reversely processed to repair the water system structural lineThe water system structure line outputs the repaired data result. Further, it is necessary to mark an error on the water system configuration line, store and output the error mark for subsequent positioning and correction, as shown in fig. 6(a) and 6 (b). Fig. 6(a) shows input source data, and fig. 6(b) shows repaired result data. In particular, the arrow signs indicating the water collection direction, the arrow indicating the flow direction sign, and the cross signs indicating the error record marks in fig. 6(a) and 6(b) may be marked with lines of different colors for easy viewing.
Referring to fig. 7, another preferred embodiment of the present invention further provides an automatic water system collecting direction checking and repairing system 110 applied to the electronic device 100, wherein the automatic water system collecting direction checking and repairing system 110 includes a source data receiving module 111, a first obtaining module 112, a calculating module 113, a comparing module 114 and a processing module 115.
The source data receiving module 111 is configured to receive imported DLG source data. Specifically, the source data receiving module 111 may be configured to perform step S101 shown in fig. 2, and a detailed description of the step S101 may be referred to for a specific operation method.
The first obtaining module 112 is used for obtaining a flow direction symbol matched with a water system structure line to be processed in a designated area. Specifically, the first obtaining module 112 may be configured to execute step S102 shown in fig. 2, and the detailed description of step S102 may be referred to for a specific operation method.
The calculating module 113 is configured to obtain a point on the water system structure line closest to the flow direction symbol, and calculate a direction value between the point and a next node. Specifically, the calculating module 113 may be configured to execute step S103 shown in fig. 2, and the detailed description of step S103 may be referred to for a specific operation method.
The comparing module 114 is configured to perform difference processing on the calculated direction value and the angle value of the flow direction symbol, and compare the obtained difference value with a preset threshold. Specifically, the comparing module 114 can be used to execute step S104 shown in fig. 2, and the detailed description of step S104 can be referred to for a specific operation method.
The processing module 115 is configured to, when the difference is greater than the preset threshold, perform reverse processing on the water system structure line to obtain a repaired water system structure line, perform error marking on the water system structure line, and store and output the error marking. Specifically, the processing module 115 may be configured to execute step S105 shown in fig. 2, and the detailed description of step S105 may be referred to for a specific operation method.
Referring to fig. 8, in the present embodiment, the automatic water collection direction checking and repairing system 110 further includes a second obtaining module 116, a detecting module 117, and a marking module 118.
The second obtaining module 116 is configured to obtain a water-based structure line of a predetermined code in the source data and a flow direction symbol of the predetermined code in the source data. Specifically, the second obtaining module 116 may be configured to execute step S201 shown in fig. 3, and the detailed description of step S201 may be referred to for a specific operation method.
The detection module 117 is configured to detect whether there is a flow direction symbol that matches the water system structure line one by one. Specifically, the detection module 117 may be configured to execute step S202 shown in fig. 3, and the detailed description of step S202 may be referred to for a specific operation method.
The marking module 118 is configured to mark the water system configuration line that does not have the flow direction symbol matching therewith, and output a marking result when the water system configuration line does not have the flow direction symbol matching therewith. Specifically, the marking module 118 may be configured to execute the specific operation method of step S203 shown in fig. 3, which is described in detail with reference to step S203.
Referring to fig. 9, in the present embodiment, the calculation module 113 includes an insertion unit 1131, a coordinate value obtaining unit 1132 and a direction value obtaining unit 1133.
The insertion unit 1131 is configured to insert a point on the water system configuration line such that a distance between the inserted point and the flow direction symbol is shorter than a distance between another point on the water system configuration line and the flow direction symbol. Specifically, the inserting unit 1131 may be configured to execute step S1031 shown in fig. 5, and a specific operation method may refer to a detailed description of step S1031.
The coordinate value obtaining unit 1132 is configured to obtain coordinate values of the inserted point and coordinate values of a node next to the point. Specifically, the coordinate value acquiring unit 1132 may be configured to execute step S1032 shown in fig. 5, and a specific operation method may refer to a detailed description of step S1032.
The direction value obtaining unit 1133 is configured to obtain a direction value between the inserted point and the next node according to the coordinate value of the inserted point and the coordinate value of the next node. Specifically, the direction value obtaining unit 1133 may be configured to execute step S1033 shown in fig. 5, and a specific operation method may refer to the detailed description of step S1033.
Referring to fig. 10, in the present embodiment, the first obtaining module 112 includes a code obtaining unit 1121 and a searching unit 1122.
The code acquiring unit 1121 is configured to receive an input designated area and acquire a code of a water system structure line to be processed in the designated area. Specifically, the encoding obtaining unit 1121 can be used to execute step S1021 shown in fig. 4, and the detailed operation method can refer to the detailed description of step S1021.
The search unit 1122 is configured to search for a flow direction symbol having a code matching the code of the water-based structure line in the designated area. Specifically, the search unit 1122 may be configured to execute step S1022 shown in fig. 4, and the detailed description of step S1022 may be referred to for a specific operation method.
In summary, the method and system for automatically checking and repairing the water system collecting direction provided by the present invention first obtain the flow direction symbol matching the water system structure line to be processed in the designated area, then obtain the point on the water system structure line closest to the flow direction symbol, and calculate the direction value between the point and the next node. And performing difference processing on the direction value obtained by calculation and the angle value of the flow direction symbol, and comparing the obtained difference value with a preset threshold value. And if the obtained difference is larger than the preset threshold, performing reverse processing on the water system structure line to obtain a repaired water system structure line, performing error marking on the water system structure line, storing and outputting the error mark. The automatic checking and repairing scheme for the water system collecting direction provided by the invention has the advantages of no need of manual intervention, scientific and reasonable design, convenience in operation and high stability, can effectively overcome the defects of unreasonable checking and large amount of manual checking and modification of the existing water system direction, and improves the production efficiency.
Furthermore, the automatic checking and repairing scheme for the water system acquisition direction provided by the invention only needs to pass through the data source and the corresponding parameter equipment, the system can automatically detect whether the contradiction problem exists between the water system acquisition direction and the flow direction symbol, and automatically repair the water system acquisition direction when the contradiction exists between the water system acquisition direction and the flow direction symbol, the automation degree is high, and the efficiency is incomparable with the prior art.
Furthermore, the number of operating personnel can be reduced through the scheme, the labor intensity is reduced, the detection error caused by artificial reasons is reduced, and the quality of the surveying and mapping product is improved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to embodiments of the present invention. In this regard, each block in the flowchart or 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/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent 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. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: u disk, removable hard disk, read only memory, random access memory, magnetic or optical disk, etc. for storing program codes.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Claims (10)
1. An automatic inspection and repair method for a water system collection direction, the method comprising:
receiving imported DLG source data;
acquiring a flow direction symbol matched with a water system structure line to be processed in a designated area;
obtaining a point on the water system structure line closest to the flow direction symbol, and calculating a direction value between the point and the next node;
carrying out difference processing on the direction value obtained by calculation and the angle value of the flow direction symbol, and comparing the obtained difference value with a preset threshold value;
and if the difference is larger than the preset threshold, performing reverse processing on the water system structure line to obtain a repaired water system structure line, performing error marking on the water system structure line, storing and outputting the error mark.
2. The automatic inspection and repair method for water system collection direction according to claim 1, further comprising:
acquiring a water system structure line of a preset code in the DLG source data and a flow direction symbol of the preset code in the DLG source data;
and detecting whether flow direction symbols matched with the water system structure lines one by one exist or not, if the flow direction symbols do not match with the flow direction symbols, marking the water system structure lines which do not have the flow direction symbols matched with the water system structure lines, and outputting a marking result.
3. The method for automatically checking and repairing the water system collecting direction according to claim 1, wherein the step of obtaining a point on the water system configuration line closest to the flow direction symbol and calculating a direction value between the point and a next node thereof comprises:
inserting a point on the water system structure line so that a distance between the inserted point and the flow direction symbol is shorter than a distance between other points on the water system structure line and the flow direction symbol;
obtaining coordinate values of the inserted point and coordinate values of a next node of the point in a direction along the water system structure line;
and obtaining a direction value between the inserted point and the next node according to the coordinate value of the inserted point and the coordinate value of the next node.
4. The automatic checking and repairing method for water system collecting direction according to claim 3, wherein the coordinate value of the inserted point is marked as A (x)1,y1,z1) Marking the coordinate value of the next node as B (x)2,y2,z2) A direction value between the inserted point and the next node is obtained by the following formula:
wherein x is1、y1The values of the points A on the x-axis and the y-axis, x2、y2The values of point B on the x-axis and y-axis, respectively.
5. The automatic inspection and repair method for water system collection direction according to claim 3, further comprising:
when the inserted point is equal to the abscissa of the next node and the ordinate of the next node is greater than the ordinate of the inserted point, it is determined that the direction of the water system structure line at the inserted point is the same as
6. The automatic checking and repairing method for water system collecting direction according to claim 1, wherein the step of obtaining the flow direction symbol matching the water system structure line to be processed in the designated area comprises:
receiving an input designated area, and acquiring a code of a water system structure line to be processed in the designated area;
and finding the flow direction symbol with the code matched with the code of the water system structure line in the specified area.
7. An automatic inspection and repair system for water system collection direction, the system comprising:
the source data receiving module is used for receiving imported DLG source data;
the first acquisition module is used for acquiring a flow direction symbol matched with a water system structure line to be processed in a specified area;
the calculation module is used for obtaining a point on the water system structure line closest to the flow direction symbol and calculating a direction value between the point and the next node;
the comparison module is used for carrying out difference processing on the direction value obtained by calculation and the angle value of the flow direction symbol and comparing the obtained difference value with a preset threshold value;
and the processing module is used for performing reverse processing on the water system structure line to obtain a repaired water system structure line when the difference is larger than the preset threshold, performing error marking on the water system structure line, and storing and outputting the error mark.
8. The automatic water system direction of acquisition inspection and repair system of claim 7, further comprising:
the second acquisition module is used for acquiring a water system structure line of a preset code in the DLG source data and a flow direction symbol of the preset code in the DLG source data;
the detection module is used for detecting whether flow direction symbols matched with the water system structure lines one by one exist or not;
and the marking module is used for marking the water system structure line which does not have the flow direction symbol matched with the water system structure line when the water system structure line does not have the flow direction symbol matched with the water system structure line, and outputting a marking result.
9. The automatic checking and repairing system for water system collecting direction according to claim 7, wherein said calculating module comprises an inserting unit, a coordinate value obtaining unit and a direction value obtaining unit;
an insertion unit configured to insert a point on the water system configuration line such that a distance between the inserted point and the flow direction symbol is shorter than a distance between another point on the water system configuration line and the flow direction symbol;
a coordinate value acquisition unit for acquiring a coordinate value of the inserted point and a coordinate value of a next node of the point;
a direction value acquisition unit for acquiring a direction value between the inserted point and the next node according to the coordinate value of the inserted point and the coordinate value of the next node.
10. The automatic checking and repairing system for water system collecting direction according to claim 7, wherein said first acquiring module comprises a code acquiring unit and a searching unit;
the code acquisition unit is used for receiving an input designated area and acquiring a code of a water system structure line to be processed in the designated area;
the searching unit is used for searching the flow direction symbol with the code matched with the code of the water system structure line in the designated area.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710944767.3A CN107633246B (en) | 2017-10-12 | 2017-10-12 | Automatic checking and repairing method and system for water system collecting direction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710944767.3A CN107633246B (en) | 2017-10-12 | 2017-10-12 | Automatic checking and repairing method and system for water system collecting direction |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107633246A CN107633246A (en) | 2018-01-26 |
CN107633246B true CN107633246B (en) | 2020-02-21 |
Family
ID=61104198
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710944767.3A Active CN107633246B (en) | 2017-10-12 | 2017-10-12 | Automatic checking and repairing method and system for water system collecting direction |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107633246B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108805146B (en) * | 2018-06-05 | 2019-03-12 | 中国科学院南京土壤研究所 | A kind of radial and centripetal water system recognition methods |
CN118115709B (en) * | 2024-03-19 | 2024-08-13 | 自然资源部重庆测绘院 | Method, system and computer readable storage medium for correcting direction of line vector |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101477548A (en) * | 2009-01-20 | 2009-07-08 | 中国测绘科学研究院 | Regulation based universal space data quality checking technique |
CN103258007A (en) * | 2013-04-16 | 2013-08-21 | 中国科学院地理科学与资源研究所 | Map annotation method and device by means of conflict detection mechanism |
CN103366633A (en) * | 2013-04-16 | 2013-10-23 | 中国水利水电科学研究院 | Water conservation map data model-based flood risk map drawing method and system thereof |
-
2017
- 2017-10-12 CN CN201710944767.3A patent/CN107633246B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101477548A (en) * | 2009-01-20 | 2009-07-08 | 中国测绘科学研究院 | Regulation based universal space data quality checking technique |
CN103258007A (en) * | 2013-04-16 | 2013-08-21 | 中国科学院地理科学与资源研究所 | Map annotation method and device by means of conflict detection mechanism |
CN103366633A (en) * | 2013-04-16 | 2013-10-23 | 中国水利水电科学研究院 | Water conservation map data model-based flood risk map drawing method and system thereof |
Non-Patent Citations (1)
Title |
---|
基于Microstation的一体化地图数据检查系统的设计与实现;刘军儒;《中国优秀硕士学位论文全文数据库信息科技辑》;20160331(第3期);第2-4章 * |
Also Published As
Publication number | Publication date |
---|---|
CN107633246A (en) | 2018-01-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10755139B2 (en) | Random sample consensus for groups of data | |
CN107315817B (en) | Electronic drawing text matching method and device, storage medium and computer equipment | |
CN113920117B (en) | Panel defect area detection method and device, electronic equipment and storage medium | |
CN111401228B (en) | Video target labeling method and device and electronic equipment | |
CN107633246B (en) | Automatic checking and repairing method and system for water system collecting direction | |
WO2022022186A1 (en) | Data point identification method, identification device, and computer readable storage medium | |
CN111552640A (en) | Code detection method, device, equipment and storage medium | |
CN111353502A (en) | Digital table identification method and device and electronic equipment | |
CN113360789A (en) | Interest point data processing method and device, electronic equipment and storage medium | |
CN113034456A (en) | Bolt looseness detection method, device, equipment and storage medium | |
CN116205889A (en) | Offset detection method, offset detection device, electronic equipment and storage medium | |
KR101445272B1 (en) | Method for managing construction using argumented reality and computer readable recording medium on which program for executing | |
CN107871128B (en) | High-robustness image recognition method based on SVG dynamic graph | |
CN111597993B (en) | Data processing method and device | |
US8630477B2 (en) | Electronic device and method for outputting measurement data | |
CN105159921A (en) | Method and apparatus for de-duplicating point-of-interest (POI) data in map | |
CN104182797A (en) | Automatic selection method of product part number on the basis of image recognition technology | |
CN110688439A (en) | Method for automatically identifying and analyzing enterprise information based on regional geocoding | |
US8761515B2 (en) | Electronic device and method for creating measurement codes | |
CN110675729B (en) | Multi-version local geographic information integrated drawing method and system | |
CN112559773A (en) | Knowledge graph system building method and device | |
CN105956296A (en) | Method for detecting dimensioning integrity of parts engineering drawing | |
CN112184742A (en) | Method, device and equipment for detecting common edges of graphs and computer readable medium | |
CN111583383A (en) | Three-dimensional visual auxiliary method for high-pressure container inspection | |
CN113377255B (en) | Geological disaster slippage azimuth processing method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |