CN111813885A - Method and device for detecting contour line elevation value of topographic map with basic scale - Google Patents
Method and device for detecting contour line elevation value of topographic map with basic scale Download PDFInfo
- Publication number
- CN111813885A CN111813885A CN202010655320.6A CN202010655320A CN111813885A CN 111813885 A CN111813885 A CN 111813885A CN 202010655320 A CN202010655320 A CN 202010655320A CN 111813885 A CN111813885 A CN 111813885A
- Authority
- CN
- China
- Prior art keywords
- contour line
- target contour
- elevation
- elevation value
- topographic map
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Remote Sensing (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Instructional Devices (AREA)
Abstract
The invention relates to a method and a device for detecting elevation values of contour lines of a basic scale topographic map, wherein target contour lines and elevation values thereof are determined in the basic scale topographic map; obtaining equal-height distances in a basic scale topographic map; determining the type of the target contour line and a type code corresponding to the type of the target contour line based on the elevation value and the contour distance of the target contour line; acquiring a type code marked on the target contour line in a basic scale topographic map; and comparing the two types of codes, and judging whether the two types of codes are consistent, so that whether the elevation value of the target contour line meets the set requirement can be judged. The invention obtains the type and the type code of the target contour line by utilizing the elevation value of the target contour line and combining the contour distance, compares the type code with the type code marked in the basic proportional topographic map, can accurately and quickly obtain the detection result of the elevation value of the contour line, and improves the quality evaluation efficiency of the basic proportional topographic map data and the accuracy of the evaluation result.
Description
Technical Field
The invention relates to the technical field of surveying and mapping, in particular to a method and a device for detecting contour line elevation values of a topographic map with a basic scale.
Background
The geographic information mapping result data comprises database establishing data and drawing data, so that the quality of the geographic information mapping result needs to be evaluated by comprehensively considering the quality of the database establishing data and the quality of the drawing data. For example, when quality inspection and acceptance of mapping results are performed or in professional skill competition in mapping geographic information industry, the quality of geographic information mapping results needs to be evaluated. For database building data, the evaluation items mainly comprise three items of data organization, mathematical precision, geographic precision and topological consistency.
The elevation value of the contour line is one of important evaluation contents of mathematical precision and geographic precision of database building data. Therefore, the accuracy of the contour height values in the topographic map directly influences the evaluation effect of the geographic information mapping result data. Therefore, a method for detecting elevation values of contour lines in a topographic map needs to be provided, but a method for accurately and quickly detecting whether the elevation values of contour lines of the topographic map are missed or not is lacked at present, which is not beneficial to improving the quality evaluation efficiency of geographic information surveying and mapping result data and the accuracy of evaluation results.
Disclosure of Invention
The invention aims to provide a method and a device for detecting elevation values of contour lines of a basic scale topographic map, which can accurately and quickly detect whether the elevation values of all contour lines in the basic scale topographic map are wrong or not, and effectively improve the quality evaluation efficiency of geographic information surveying and mapping result data and the accuracy of an evaluation result.
In order to achieve the above object, the present invention provides a method for detecting elevation values of contour lines of a basic scale topographic map, the method comprising:
firstly, determining a target contour line in a basic scale topographic map, and acquiring an elevation value of the target contour line;
step two, acquiring equal-altitude distances in the topographic map with the basic scale;
determining the type of the target contour line based on the elevation value and the height distance of the target contour line, acquiring a type code corresponding to the type of the target contour line, and recording as a first type code; the target contour line types comprise a head curve, a meter curve, an interval curve and an auxiliary curve;
fourthly, acquiring type codes of the target contour lines marked in the basic scale topographic map, and marking as second type codes;
judging whether the first type codes and the second type codes are consistent or not; if so, judging that the elevation value of the target contour line meets the elevation value requirement corresponding to the contour line type in the basic scale topographic map; otherwise, it is not satisfied;
and step six, after the judgment of the two types of codes is finished, re-determining the target contour line, and repeating the steps one to five until all contour lines in the basic scale topographic map data are traversed.
Optionally, the determining the target contour line in the basic scale topographic map specifically includes:
selecting one or more contour lines as target contour lines;
when one contour line is selected as a target contour line, selecting any contour line in the basic proportion topographic map as the target contour line;
when a plurality of contour lines are selected as target contour lines at the same time, the target contour lines are determined according to the elevation values of all contour lines in the basic scale topographic map, and a plurality of contour lines with the same elevation value are selected as the target contour lines.
Optionally, the equal altitude distance of the basic scale topographic map is determined according to the elevation value of the head curve in the basic scale topographic map.
Optionally, the equal-altitude distance of the basic scale topographic map is determined according to an elevation value of a head curve in the basic scale topographic map, and specifically includes:
acquiring an elevation value of a first curve in the topographic map data of the basic scale;
removing repeated values of the elevation values;
arranging the rest elevation values in sequence according to the sizes to construct an elevation value sequence;
obtaining a plurality of elevation differences by subtracting two adjacent elevation values in the elevation value sequence;
and taking the elevation difference with the most repetition times in the plurality of elevation differences as the equal-altitude distance.
Optionally, when the elevation difference is different from the equal-height distance, it is determined that at least one of the elevation values of the two adjacent first curves corresponding to the elevation difference is in non-equal-height-distance gradient.
Optionally, determining the type of the target contour based on the elevation value of the target contour and the height distance includes:
judging whether the elevation value of the target contour line can be divided by N times of the equal height distance to obtain a first judgment result; the increasing multiplying power value N of the counting curve is determined according to the number of equal altitude distances between two adjacent counting curves;
when the first judgment result is yes, judging that the target contour line is a measuring curve;
when the first judgment result is negative, judging whether the elevation value of the target contour line can be divided by the equal height distance to obtain a second judgment result;
when the second judgment result is yes, judging that the target contour line is a first curve;
when the second judgment result is negative, judging whether the elevation value of the target contour line can be subjected to 1/2 times of the equal height distance in an integral way or not to obtain a third judgment result;
when the third judgment result is yes, judging that the target contour line is an inter-curve;
when the third judgment result is negative, judging whether the elevation value of the target contour line can be divided by 1/4 times of the equal height distance to obtain a fourth judgment result;
when the fourth judgment result is yes, judging that the target contour line is a help curve;
and when the fourth judgment result is negative, judging that the target contour line does not meet any contour line type, and judging that the elevation value of the target contour line has an error.
The invention also provides a device for detecting the elevation value of the contour line of the basic scale topographic map, which comprises the following components:
the elevation value acquisition module is used for acquiring the elevation value of a target contour line in the basic proportion topographic map;
the equal-height distance acquisition module is used for acquiring equal-height distances in the basic scale topographic map;
a target contour type determination module for determining the type of the target contour based on the elevation value of the target contour and the height distance; the target contour line types comprise a head curve, a meter curve, an interval curve and an auxiliary curve;
the type code acquisition module comprises a first type code acquisition module and a second type code acquisition module; the first type code obtaining module is used for obtaining a code corresponding to the target contour type determined based on the elevation value and the equal altitude distance and recording the code as a first type code; the second type code obtaining module is configured to obtain a type code of the target contour line marked in the basic scale topographic map, and mark the type code as a second type code;
the type code matching module is used for judging whether the first type codes and the second type codes are consistent or not; if so, judging that the elevation value of the target contour line meets the elevation value requirement corresponding to the contour line type in the basic scale topographic map; otherwise, it is not satisfied; and after the two types of codes are judged, re-determining the target contour line until all contour lines in the basic scale topographic map data are traversed.
Optionally, the elevation value obtaining module includes a target contour line determining sub-module and an elevation value obtaining sub-module;
and the target contour determination submodule is used for selecting one or more contours as target contours.
And the elevation value acquisition sub-module is used for acquiring the determined elevation value of the target contour line.
Optionally, the equal-altitude distance obtaining module includes:
the first curve elevation value acquisition submodule is used for acquiring the elevation value of a first curve in the basic scale topographic map data;
the elevation value sequence construction submodule is used for removing repeated values of the elevation values and arranging the residual elevation values in sequence according to the sizes to construct an elevation value sequence;
the elevation difference acquisition sub-module is used for calculating the difference of two adjacent elevation values in the elevation value sequence to obtain a plurality of elevation differences;
and the equal-altitude-distance acquisition submodule is used for taking the altitude difference with the most repetition times in the plurality of altitude differences as the equal altitude distance.
Optionally, the target contour line type determining module specifically includes;
judging whether the elevation value of the target contour line can be divided by N times of the equal height distance to obtain a first judgment result; the increasing multiplying power value N of the counting curve is determined according to the number of equal altitude distances between two adjacent counting curves;
when the first judgment result is yes, judging that the target contour line is a measuring curve;
when the first judgment result is negative, judging whether the elevation value of the target contour line can be divided by the equal height distance to obtain a second judgment result;
when the second judgment result is yes, judging that the target contour line is a first curve;
when the second judgment result is negative, judging whether the elevation value of the target contour line can be subjected to 1/2 times of the equal height distance in an integral way or not to obtain a third judgment result;
when the third judgment result is yes, judging that the target contour line is an inter-curve;
when the third judgment result is negative, judging whether the elevation value of the target contour line can be divided by 1/4 times of the equal height distance to obtain a fourth judgment result;
when the fourth judgment result is yes, judging that the target contour line is a help curve;
and when the fourth judgment result is negative, judging that the target contour line does not meet any contour line type, and judging that the elevation value of the target contour line has an error.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
the invention provides a method and a device for detecting elevation values of contour lines of a basic scale topographic map, firstly, a target contour line is determined in the basic scale topographic map and the elevation value of the target contour line is obtained; obtaining equal-height distances in a basic scale topographic map; then determining the type of the target contour line based on the elevation value and the contour distance of the target contour line, and simultaneously obtaining a type code corresponding to the type of the target contour line; then acquiring a type code marked on the target contour line in the topographic map with the basic scale; and finally, comparing the two types of codes, judging whether the two types of codes are consistent, if so, proving that the elevation value of the target contour line meets the setting requirement, and if not, proving that the elevation value of the target contour line is set wrongly. And after the type code is judged, continuously selecting the target contour line until the detection of the elevation values of all contour lines is finished. Obviously, the invention utilizes the elevation value of the target contour line to combine with the contour distance to obtain the type and the type code of the target contour line, compares the type code with the type code marked in the basic proportion topographic map, realizes the detection of the elevation value of each contour line in the topographic map, and has the advantages of simple and easy implementation of the operation steps, high detection efficiency and accurate detection result.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a flowchart illustrating steps of a method for detecting elevation values of contour lines of a basic scale topographic map according to an embodiment 1 of the present invention;
FIG. 2 is a flowchart illustrating a step S2 in the method for detecting elevation values of contour lines of a basic scale topographic map according to embodiment 1 of the present invention;
FIG. 3 is a flowchart illustrating a step S3 in the method for detecting elevation values of contour lines of a basic scale topographic map according to embodiment 1 of the present invention;
fig. 4 is a block diagram of a device for detecting elevation values of contour lines of a basic scale topographic map according to embodiment 2 of the present invention.
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. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention aims to provide a method and a device for detecting elevation values of contour lines of a basic scale topographic map, which can accurately and quickly detect whether the elevation values of all contour lines in the basic scale topographic map are wrong or not, and effectively improve the quality evaluation efficiency of geographic information surveying and mapping result data and the accuracy of an evaluation result.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Example 1
As shown in fig. 1, a method for detecting elevation values of contour lines of a basic scale topographic map includes:
step S1, determining a target contour line in a basic scale topographic map, and acquiring an elevation value of the target contour line;
when the target contour is selected, only one contour may be selected as the target contour, or a plurality of contours may be simultaneously selected as the target contour. For the case where only one contour is selected, any one contour may be selected as the target contour. When a plurality of contour lines are simultaneously selected as target contour lines, in order to improve the detection efficiency of the elevation values of the contour lines, the contour lines with the same characteristics can be selected as the target contour lines, the elevation values of the contour lines are detected, so that the contour lines with the same elevation value can be simultaneously used as the target contour lines, namely, the target contour lines can be determined according to the elevation values of all contour lines in a basic scale topographic map, and the contour lines with the same elevation value are selected as the target contour lines. By the method, whether the elevation values of the contour lines are wrong or not can be detected at the same time, and the efficiency of contour line elevation value detection is greatly improved.
Step S2, obtaining equal-altitude distances in the basic scale topographic map;
the basic proportion topographic map comprises a plurality of contour lines, and each contour line is marked with a corresponding elevation value and a type code. The elevation difference between adjacent contour lines on the topographic map is called equal height distance, and according to the drawing requirement of the contour lines, the elevation difference between any adjacent first curves should be equal, that is, the elevation value of the first curves in the basic proportion topographic map should be sequentially changed in a gradient manner at a fixed equal height distance. In this embodiment, the equal-altitude distance may be pre-stored, or may be input by the detecting person in real time, or may be calculated according to the elevation value of the first curve in the basic proportional topographic map.
In order to more fully detect the elevation values of the contour lines in the basic scale topographic map, in the preferred embodiment of the present invention, the equal-altitude distance is calculated according to the elevation value of the head curve in the basic scale topographic map. As shown in fig. 2, step S2 specifically includes:
s201, acquiring an elevation value of a primary curve in the topographic map data of the basic scale;
s202, removing repeated values of the elevation values;
s203, arranging the residual elevation values in sequence according to the sizes to construct an elevation value sequence;
since the contours are closed curves, the elevation values of different first curves may be the same, i.e. each elevation value corresponds to at least one contour. Therefore, for the situation that the same elevation value may exist in the obtained elevation values of the first curve, in order to obtain a sequence of successively increasing or decreasing elevation values and further obtain an equal altitude distance, before constructing the sequence of elevation values, the repeated value in the obtained elevation values needs to be removed; and then sequentially arranging the remaining elevation values according to the sizes to construct an elevation value sequence.
And removing repeated elevation values, and ensuring the uniqueness of each elevation value in the elevation value sequence. For example, if there are equal elevation values a1, a2, and A3 among the obtained elevation values, it is necessary to remove a2 and A3 that are duplicated with a1, and only a1 remains.
Specifically, the arrangement manner of the elevation values in the elevation value sequence may be ascending order from small to large, or descending order from large to small.
S204, calculating the difference of two adjacent elevation values in the elevation value sequence to obtain a plurality of elevation differences;
and if the elevation values in the elevation value sequence are arranged according to an ascending order, subtracting the previous elevation value from the subsequent elevation value in the two adjacent elevation values to obtain an elevation difference. For example, the high-order value series are (G1, G2, G3, …, Gk-1,Gk) According to the step S204, the height difference sequence (G2-G1, G3-G2, …, G) can be obtainedk-Gk-1). Similarly, if the elevation values in the elevation value sequence are arranged according to a descending order, the elevation difference is obtained by subtracting the previous elevation value from the subsequent elevation value in the two adjacent elevation values.
And S205, taking the elevation difference with the most repetition times in the plurality of elevation differences as the equal-altitude distance.
In a normal case, the plurality of height differences obtained in step S204 are all equal. However, since an error in setting the elevation values of the contour lines may occur, the calculated height differences are not equal to each other. It can be understood that, in general, the elevation values of a small portion of contour lines that do not meet the requirement for the gradient of elevation values are the elevation values of a large portion of contour lines, and the elevation values of a large portion of contour lines meet the requirement for the gradient of elevation values, so that most of the height differences obtained in step S204 are equal, and the height difference is equal to the equal height distance, which is specifically represented in the form that the height difference equal to the equal height distance is repeated the most times among the height differences obtained in step S204.
In other words, when the elevation difference is different from the equal elevation distance, it is determined that at least one of the elevation values of the two adjacent first curves corresponding to the elevation difference is not changed in the equal elevation distance.
The elevation values of the target contour and the contour distances in the topographic map are obtained through steps S1 and S2, and the elevation values and the contour distances may be used to detect the elevation values of each contour in the basic proportion topographic map. And traversing all contour lines in the topographic map, taking each contour line as a target contour line, judging whether the height value of each contour line meets the height value setting requirement of the contour line, and further judging whether the height value of each contour line is wrong.
Step S3, determining the type of the target contour line based on the elevation value and the height distance of the target contour line, and acquiring a type code corresponding to the type of the target contour line and recording as a first type code; the target contour line types comprise a head curve, a meter curve, an interval curve and an auxiliary curve;
the contour lines comprise various types, specifically comprising a first curve, a counting curve, a middle curve and an auxiliary curve. The first curve, also called basic contour line, is a thin solid line drawn according to a specified equal altitude distance for displaying the basic form of the landform. And (4) calculating curves, namely thickened contour lines, wherein the initial curves are thickened into a thick solid line every 4 or 5 equal height distances from the specified elevation so as to be convenient for interpretation and calculation of the elevation on the map. The inter-curve, also called half-distance contour line, is a slender dotted line drawn at a half-distance, and is mainly used for displaying a certain section of miniature landform which cannot be displayed by the first curve. The auxiliary curve, also called auxiliary contour line, is a thin short dotted line drawn by quarter of equal height distance, and is used for displaying a certain section of miniature landform which cannot be displayed by the curve.
The type of the contour is determined by the relationship between the elevation value of the contour and the altitude distance in the topographic map data, so that the type of the target contour can be obtained according to the relationship between the elevation value of the target contour and the altitude distance, as shown in fig. 3, step S3 specifically includes:
step S301, judging whether the elevation value of the target contour line can be divided by N times of equal height distance to obtain a first judgment result;
when the first judgment result is yes, the target contour height value meets the height value requirement of the curve, and step S302 is executed;
when the first judgment result is negative, the target contour line elevation value does not meet the elevation value requirement of the curve, and step S303 is executed;
step S302, judging that the target contour line is a measuring curve;
step S303, judging whether the elevation value of the target contour line can be divided into equal height distances or not to obtain a second judgment result;
when the second judgment result is yes, the height value of the target contour line meets the requirement of the height value of the first curve, and step S304 is executed;
when the second judgment result is negative, the target contour line height value does not meet the height value requirement of the first curve, and step S305 is executed;
and N is an increasing multiplying power value of the curve, and is determined according to the number of equal altitude distances between two adjacent curves. In this embodiment, N may be input in real time. Alternatively, the distance may be obtained from the equal altitude obtained in step S2 before step S302 is executed.
The specific implementation of obtaining the N value according to the equal altitude distance before executing step S301 is as follows: and judging whether the equal-height distance is equal to a preset value or not, if so, taking a preset first preset multiple as N, and if not, taking a preset second preset multiple as N. The preset value, the first preset multiple and the second preset multiple are set according to specific contour drawing requirements, and can be stored in a memory in advance or input in real time. In this embodiment, the preset value is set to 2.5 meters, the first preset multiple is 4, that is, N is 4, and the second preset multiple is 5, that is, N is 5.
Step S304, judging that the target contour line is a head curve;
step S305, judging whether the elevation value of the target contour line can be completely divided by 1/2 times of the equal height distance or not to obtain a third judgment result;
if the third judgment result is yes, the elevation value of the target contour line meets the requirement of the elevation value of the inter-curve, and then the step S306 is executed;
if the third judgment result is negative, the elevation value of the target contour line does not meet the elevation value requirement of the inter-curve, and then step S307 is executed;
step S306, judging that the target contour line is an inter-curve;
step S307, judging whether the elevation value of the target contour line can be completely divided by 1/4 times of the equal height distance or not to obtain a fourth judgment result;
if the fourth judgment result is yes, the elevation value of the target contour line meets the requirement of the elevation value of the auxiliary curve, and then step S308 is executed;
if the fourth judgment result is negative, the elevation value of the target contour line does not meet the elevation value requirement of the auxiliary curve, and step S309 is executed;
step S308, judging that the target contour line is a help curve;
step S309, judging that the target contour line does not meet any contour line type, and the elevation value of the target contour line has an error.
When step S309 is executed, it indicates that the target contour does not belong to any one of the first curve, the second curve, the third curve and the fourth curve, that is, the target contour elevation value does not satisfy the requirement of any contour type, and it is determined that the elevation value of the target contour is set incorrectly.
After the type of the target contour line is determined, a type code corresponding to the type needs to be further acquired for the target contour line of which the type is determined.
Step S4, acquiring type codes of the target contour lines marked in the basic scale topographic map, and marking as second type codes;
in the basic scale topographic map, each contour line corresponds to a type code, namely a GB code, which identifies the contour line type, in addition to the elevation value. The measuring curve corresponds to a measuring curve code, the first curve corresponds to a first curve code, the middle curve corresponds to a middle curve code, the auxiliary curve corresponds to an auxiliary curve code, and the identification codes corresponding to each type of contour line are different.
Step S5, judging whether the first type code and the second type code are consistent; if so, judging that the elevation value of the target contour line meets the elevation value requirement corresponding to the contour line type in the basic scale topographic map; otherwise, it is not satisfied;
in order to detect whether the elevation value of the target contour is incorrect, it is further determined whether the type code corresponding to the type of the target contour (i.e., the type code corresponding to the type obtained in step S3) is consistent with the type code corresponding to the target contour in the basic proportion topographic map (i.e., the type code obtained in step S4), if not, it indicates that the elevation value of the contour is incorrect, and step S6 is further performed. For example, if the type code of the target contour obtained in step S4 is an initial curve code, and the type of the contour obtained in step S3 is a curvy, the curvy code and the initial curve code are not consistent, and therefore, the elevation value of the contour does not meet the requirement of the elevation value corresponding to the initial curve.
Of course, when the two types of codes are judged to be consistent, it is indicated that the elevation value of the target contour line has no error, and the requirement of the elevation value corresponding to the target contour line type is met. Step S6 also needs to be further executed.
And S6, after the two types of codes are judged, re-determining the target contour line, and repeating the steps S1 to S5 until all contour lines in the basic scale topographic map data are traversed.
It should be added that, according to the contour drawing requirement, the elevation difference between any adjacent first curves is equal, that is, the elevation values of the first curves in the topographic map should be sequentially changed at a fixed equal altitude distance. If the rule is not satisfied, the setting of the elevation value in the topographic map is wrong. In this embodiment, the error is defined as a non-tapered error of the elevation value. In order to more comprehensively detect the elevation values of the contour lines in the topographic map, whether the elevation values of the contour lines are matched with the elevation value requirements corresponding to the contour line types or not is detected, and whether non-gradient errors exist in the elevation values in the basic proportion topographic map or not can also be detected.
Therefore, in a preferred embodiment of the present invention, after step S205 is completed, height differences different from the equal height distances may be obtained, and step S206 may be executed for these height differences, and when the height differences are different from the equal height distances, it is determined that at least one of the two adjacent first curve height values corresponding to the height differences is in an unequal height distance gradient.
It should be noted that the step of non-gradient error determination of the elevation value and the step of determining whether the elevation value of the contour line meets the requirement of the elevation value corresponding to the contour line type do not conflict with each other, and may be performed simultaneously or sequentially. For example, after step S205 is completed, step S206 may be executed first and then steps S3 to S6 are executed, or step S206 may be required to be executed simultaneously with steps S3 to S6.
Each elevation difference corresponds to two elevation values. It is determined whether or not there is a level difference that is not identical to the equal level distance obtained in step S205 among the plurality of level differences obtained in step S204. If the difference exists, the non-gradient error exists between the two elevation values corresponding to the elevation difference with inconsistent equal height distances. Of course, if the height differences are consistent with the equal height distances, it indicates that there is no non-gradient error in the elevation values of the contour lines in the basic proportion topographic map.
In this embodiment, the type of the target contour line is obtained according to the height distance and the elevation value of the target contour line, the type code corresponding to the target contour line is further obtained, whether the obtained type code corresponding to the target contour line is inconsistent with the type code marked by the target contour line in the basic proportional topographic map is judged, whether the elevation value of the target contour line meets the requirement can be directly known according to the judgment result, the detection result of the elevation value of the contour line can be accurately and quickly obtained, and meanwhile, the quality evaluation efficiency of the basic proportional scale topographic map data and the accuracy of the evaluation result can be improved.
Example 2
As shown in fig. 4, a contour height value detection apparatus for a basic scale topographic map includes:
an elevation value obtaining module 100, configured to obtain an elevation value of a target contour line in a basic proportion topographic map;
the elevation value acquisition module 100 comprises a target contour line determination sub-module 110 and an elevation value acquisition sub-module 120;
wherein the target contour determination sub-module 110 is configured to select one or more contours as target contours;
when one contour line is selected as a target contour line, selecting any contour line in the basic proportion topographic map as the target contour line;
when a plurality of contour lines are selected to be simultaneously used as target contour lines, determining the target contour lines according to the elevation values of all contour lines in the basic scale topographic map, and selecting a plurality of contour lines with the same elevation value as the target contour lines;
the elevation value obtaining sub-module 120 is configured to obtain the determined elevation value of the target contour.
An equal-height distance obtaining module 200, configured to obtain equal-height distances in a basic scale topographic map;
the equal-altitude obtaining module 200 includes:
a first curve elevation value obtaining sub-module 210, configured to obtain an elevation value of a first curve in the basic scale topographic map data;
an elevation sequence construction submodule 220, configured to remove duplicates of the elevations, and arrange the remaining elevations in order according to size to construct an elevation sequence;
an elevation difference obtaining sub-module 230, configured to obtain a plurality of elevation differences by subtracting two adjacent elevation values in the elevation value sequence;
and the equal-height distance obtaining sub-module 240 is configured to use the height difference with the largest repetition number among the plurality of height differences as the equal-height distance.
A target contour type determination module 300, configured to determine a type of the target contour based on the elevation value of the target contour and the height distance; the target contour line types comprise a head curve, a meter curve, an interval curve and an auxiliary curve;
the target contour type determining module 300 specifically includes;
judging whether the elevation value of the target contour line can be divided by N times of the equal height distance to obtain a first judgment result; the method comprises the following steps that N is a progressive magnification value of a counting curve, and the progressive magnification value N of the counting curve is determined according to the number of equal altitude distances between two adjacent counting curves;
when the first judgment result is yes, judging that the target contour line is a measuring curve;
when the first judgment result is negative, judging whether the elevation value of the target contour line can be divided by the equal height distance to obtain a second judgment result;
when the second judgment result is yes, judging that the target contour line is a first curve;
when the second judgment result is negative, judging whether the elevation value of the target contour line can be subjected to 1/2 times of the equal height distance in an integral way or not to obtain a third judgment result;
when the third judgment result is yes, judging that the target contour line is an inter-curve;
when the third judgment result is negative, judging whether the elevation value of the target contour line can be divided by 1/4 times of the equal height distance to obtain a fourth judgment result;
when the fourth judgment result is yes, judging that the target contour line is a help curve;
and when the fourth judgment result is negative, judging that the target contour line does not meet any contour line type, and judging that the elevation value of the target contour line has an error.
A type code acquiring module 400 including a first type code acquiring module 410 and a second type code acquiring module 420; the first type code obtaining module 410 is configured to obtain a code corresponding to the target contour type determined based on the elevation value and the equal height distance, and record the code as a first type code; the second type code obtaining module 420 is configured to obtain a type code of the target contour marked in the basic scale topographic map, and mark the type code as a second type code;
a type code matching module 500, configured to determine whether the first type code and the second type code are consistent; if so, judging that the elevation value of the target contour line meets the elevation value requirement corresponding to the contour line type in the basic scale topographic map; otherwise, it is not satisfied; and after the two types of codes are judged, re-determining the target contour line until all contour lines in the basic scale topographic map data are traversed.
In this embodiment, the type of the target contour line is obtained according to the height distance and the elevation value of the target contour line, the type code corresponding to the target contour line is further obtained, whether the obtained type code corresponding to the target contour line is inconsistent with the type code marked by the target contour line in the basic proportional topographic map is judged, whether the elevation value of the target contour line meets the requirement can be directly known according to the judgment result, the detection result of the elevation value of the contour line can be accurately and quickly obtained, and meanwhile, the quality evaluation efficiency of the basic proportional scale topographic map data and the accuracy of the evaluation result can be improved.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can 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 various 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: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 principles and embodiments of the present invention have been described herein using specific examples, which are provided only to help understand the method and the core concept of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.
Claims (10)
1. A method for detecting elevation values of contour lines of a basic scale topographic map is characterized by comprising the following steps:
firstly, determining a target contour line in a basic scale topographic map, and acquiring an elevation value of the target contour line;
step two, acquiring equal-altitude distances in the topographic map with the basic scale;
determining the type of the target contour line based on the elevation value and the height distance of the target contour line, acquiring a type code corresponding to the type of the target contour line, and recording as a first type code; the target contour line types comprise a head curve, a meter curve, an interval curve and an auxiliary curve;
fourthly, acquiring type codes of the target contour lines marked in the basic scale topographic map, and marking as second type codes;
judging whether the first type codes and the second type codes are consistent or not; if so, judging that the elevation value of the target contour line meets the elevation value requirement corresponding to the contour line type in the basic scale topographic map; otherwise, it is not satisfied;
and step six, after the judgment of the two types of codes is finished, re-determining the target contour line, and repeating the steps one to five until all contour lines in the basic scale topographic map data are traversed.
2. The method according to claim 1, wherein the determining the target contour in the base scale topographic map specifically comprises:
selecting one or more contour lines as target contour lines;
when one contour line is selected as a target contour line, selecting any contour line in the basic proportion topographic map as the target contour line;
when a plurality of contour lines are selected as target contour lines at the same time, the target contour lines are determined according to the elevation values of all contour lines in the basic scale topographic map, and a plurality of contour lines with the same elevation value are selected as the target contour lines.
3. The method according to claim 1, wherein the equal altitude of the basic scale topographic map is determined according to an elevation value of a head curve in the basic scale topographic map.
4. The method according to claim 3, wherein the equal altitude of the basic scale topographic map is determined according to the elevation value of the head curve in the basic scale topographic map, and the method specifically comprises the following steps:
acquiring an elevation value of a first curve in the topographic map data of the basic scale;
removing repeated values of the elevation values;
arranging the rest elevation values in sequence according to the sizes to construct an elevation value sequence;
obtaining a plurality of elevation differences by subtracting two adjacent elevation values in the elevation value sequence;
and taking the elevation difference with the most repetition times in the plurality of elevation differences as the equal-altitude distance.
5. The method according to claim 4, wherein when the elevation difference is different from the equal elevation distance, it is determined that at least one of the elevation values of the two adjacent first curves corresponding to the elevation difference has a non-equal elevation distance gradient.
6. The method of claim 1, wherein determining the type of the target contour based on the elevation value of the target contour and the altitude distance comprises:
judging whether the elevation value of the target contour line can be divided by N times of the equal height distance to obtain a first judgment result; the increasing multiplying power value N of the counting curve is determined according to the number of equal altitude distances between two adjacent counting curves;
when the first judgment result is yes, judging that the target contour line is a measuring curve;
when the first judgment result is negative, judging whether the elevation value of the target contour line can be divided by the equal height distance to obtain a second judgment result;
when the second judgment result is yes, judging that the target contour line is a first curve;
when the second judgment result is negative, judging whether the elevation value of the target contour line can be subjected to 1/2 times of the equal height distance in an integral way or not to obtain a third judgment result;
when the third judgment result is yes, judging that the target contour line is an inter-curve;
when the third judgment result is negative, judging whether the elevation value of the target contour line can be divided by 1/4 times of the equal height distance to obtain a fourth judgment result;
when the fourth judgment result is yes, judging that the target contour line is a help curve;
and when the fourth judgment result is negative, judging that the target contour line does not meet any contour line type, and judging that the elevation value of the target contour line has an error.
7. An apparatus for detecting elevation values of contour lines of a basic scale topographic map, the apparatus comprising:
the elevation value acquisition module is used for acquiring the elevation value of a target contour line in the basic proportion topographic map;
the equal-height distance acquisition module is used for acquiring equal-height distances in the basic scale topographic map;
a target contour type determination module for determining the type of the target contour based on the elevation value of the target contour and the height distance; the target contour line types comprise a head curve, a meter curve, an interval curve and an auxiliary curve;
the type code acquisition module comprises a first type code acquisition module and a second type code acquisition module; the first type code obtaining module is used for obtaining a code corresponding to the target contour type determined based on the elevation value and the equal altitude distance and recording the code as a first type code; the second type code obtaining module is configured to obtain a type code of the target contour line marked in the basic scale topographic map, and mark the type code as a second type code;
the type code matching module is used for judging whether the first type codes and the second type codes are consistent or not; if so, judging that the elevation value of the target contour line meets the elevation value requirement corresponding to the contour line type in the basic scale topographic map; otherwise, it is not satisfied; and after the two types of codes are judged, re-determining the target contour line until all contour lines in the basic scale topographic map data are traversed.
8. The apparatus of claim 7, wherein the elevation acquisition module comprises a target contour determination sub-module and an elevation acquisition sub-module;
and the target contour determination submodule is used for selecting one or more contours as target contours.
And the elevation value acquisition sub-module is used for acquiring the determined elevation value of the target contour line.
9. The apparatus of claim 7, wherein the equal altitude obtaining module comprises:
the first curve elevation value acquisition submodule is used for acquiring the elevation value of a first curve in the basic scale topographic map data;
the elevation value sequence construction submodule is used for removing repeated values of the elevation values and arranging the residual elevation values in sequence according to the sizes to construct an elevation value sequence;
the elevation difference acquisition sub-module is used for calculating the difference of two adjacent elevation values in the elevation value sequence to obtain a plurality of elevation differences;
and the equal-altitude-distance acquisition submodule is used for taking the altitude difference with the most repetition times in the plurality of altitude differences as the equal altitude distance.
10. The apparatus of claim 7, wherein the target contour type determination module specifically comprises;
judging whether the elevation value of the target contour line can be divided by N times of the equal height distance to obtain a first judgment result; the method comprises the following steps that N is a progressive magnification value of a counting curve, and the progressive magnification value N of the counting curve is determined according to the number of equal altitude distances between two adjacent counting curves;
when the first judgment result is yes, judging that the target contour line is a measuring curve;
when the first judgment result is negative, judging whether the elevation value of the target contour line can be divided by the equal height distance to obtain a second judgment result;
when the second judgment result is yes, judging that the target contour line is a first curve;
when the second judgment result is negative, judging whether the elevation value of the target contour line can be subjected to 1/2 times of the equal height distance in an integral way or not to obtain a third judgment result;
when the third judgment result is yes, judging that the target contour line is an inter-curve;
when the third judgment result is negative, judging whether the elevation value of the target contour line can be divided by 1/4 times of the equal height distance to obtain a fourth judgment result;
when the fourth judgment result is yes, judging that the target contour line is a help curve;
and when the fourth judgment result is negative, judging that the target contour line does not meet any contour line type, and judging that the elevation value of the target contour line has an error.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010655320.6A CN111813885A (en) | 2020-07-09 | 2020-07-09 | Method and device for detecting contour line elevation value of topographic map with basic scale |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010655320.6A CN111813885A (en) | 2020-07-09 | 2020-07-09 | Method and device for detecting contour line elevation value of topographic map with basic scale |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111813885A true CN111813885A (en) | 2020-10-23 |
Family
ID=72842147
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010655320.6A Pending CN111813885A (en) | 2020-07-09 | 2020-07-09 | Method and device for detecting contour line elevation value of topographic map with basic scale |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111813885A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116448061A (en) * | 2023-06-15 | 2023-07-18 | 中孚信息股份有限公司 | Fixed equal-altitude detection method, system and device for topographic map |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104157014A (en) * | 2014-07-31 | 2014-11-19 | 武汉胜图科技有限公司 | Method and system for correcting contour lines |
CN109242930A (en) * | 2018-11-02 | 2019-01-18 | 中国石油大学(华东) | A kind of elevational point for digital adventure appearance and contour spatial logic relationship detection method |
CN110489511A (en) * | 2019-08-23 | 2019-11-22 | 西南大学 | Contour edge fit elevation error correcting method, system and electronic equipment and medium |
-
2020
- 2020-07-09 CN CN202010655320.6A patent/CN111813885A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104157014A (en) * | 2014-07-31 | 2014-11-19 | 武汉胜图科技有限公司 | Method and system for correcting contour lines |
CN109242930A (en) * | 2018-11-02 | 2019-01-18 | 中国石油大学(华东) | A kind of elevational point for digital adventure appearance and contour spatial logic relationship detection method |
CN110489511A (en) * | 2019-08-23 | 2019-11-22 | 西南大学 | Contour edge fit elevation error correcting method, system and electronic equipment and medium |
Non-Patent Citations (1)
Title |
---|
黄利民等: ""1_50万数字航空图等高线自动检查方法研究"", 《测绘科技信息交流论文集》, pages 471 - 474 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116448061A (en) * | 2023-06-15 | 2023-07-18 | 中孚信息股份有限公司 | Fixed equal-altitude detection method, system and device for topographic map |
CN116448061B (en) * | 2023-06-15 | 2023-09-26 | 中孚信息股份有限公司 | Fixed equal-altitude detection method, system and device for topographic map |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107133289B (en) | Method and device for determining business circle | |
CN108256699A (en) | Graduation whereabouts Forecasting Methodology and system based on college student stereo data | |
Erceg-Hurn et al. | Robust statistical estimation | |
CN110599675B (en) | Method and device for detecting number of paper money in money box, terminal equipment and storage medium | |
CN110991553A (en) | BIM model comparison method | |
CN114428809A (en) | Method and device for obtaining accuracy of map data and computer equipment | |
WO2020063347A1 (en) | Answer marking method for mental calculation questions, device, electronic apparatus, and storage medium | |
CN111813885A (en) | Method and device for detecting contour line elevation value of topographic map with basic scale | |
US20120154398A1 (en) | Method of determining implicit hidden features of phenomena which can be represented by a point distribution in a space | |
CN115496893A (en) | Pointer type water meter reading identification method | |
US9773090B2 (en) | Method computer program and system to analyze mass spectra | |
CN111008916A (en) | Knowledge point grasp inference method, knowledge point grasp inference system, computer device, and storage medium | |
CN115935129B (en) | Method and device for determining soil scale heavy metal concentration value | |
CN112597574A (en) | Construction method and device of building information model | |
CN116562836A (en) | Method, device, electronic equipment and storage medium for multidimensional forced choice question character test | |
CN107180293A (en) | A kind of horizontal assay method of geologic assessment towards exploration targets | |
CN110390624B (en) | Graph evaluation method, device, equipment and storage medium | |
CN114037993B (en) | Substation pointer instrument reading method and device, storage medium and electronic equipment | |
CN114565911A (en) | Instrument reading method and device, computer equipment and storage medium | |
CN114443506A (en) | Method and device for testing artificial intelligence model | |
JP2014206382A (en) | Target type identification device | |
KR102053694B1 (en) | Classification accuracy measuring apparatus in machine learning training for data mining and operating method thereof | |
CN113837237A (en) | Multi-sensor fusion target identification method based on evidence confidence entropy and similarity | |
CN106847069B (en) | Method for identifying map plane mathematical basis | |
KR20100117986A (en) | Method for measuring the location similarity of spatial object on digital maps and map matching using the same |
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 |