CN114428809A - Method and device for obtaining accuracy of map data and computer equipment - Google Patents

Method and device for obtaining accuracy of map data and computer equipment Download PDF

Info

Publication number
CN114428809A
CN114428809A CN202210097791.9A CN202210097791A CN114428809A CN 114428809 A CN114428809 A CN 114428809A CN 202210097791 A CN202210097791 A CN 202210097791A CN 114428809 A CN114428809 A CN 114428809A
Authority
CN
China
Prior art keywords
map data
map
primitive
evaluated
data
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
Application number
CN202210097791.9A
Other languages
Chinese (zh)
Inventor
左涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aerial Photogrammetry and Remote Sensing Co Ltd
Original Assignee
Aerial Photogrammetry and Remote Sensing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Aerial Photogrammetry and Remote Sensing Co Ltd filed Critical Aerial Photogrammetry and Remote Sensing Co Ltd
Priority to CN202210097791.9A priority Critical patent/CN114428809A/en
Publication of CN114428809A publication Critical patent/CN114428809A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Probability & Statistics with Applications (AREA)
  • Remote Sensing (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application provides a map data accuracy obtaining method and device and computer equipment. The method comprises the following steps: detecting whether error data exist in the map data or not based on the element type corresponding to the map data in the map to be evaluated; if the map data contains error data, marking the error type of the error data and the position information in the map to be evaluated; counting scores corresponding to the map to be evaluated according to a preset total value and the score deduction values corresponding to different error types; and outputting a map data accuracy evaluation result, wherein the map data accuracy evaluation result comprises a score corresponding to the map to be evaluated, an error type and position information of error data in the map to be evaluated. The method and the device for evaluating the map data detect the error data in the map data based on the element type corresponding to the map data in the map to be evaluated, count and score the error type and the position information of the error data, output the accuracy evaluation result of the map data, and have the advantages of accurate and objective evaluation result and high efficiency.

Description

Method and device for obtaining accuracy of map data and computer equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for obtaining accuracy of map data, and a computer device.
Background
Map data represented in the Shapefile file format, which is used in large quantities in engineering, surveying, and mapping. The map data is typically represented as contour lines, topographic maps, vector house data, and the like. Map data can have error information or error data due to various reasons, and the error data needs to be sorted and counted in time, so that the influence of the error data on subsequent surveying or building processes and the like is avoided.
The traditional error sorting statistical method is based on manual work and experience to check and evaluate the accuracy of map data, and is time-consuming and labor-consuming. The number of the corresponding images of one measuring area is hundreds of less, and the number of the corresponding images is tens of thousands of more, so that more manpower and more time are needed. Therefore, the conventional map data accuracy acquisition method is difficult to put into practical use.
Disclosure of Invention
In order to solve the technical problem, the invention provides a method, a device and computer equipment for obtaining map data accuracy, wherein the specific scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for obtaining accuracy of map data, where the method includes:
detecting whether error data exist in map data or not based on element types corresponding to the map data in a map to be evaluated;
if the map data contains the error data, marking the error type of the error data and the position information in the map to be evaluated;
counting the score corresponding to the map to be evaluated according to a preset total value and the score deduction values corresponding to different error types;
and outputting a map data accuracy evaluation result, wherein the map data accuracy evaluation result comprises a score corresponding to the map to be evaluated, the error type and the position information of the error data in the map to be evaluated.
According to a specific embodiment disclosed in the present application, the element type corresponding to the map data is a basic primitive, the basic primitive includes at least one of a point, a line and a first closed primitive, an area of the first closed primitive is smaller than a first threshold and larger than a second threshold, and the step of detecting whether there is error data in the map data based on the element type corresponding to the map data in the map to be evaluated includes:
acquiring coordinates of key points of each basic graphic element in the map data;
selecting any two basic primitives within a preset distance range to form a target primitive pair based on the coordinates of the key points of the basic primitives;
calculating a reference position topological relation between two basic primitives in each target primitive pair according to the coordinates of the key points of the basic primitives;
judging whether the reference position topological relation of the target primitive pair is the same as the standard position topological relation of a standard primitive pair, wherein two standard primitives in the standard primitive pair are the same as two basic primitives in the corresponding target primitive pair in type;
and if the reference position topological relation is different from the standard position topological relation of the standard primitive pair, judging that error data exists in the map data to be evaluated.
According to a specific embodiment disclosed in the present application, the element type corresponding to the map data further includes a second closed graph, and after the step of determining whether the reference position topological relation of the target primitive pair is the same as the standard position topological relation of the standard primitive pair, the method further includes:
if the reference position topological relation of the target primitive pair is the same as the standard position topological relation of the standard primitive pair, and both the two basic primitives of the target primitive pair are the first closed primitives, judging whether at least one second closed graph exists in an area between the two first closed primitives, wherein the area of the second closed primitive is smaller than the second threshold value;
and if at least one second closed graphic element exists in the area between the two first closed graphic elements, judging that error data exists in the map data to be evaluated.
According to a specific embodiment disclosed in the present application, the step of detecting whether error data exists in the map data includes:
identifying the third closed primitive in the map data;
acquiring coordinates of all corner points in the third closed primitive;
calculating the angle of each internal angle in the third closed primitive based on the coordinates of each angular point;
and if the angle of any internal angle is smaller than a third threshold value, judging that error data exists in the map data to be evaluated.
According to a specific embodiment disclosed in the present application, the step of detecting whether there is error data in the map data based on the element type corresponding to the map data in the map to be evaluated is a field, and includes:
acquiring target fields in the map to be evaluated and attribute parameters of map data associated with each target field;
judging whether the target field associated with each map data contains a preset character string corresponding to all the attribute parameters of the map data;
and if the target field associated with any map data does not contain a preset character string corresponding to any attribute parameter of the map data, judging that the map data to be evaluated has error data.
According to a specific embodiment disclosed in the present application, after the step of determining whether the target field associated with each map data includes a preset character string corresponding to all the attribute parameters of the map data, the method further includes:
if the target field associated with each map data contains preset character strings corresponding to all the attribute parameters of the map data, judging whether each preset character string is wrongly combined or not according to all the attribute parameters of the map data and character string combination rules corresponding to each attribute parameter;
and if any preset character string is wrongly combined, judging that wrong data exist in the map data to be evaluated.
In a second aspect, an embodiment of the present application provides a map data accuracy obtaining apparatus, including:
the detection module is used for detecting whether error data exist in the map data or not based on the element type corresponding to the map data in the map to be evaluated;
the marking module is used for marking the error type of the error data and the position information in the map to be evaluated if the error data exists in the map data;
the statistical module is used for counting the score corresponding to the map to be evaluated according to a preset total value and the deduction score values corresponding to different error types;
and the evaluation module is used for outputting a map data accuracy evaluation result, and the map data accuracy evaluation result comprises a score corresponding to the map to be evaluated, the error type and the position information of the error data in the map to be evaluated.
According to a specific embodiment disclosed in the present application, the element type corresponding to the map data is a basic primitive, the basic primitive includes at least one of a point, a line, and a first closed primitive, an area of the first closed primitive is smaller than a first threshold and larger than a second threshold, and the detection module is specifically configured to:
acquiring coordinates of key points of each basic graphic element in the map data;
selecting any two basic primitives within a preset distance range to form a target primitive pair based on the coordinates of the key points of each basic primitive;
calculating a reference position topological relation between two basic primitives in each target primitive pair according to the coordinates of the key points of the basic primitives;
judging whether the reference position topological relation of the target primitive pair is the same as the standard position topological relation of a standard primitive pair, wherein two standard primitives in the standard primitive pair are the same as two basic primitives in the corresponding target primitive pair in type;
and if the reference position topological relation is different from the standard position topological relation of the standard primitive pair, judging that error data exists in the map data to be evaluated.
In a third aspect, an embodiment of the present application provides a computer device, where the computer device includes a processor and a memory, where the memory stores a computer program, and the computer program, when executed on the processor, implements the map data accuracy obtaining method according to any one of the embodiments of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program that, when executed on a processor, implements the map data accuracy acquisition method described in any one of the embodiments of the first aspect.
Compared with the prior art, the method has the following beneficial effects:
the map data accuracy obtaining method provided by the application detects whether error data exist in map data or not based on element types corresponding to the map data in a map to be evaluated; if the map data contains error data, marking the error type of the error data and the position information in the map to be evaluated; counting scores corresponding to the map to be evaluated according to a preset total value and the score deduction values corresponding to different error types; and outputting a map data accuracy evaluation result, wherein the map data accuracy evaluation result comprises a score corresponding to the map to be evaluated, an error type and position information of error data in the map to be evaluated. The method and the device for evaluating the map data detect the error data in the map data based on the element type corresponding to the map data in the map to be evaluated, count and score the error type and the position information of the error data, output the accuracy evaluation result of the map data, and have the advantages of accurate and objective evaluation result and high efficiency.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required to be used in the embodiments will be briefly described below, and 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 of the present invention. Like components are numbered similarly in the various figures.
Fig. 1 is a schematic flowchart of a method for acquiring accuracy of map data according to an embodiment of the present disclosure;
fig. 2 is a block diagram of a map data accuracy obtaining apparatus according to an embodiment of the present disclosure.
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.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flow chart diagram of a method for acquiring accuracy of map data according to an embodiment of the present application, and as shown in fig. 1, the method mainly includes:
step S101, detecting whether error data exists in map data or not based on element types corresponding to the map data in the map to be evaluated.
The map to be evaluated can be various forms of map layers obtained by measuring, collecting and drawing the shape, size, spatial position, attribute parameters and the like of natural geographic elements or surface artificial facilities. One common form of map to be evaluated is Shapefile. Shapefile is a spatial data open format that has become an open standard in the field of geographic information software. Shapefile is used to describe geometry objects: points, broken lines, polygons and the like, and can store the geometric positions of spatial objects such as wells, rivers, lakes and the like. In addition to geometric location, the Shapefile file may also store attribute parameters for these spatial objects, such as the name of a river, the temperature of a city, and so forth.
The method and the device for evaluating the map data detect whether error data exist in the map data or not based on the element types corresponding to the map data in the map to be evaluated. The map data has a plurality of element types, such as basic primitives like points, lines, faces, etc., and fields recording specific attribute parameters, etc. The map data of different element types correspond to different error data detection methods. It should be noted that different detection methods can be adopted to detect error data in the same map to be evaluated according to a certain sequence or simultaneously. The following will specifically explain different detection methods, respectively.
The method 1, the element type corresponding to the map data is a basic primitive, the basic primitive comprises at least one of a point, a line and a first closed primitive, the area of the first closed primitive is smaller than a first threshold and larger than a second threshold, and the step of detecting whether error data exists in the map data based on the element type corresponding to the map data in the map to be evaluated comprises the following steps:
acquiring coordinates of key points of each basic graphic element in the map data;
selecting any two basic primitives within a preset distance range to form a target primitive pair based on the coordinates of the key points of the basic primitives;
calculating a reference position topological relation between two basic primitives in each target primitive pair according to the coordinates of the key points of the basic primitives;
judging whether the reference position topological relation of the target primitive pair is the same as the standard position topological relation of a standard primitive pair, wherein two standard primitives in the standard primitive pair are the same as two basic primitives in the corresponding target primitive pair in type;
and if the reference position topological relation is different from the standard position topological relation of the standard primitive pair, judging that error data exists in the map data to be evaluated.
The key points of all basic graphic elements in the map data can be customized by a user according to actual use requirements. For example, four corner vertices of a square may be selected as key points of the square, three corner vertices of a triangle may be selected as key points of the triangle, and then the reference position topological relation between the two basic primitives is calculated by a geometric algorithm based on the coordinates of the key points of the square and the coordinates of the key points of the triangle. The coordinates of the corresponding key points may be their own coordinates.
Considering that the number of basic primitives existing in the map to be evaluated is large, if all the basic primitives are directly matched pairwise, and then the reference position topological relation between the two basic primitives is calculated, the calculation amount and the consumed time of the whole detection process become large. Any two basic primitives within a preset distance range can be selected to form a target primitive pair based on the coordinates of the key points of the basic primitives, and then the reference position topological relation between the two basic primitives in the target primitive pair is calculated according to the coordinates of the key points of the basic primitives. Namely, only the basic primitive with a closer distance is selected to judge the position topological relation, and the basic primitive with a farther distance is abandoned to judge the position topological relation. Therefore, the calculation amount of the detection flow can be greatly reduced, the consumed time is shortened, and the experience of the user is improved.
In specific implementation, the standard position topological relation of the standard primitive pair including different types of standard primitives can be configured in advance, and the call can be directly obtained when the reference position topological relation of the target primitive pair is judged to be the same as the standard position topological relation of the standard primitive pair, or the call can be temporarily obtained when the judgment is carried out each time. The "standard positional topological relationship" includes, but is not limited to, a spatial relationship between a point, a line, and a first closed primitive, e.g., a point must be in a closed primitive, a line passes through a closed primitive but cannot traverse the closed primitive, etc. Closed primitives include, but are not limited to, circles, ellipses, triangles, rectangles, closed polygons, and the like. The first closed primitive is a closed primitive with an area smaller than a first threshold and larger than a second threshold, and the first threshold and the second threshold can be customized by a user according to actual use requirements.
And if the reference position topological relation is different from the standard position topological relation of the standard primitive pair, judging that error data exists in the map data to be evaluated.
On the basis of the foregoing method 1, after the step of determining whether the reference position topological relation of the target primitive pair is the same as the standard position topological relation of the standard primitive pair, the method further includes:
if the reference position topological relation of the target primitive pair is the same as the standard position topological relation of the standard primitive pair, and both the two basic primitives of the target primitive pair are the first closed primitives, judging whether at least one second closed graph exists in an area between the two first closed primitives, wherein the area of the second closed primitive is smaller than the second threshold value;
and if at least one second closed graphic element exists in the area between the two first closed graphic elements, judging that error data exists in the map data to be evaluated.
In specific implementation, for the two first closed primitives, in order to further improve the detection accuracy, after the step of detecting that the reference position topological relation is the same as the standard position topological relation of the standard primitive pair in the method 1, further detection may be performed. For example, for adjacent surfaces in a building construction drawing, namely two adjacent first closed elements, the adjacent first closed elements should have a strict fit relationship, and there should be no small gap. If the area of the closed figure corresponding to the gap is smaller than a preset second threshold value, the gap is the second closed primitive, and the second threshold value can be adjusted according to actual conditions. If the second closed graphic primitive with small area does not exist in the area between the two first closed graphic primitives, the distance between the two first closed graphic primitives is reasonable, the original design requirements are met, and the data is not wrong data.
If at least one second closed primitive exists in the area between the two first closed primitives, it can be determined that the two first closed primitives are not in a strict fit relationship, that is, erroneous data exists in the map data to be evaluated.
The method 3, the step of detecting whether error data exists in the map data based on the element type corresponding to the map data in the map to be evaluated is that the element type corresponding to the map data is a third closed primitive, the area of the third closed primitive is larger than a first threshold value, and the step of detecting whether error data exists in the map data comprises the following steps:
identifying the third closed primitive in the map data;
acquiring coordinates of all corner points in the third closed primitive;
calculating the angle of each internal angle in the third closed primitive based on the coordinates of each angular point;
and if the angle of any internal angle is smaller than a third threshold value, judging that error data exists in the map data to be evaluated.
In a specific implementation, the third closed primitive is a large-area closed graph represented by a parcel. The land parcel is a complete closed land with uniform land utilization value, and is a basic unit for management and mapping, such as a plot of land or a forest land. If a third closed primitive is detected that has a significantly small acute angle, it can be assumed that the third closed primitive produces a drawing error during surveying and mapping.
The coordinates of the corner points of each third closed primitive may be obtained first, then the angle is calculated according to the coordinate values of the corner points, whether the angle is smaller than a third threshold value is judged, the third threshold value generally cannot be smaller than 30 degrees, and certainly, the angle can be customized according to the actual use requirements of the user. And if the angle of any internal angle is smaller than a third threshold value, judging that error data exists in the map data to be evaluated.
The method 4, the element type corresponding to the map data is a field, and the step of detecting whether the map data has error data or not based on the element type corresponding to the map data in the map to be evaluated comprises the following steps:
acquiring target fields in the map to be evaluated and attribute parameters of map data associated with each target field;
judging whether the target field associated with each map data contains a preset character string corresponding to all the attribute parameters of the map data;
and if the target field associated with any map data does not contain a preset character string corresponding to any attribute parameter of the map data, judging that error data exists in the map data to be evaluated.
Different map data may be associated with different feature information when mapping. For example, a certain point may add feature information "city a", a certain B parcel may add information: woodland, 10 square meters, etc. For convenience of display and statistics, the characteristic information can be combined through a uniform character string to obtain an object corresponding to the map dataFields, e.g. "G-10 m2"where" G "is a preset character string corresponding to the attribute parameter" forest land ", and" 10m2"is a preset character string corresponding to the attribute parameter" 10 square meters ".
If the target field associated with any map data does not contain the preset character string corresponding to any attribute parameter of the map data, it indicates that the target field misses the preset character string corresponding to some attribute parameter, for example, if the target field associated with the block B is "10 m2", it means that the preset character string" G "is missed in the target field. Then, it can be determined that there is erroneous data in the map data to be evaluated.
After the step of determining whether the target field associated with each piece of map data contains the preset character string corresponding to all the attribute parameters of the map data, the method further includes:
if the target fields associated with the map data contain preset character strings corresponding to all the attribute parameters of the map data, judging whether the preset character strings are wrongly combined or not according to all the attribute parameters of the map data and character string combination rules corresponding to all the attribute parameters;
and if any preset character string is wrongly combined, judging that wrong data exist in the map data to be evaluated.
On the basis of the method 4, whether the arrangement sequence between more than two preset character strings meets the corresponding character string combination rule can be further judged. For example, the map data C has three different attribute parameters a, b, and C, and the corresponding preset character strings are x, y, and z, respectively. According to the character string combination rule, the arrangement or the sequence of the three preset character string sub-target fields is zyx, and the actual target field is displayed as xyz, which indicates that the preset character string combination is wrong, and determines that the map data to be evaluated has wrong data.
And step S102, if the error data exists in the map data, marking the error type of the error data and the position information in the map to be evaluated.
And if the map data is judged to have the error data, marking the error type of each error data and the position information in the map to be evaluated so that a user can search the position of the error data in the map to be evaluated according to the corresponding position information and modify the position.
And step S103, counting the score corresponding to the map to be evaluated according to a preset total value and the score deduction values corresponding to different error types.
In specific implementation, different deduction numerical values can be distributed to different error types of error data, the score corresponding to the map to be evaluated is counted according to a preset total numerical value and the deduction numerical values corresponding to the different error types, and the map to be evaluated is scored and compared. For example, the error categories may be classified into A, B, C, D four categories:
the class A errors include: a field combination error;
the class B errors include: a position topological relation is wrong;
the class C errors include: an angle error;
the class D errors include: a preset string combination error, etc.
The corresponding score value of each error category can be set as a category a: 42 points, B type: 12 points, class C: 4, class D: and 1 point. The preset total value may be set to 100 points. In specific implementation, the specific score value and the preset total value can be customized according to actual use requirements, and are not specifically limited herein.
And step S104, outputting a map data accuracy evaluation result, wherein the map data accuracy evaluation result comprises a score corresponding to the map to be evaluated, the error type and position information of the error data in the map to be evaluated.
After the score corresponding to the map to be evaluated is calculated, the score corresponding to the map to be evaluated, the error type and the position information of the error data in the map to be evaluated can be combined into a map data accuracy evaluation result, so that a user can analyze and subsequently modify the map to be evaluated according to the map data accuracy evaluation result.
In specific implementation, the quality grade of the map to be evaluated can be evaluated according to the score corresponding to the map to be evaluated. For example:
and (3) excellent: s is more than or equal to 90 minutes;
good: s is more than or equal to 75 minutes and less than 90 minutes;
medium: s is more than or equal to 60 minutes and less than 75 minutes;
unqualified: s is less than 60 minutes.
And then, jointly combining the quality grade evaluation result, the score corresponding to the map to be evaluated, the error type and the position information of the error data in the map to be evaluated into a map data accuracy evaluation result and outputting the map data accuracy evaluation result.
According to the map data accuracy obtaining method, different detection methods are selected to detect the error data in the map data based on the element types corresponding to the map data in the map to be evaluated, the error types and the position information of the error data are counted and scored, the map data accuracy obtaining result is output, and the evaluation result is accurate, objective and high in efficiency.
Corresponding to the above method embodiment, referring to fig. 2, the present invention further provides a map data accuracy obtaining apparatus 200, where the map data accuracy obtaining apparatus 200 includes:
the detection module 201 is configured to detect whether error data exists in map data based on an element type corresponding to the map data in a map to be evaluated;
a marking module 202, configured to mark an error type of the error data and location information in the map to be evaluated if the error data exists in the map data;
the counting module 203 is used for counting the score corresponding to the map to be evaluated according to a preset total value and the score deduction values corresponding to different error types;
the evaluation module 204 is configured to output a map data accuracy evaluation result, where the map data accuracy evaluation result includes a score corresponding to the map to be evaluated, the error type, and location information of the error data in the map to be evaluated.
In a specific implementation, the element type corresponding to the map data is a basic primitive, the basic primitive includes at least one of a point, a line, and a first closed primitive, an area of the first closed primitive is smaller than a first threshold and larger than a second threshold, and the detection module 201 is specifically configured to:
acquiring coordinates of key points of each basic graphic element in the map data;
selecting any two basic primitives within a preset distance range to form a target primitive pair based on the coordinates of the key points of the basic primitives;
calculating a reference position topological relation between two basic primitives in each target primitive pair according to the coordinates of the key points of the basic primitives;
judging whether the reference position topological relation of the target primitive pair is the same as the standard position topological relation of a standard primitive pair, wherein two standard primitives in the standard primitive pair are the same as two basic primitives in the corresponding target primitive pair in type;
and if the reference position topological relation is different from the standard position topological relation of the standard primitive pair, judging that error data exist in the map data to be evaluated.
According to the map data accuracy obtaining device, the computer equipment and the computer readable storage medium, different detection methods are selected to detect error data in map data based on element types corresponding to the map data in a map to be evaluated, statistics and scoring are carried out on the error types and position information of the error data, an evaluation result of map data accuracy is output, and the evaluation result is accurate, objective and high in efficiency.
For specific implementation processes of the map data accuracy obtaining device, the computer device, and the computer-readable storage medium provided by the present application, reference may be made to the specific implementation processes of the map data accuracy obtaining method provided in the foregoing embodiments, and details are not repeated here.
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 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, each functional module or unit in each embodiment 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 or a part of the technical solution that contributes to the prior art in essence can 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 smart phone, a personal computer, a server, or a network device, etc.) 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: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (10)

1. A map data accuracy acquisition method, characterized in that the method comprises:
detecting whether error data exist in map data or not based on element types corresponding to the map data in a map to be evaluated;
if the map data contains the error data, marking the error type of the error data and the position information in the map to be evaluated;
counting the score corresponding to the map to be evaluated according to a preset total value and the score deduction values corresponding to different error types;
and outputting a map data accuracy evaluation result, wherein the map data accuracy evaluation result comprises a score corresponding to the map to be evaluated, the error type and the position information of the error data in the map to be evaluated.
2. The method according to claim 1, wherein the element type corresponding to the map data is a base primitive, the base primitive comprises at least one of a point, a line and a first closed primitive, an area of the first closed primitive is smaller than a first threshold and larger than a second threshold, and the step of detecting whether the map data has error data based on the element type corresponding to the map data in the map to be evaluated comprises:
acquiring coordinates of key points of each basic graphic element in the map data;
selecting any two basic primitives within a preset distance range to form a target primitive pair based on the coordinates of the key points of the basic primitives;
calculating a reference position topological relation between two basic primitives in each target primitive pair according to the coordinates of the key points of the basic primitives;
judging whether the reference position topological relation of the target primitive pair is the same as the standard position topological relation of a standard primitive pair, wherein two standard primitives in the standard primitive pair are the same as two basic primitives in the corresponding target primitive pair in type;
and if the reference position topological relation is different from the standard position topological relation of the standard primitive pair, judging that error data exists in the map data to be evaluated.
3. The method according to claim 2, wherein the element type corresponding to the map data further includes a second closed figure, and after the step of determining whether the reference position topological relation of the target primitive pair is the same as the standard position topological relation of the standard primitive pair, the method further comprises:
if the reference position topological relation of the target primitive pair is the same as the standard position topological relation of the standard primitive pair, and both the two basic primitives of the target primitive pair are the first closed primitives, judging whether at least one second closed primitive exists in an area between the two first closed primitives, wherein the area of the second closed primitive is smaller than the second threshold value;
and if at least one second closed graphic element exists in the area between the two first closed graphic elements, judging that error data exists in the map data to be evaluated.
4. The method according to claim 2, wherein the element type corresponding to the map data is a third closed primitive, the area of the third closed primitive is larger than a first threshold, and the step of detecting whether the map data has error data based on the element type corresponding to the map data in the map to be evaluated comprises:
identifying the third closed primitive in the map data;
obtaining coordinates of all corner points in the third closed primitive;
calculating the angle of each internal angle in the third closed primitive based on the coordinates of each angular point;
and if the angle of any internal angle is smaller than a third threshold value, judging that error data exists in the map data to be evaluated.
5. The method according to claim 1, wherein the element type corresponding to the map data is a field, and the step of detecting whether error data exists in the map data based on the element type corresponding to the map data in the map to be evaluated comprises:
acquiring target fields in the map to be evaluated and attribute parameters of map data associated with each target field;
judging whether the target field associated with each map data contains a preset character string corresponding to all the attribute parameters of the map data;
and if the target field associated with any map data does not contain a preset character string corresponding to any attribute parameter of the map data, judging that the map data to be evaluated has error data.
6. The method according to claim 5, wherein after the step of determining whether the target field associated with each map data contains a preset character string corresponding to all the attribute parameters of the map data, the method further comprises:
if the target fields associated with the map data contain preset character strings corresponding to all the attribute parameters of the map data, judging whether the preset character strings are wrongly combined or not according to all the attribute parameters of the map data and character string combination rules corresponding to all the attribute parameters;
and if any preset character string is wrongly combined, judging that wrong data exist in the map data to be evaluated.
7. A map data accuracy acquisition apparatus characterized by comprising:
the detection module is used for detecting whether error data exist in the map data or not based on the element type corresponding to the map data in the map to be evaluated;
the marking module is used for marking the error type of the error data and the position information in the map to be evaluated if the error data exists in the map data;
the statistical module is used for counting the score corresponding to the map to be evaluated according to a preset total value and the deduction score values corresponding to different error types;
and the evaluation module is used for outputting a map data accuracy evaluation result, and the map data accuracy evaluation result comprises a score corresponding to the map to be evaluated, the error type and the position information of the error data in the map to be evaluated.
8. The map data accuracy obtaining apparatus according to claim 7, wherein the element type corresponding to the map data is a basic primitive, the basic primitive includes at least one of a point, a line and a first closed primitive, an area of the first closed primitive is smaller than a first threshold and larger than a second threshold, and the detecting module is specifically configured to:
acquiring coordinates of key points of each basic graphic element in the map data;
selecting any two basic primitives within a preset distance range to form a target primitive pair based on the coordinates of the key points of the basic primitives;
calculating a reference position topological relation between two basic primitives in each target primitive pair according to the coordinates of the key points of the basic primitives;
judging whether the reference position topological relation of the target primitive pair is the same as the standard position topological relation of a standard primitive pair, wherein two standard primitives in the standard primitive pair are the same as two basic primitives in the corresponding target primitive pair in type;
and if the reference position topological relation is different from the standard position topological relation of the standard primitive pair, judging that error data exists in the map data to be evaluated.
9. A computer device, characterized in that the computer device comprises a processor and a memory, the memory storing a computer program which, when executed on the processor, implements the map data accuracy acquisition method of any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that it stores a computer program which, when executed on a processor, implements the map data accuracy acquisition method of any one of claims 1 to 6.
CN202210097791.9A 2022-01-27 2022-01-27 Method and device for obtaining accuracy of map data and computer equipment Pending CN114428809A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210097791.9A CN114428809A (en) 2022-01-27 2022-01-27 Method and device for obtaining accuracy of map data and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210097791.9A CN114428809A (en) 2022-01-27 2022-01-27 Method and device for obtaining accuracy of map data and computer equipment

Publications (1)

Publication Number Publication Date
CN114428809A true CN114428809A (en) 2022-05-03

Family

ID=81314155

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210097791.9A Pending CN114428809A (en) 2022-01-27 2022-01-27 Method and device for obtaining accuracy of map data and computer equipment

Country Status (1)

Country Link
CN (1) CN114428809A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115344658A (en) * 2022-09-02 2022-11-15 自然资源部地图技术审查中心 Method and device for automatically identifying line type problem map
CN115410220A (en) * 2022-09-02 2022-11-29 自然资源部地图技术审查中心 Method and device for automatically identifying point type problem map
CN115457590A (en) * 2022-09-02 2022-12-09 自然资源部地图技术审查中心 Method and device for automatically identifying face type problem map

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115344658A (en) * 2022-09-02 2022-11-15 自然资源部地图技术审查中心 Method and device for automatically identifying line type problem map
CN115410220A (en) * 2022-09-02 2022-11-29 自然资源部地图技术审查中心 Method and device for automatically identifying point type problem map
CN115457590A (en) * 2022-09-02 2022-12-09 自然资源部地图技术审查中心 Method and device for automatically identifying face type problem map
CN115344658B (en) * 2022-09-02 2023-04-28 自然资源部地图技术审查中心 Method and device for automatically identifying line type problem map

Similar Documents

Publication Publication Date Title
CN114428809A (en) Method and device for obtaining accuracy of map data and computer equipment
Goodchild et al. A simple positional accuracy measure for linear features
CN110991553B (en) BIM model comparison method
JPS60204086A (en) Object discriminating device
CN107945178B (en) A kind of residual hole automatic identification of explosion and feature extracting method
CN110288624A (en) Detection method, device and the relevant device of straightway in a kind of image
CN112100167A (en) Quality inspection method and device for ecological protection red line data
CN110716998B (en) Fine scale population data spatialization method
CN109656904B (en) Case risk detection method and system
CN111339231A (en) Method and device for processing crowdsourcing update result
CN108734393A (en) Matching process, user equipment, storage medium and the device of information of real estate
CN112613395A (en) Primitive position relation matching method and device and computer equipment
Liu et al. M: N Object matching on multiscale datasets based on MBR combinatorial optimization algorithm and spatial district
CN115979299A (en) Map data conversion-based precision inspection method and device
CN113254561B (en) Position data processing system
Du et al. Similarity measurements on multi‐scale qualitative locations
CN107729308A (en) Large scale DLG quality examinations statistical method and device
Gong et al. Error detection through consistency checking
Smith et al. Map Comparison Methods for Three‐Dimensional Space and Time Voxel Data
CN116448061B (en) Fixed equal-altitude detection method, system and device for topographic map
KR20100117986A (en) Method for measuring the location similarity of spatial object on digital maps and map matching using the same
CN111813885A (en) Method and device for detecting contour line elevation value of topographic map with basic scale
Wang et al. Evaluating the quality of public geocoding services for crime analysis in China
Olsson et al. Identifying areas of a map that are difficult to read
CN110619134A (en) Integrated detection and restoration method for solving problem of flying spot and spot density of road network data

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