CN116303859A - QGIS-based high-precision map automatic quality inspection system and method - Google Patents
QGIS-based high-precision map automatic quality inspection system and method Download PDFInfo
- Publication number
- CN116303859A CN116303859A CN202310274660.8A CN202310274660A CN116303859A CN 116303859 A CN116303859 A CN 116303859A CN 202310274660 A CN202310274660 A CN 202310274660A CN 116303859 A CN116303859 A CN 116303859A
- Authority
- CN
- China
- Prior art keywords
- data
- module
- qgis
- road
- quality inspection
- 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 OR CALCULATING; 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/54—Browsing; Visualisation therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/56—Information retrieval; Database structures therefor; File system structures therefor of still image data having vectorial format
-
- G06T11/26—
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Remote Sensing (AREA)
- Processing Or Creating Images (AREA)
Abstract
Description
技术领域technical field
本发明涉及高精地图处理技术领域,具体地,涉及一种基于QGIS的高精度地图自动质检系统及方法。The present invention relates to the technical field of high-precision map processing, in particular to a QGIS-based automatic quality inspection system and method for high-precision maps.
背景技术Background technique
高精地图是相对于普通地图来说的,它提供了更高精度,内容更为丰富的地图信息,主要服务于自动驾驶。对于高精地图,比普通SD地图在精细度或丰富度上面有更高要求的地图,常常都被称为高精地图。比如辅助驾驶中用到的ADAS地图,相对精度1m,绝对精度5m,有时也被称为高精地图。Compared with ordinary maps, high-precision maps provide higher-precision and richer map information, mainly for autonomous driving. For high-precision maps, maps that have higher requirements for fineness or richness than ordinary SD maps are often called high-precision maps. For example, the ADAS map used in assisted driving has a relative accuracy of 1m and an absolute accuracy of 5m. It is sometimes called a high-precision map.
通过测绘采集以及自动化生成算法生产出的高精地图数据仍存在不可避免的精度问题,比如有传感器误差,车辆位姿估计不准,路况以及算法误差等都会有相关因素。需要进行人工干预修复,传统的人工检查修复存在耗时长,易漏检等问题。The high-precision map data produced through surveying and mapping collection and automatic generation algorithms still has unavoidable accuracy problems, such as sensor errors, inaccurate vehicle pose estimation, road conditions, and algorithm errors. Manual intervention and repair is required, and traditional manual inspection and repair has problems such as time-consuming and easy to miss.
因此,市场上急需一种能够提高高精地图质检和生产效率的基于QGIS的高精度地图自动质检系统及方法。Therefore, there is an urgent need in the market for a high-precision map automatic quality inspection system and method based on QGIS that can improve high-precision map quality inspection and production efficiency.
发明内容Contents of the invention
针对现有技术中的缺陷,本发明的目的是提供一种基于QGIS的高精度地图自动质检系统及方法。Aiming at the defects in the prior art, the object of the present invention is to provide a QGIS-based automatic quality inspection system and method for high-precision maps.
第一方面,本发明提供了一种基于QGIS的高精度地图自动质检系统,包括:数据获取模块、数据渲染模块和数据处理模块;In a first aspect, the present invention provides a QGIS-based high-precision map automatic quality inspection system, including: a data acquisition module, a data rendering module and a data processing module;
所述数据获取模块将原始数据传递至数据渲染模块,所述原始数据包括道路相关的矢量数据,数据渲染模块中的QGIS进行数据渲染显示及QT进行可视化操作,然后经过渲染的图像数据发送至数据处理模块中进一步处理。The data acquisition module transmits the original data to the data rendering module, the original data includes road-related vector data, the QGIS in the data rendering module performs data rendering and display and the QT performs visualization operations, and then the rendered image data is sent to the data processing module for further processing.
所述数据处理模块包括数据显示模块、数据编辑模块、数据质检模块、数据修复模块、数据转换模块和数据分割模块;The data processing module includes a data display module, a data editing module, a data quality inspection module, a data repair module, a data conversion module and a data segmentation module;
所述数据显示模块基于QGIS对高精地图数据进行渲染显示;所述数据编辑模块对矢量数据进行几何修改与属性编辑;所述数据质检模块针对矢量数据进行几何拓扑检查以及属性信息检查;所述数据修复模块用于自动化批量修复数据质检模块所检测出的错误;所述数据转换模块用于数据格式间的转换;所述数据分割模块用于大范围数据切割,进而实现任务分配。The data display module renders and displays the high-precision map data based on QGIS; the data editing module performs geometric modification and attribute editing on the vector data; the data quality inspection module performs geometric topology inspection and attribute information inspection on the vector data; The data repair module is used for automatic batch repair of errors detected by the data quality inspection module; the data conversion module is used for conversion between data formats; the data segmentation module is used for large-scale data cutting, and then realizes task allocation.
优选地,所述原始数据还包括高精地图数据、protobuf数据和道路图片数据;Preferably, the raw data also includes high-precision map data, protobuf data and road picture data;
所述高精地图数据包括道路相关的点云数据;The high-precision map data includes road-related point cloud data;
所述protobuf数据包括用于传输的数据;The protobuf data includes data for transmission;
所述道路图片数据包括含有时间戳信息的道路图片,所述道路图片与点云数据能够通过时间戳进行关联。The road picture data includes a road picture including time stamp information, and the road picture and point cloud data can be associated through the time stamp.
优选地,数据显示模块在高精地图显示上根据不同的图层及属性信息进行可视化配色,将道路实景图片与轨迹点数据绑定显示,包括矢量数据加载、栅格数据加载、protobuf文件读取转换加载、道路边界线数据pnt_types解析和轨迹查看模块。Preferably, the data display module performs visual color matching according to different layers and attribute information on the high-precision map display, and binds and displays the road real-scene picture and track point data, including vector data loading, raster data loading, and protobuf file reading Conversion loading, road boundary line data pnt_types analysis and trajectory viewing module.
优选地,数据质检模块用于对生产的高精地图数据进行质量检查,基于QGIS的拓扑结构检查器基础上能够多个图层间质检,包括几何方向检查、重复ID检查、悬挂点检查、几何重复检查、锯齿线检查、上下游关系检查和道路边界线ID检查。Preferably, the data quality inspection module is used to perform quality inspection on the produced high-precision map data. The QGIS-based topology checker can perform quality inspections between multiple layers, including geometric direction inspection, duplicate ID inspection, and suspension point inspection. , geometric duplication check, zigzag line check, upstream-downstream relationship check and road boundary line ID check.
优选地,所述几何方向检查用于检查道路中心线hd_center和道路线hd_boundary图层的线方向,当两条线首端点相连或尾端点相连且两线夹角大于120°时表示两条线方向错误;Preferably, the geometric direction check is used to check the line direction of the road centerline hd_center and the road line hd_boundary layer, and when the two lines are connected at the beginning or end and the angle between the two lines is greater than 120°, it indicates the direction of the two lines mistake;
所述重复ID检查通过遍历要素用于检查矢量图层的id属性值是否存在重复值,若是,则检查对应的矢量图层是否重复,对重复的图层删除其中一个;若否,则通过检查;The duplicate ID check is used to check whether there is a duplicate value in the id attribute value of the vector layer by traversing the elements, if so, then check whether the corresponding vector layer is duplicated, and delete one of the duplicated layers; if not, then pass the inspection ;
所述悬挂点检查用于检查矢量线图层,包括单图层悬挂点检查和多图层悬挂点检查,所述多图层悬挂点检查将输入的多个图层的所有首尾端点建立索引进行检查,其中悬挂点是当一条线的首端点或尾端点未与其他线首尾端点相连,则判定该端点为悬挂点;The hanging point check is used to check the vector line layer, including a single layer hanging point check and a multi-layer hanging point check, and the multi-layer hanging point check indexes all the end points of the input multiple layers Check, where the hanging point is when the head end point or tail end point of a line is not connected with other line end points, then it is determined that the end point is a hanging point;
所述几何重复检查用于检查矢量图层几何要素,包括单图层检查与多图层检查,所述多图层几何重复检查通过遍历所有图层要素,建立几何索引进行几何重复判断;The geometric duplication check is used to check the geometric elements of the vector layer, including single-layer inspection and multi-layer inspection, and the multi-layer geometric duplication check traverses all layer elements to establish a geometric index to judge geometric duplication;
所述上下游关系检查通过几何拓扑关系判定对应的两个属性值的正确性;The checking of the upstream and downstream relationship determines the correctness of the corresponding two attribute values through the geometric topology relationship;
所述道路边界线ID检查通过空间拓扑关系找到道路中心线hd_center中每条线的左右边界,判断所述边界id是否是left_bid、right_bid属性值。The road boundary line ID check finds the left and right boundaries of each line in the road centerline hd_center through the spatial topology relationship, and judges whether the boundary id is the attribute value of left_bid and right_bid.
优选地,数据修复模块对于不同的错误采用特定的修复方式进行批量修复,包括近距离悬挂点修复、无效几何修复、重复ID修复、锯齿线修复;Preferably, the data repair module adopts specific repair methods for batch repairs for different errors, including short-distance suspension point repair, invalid geometry repair, duplicate ID repair, and jagged line repair;
所述近距离悬挂点修复将两个悬挂点吸附使得两条线连通,进而完成距离小于阈值的悬挂点的修复。The short-distance suspension point repair adsorbs the two suspension points so that the two lines are connected, and then completes the repair of the suspension points whose distance is smaller than the threshold.
优选地,数据转换模块针对大数据量的点云数据进行格式转换及分块化处理;Preferably, the data conversion module performs format conversion and block processing for point cloud data with a large amount of data;
所述格式转换包括将道路点云数据转换为分块的tif数据、将点云范围原始数据转换为多个shp文件进行加载和将带有高程的shp点数据转换为las点云数据格式。The format conversion includes converting road point cloud data into block tif data, converting point cloud range original data into multiple shp files for loading, and converting shp point data with elevation into las point cloud data format.
优选地,数据分割模块用于将矢量图层按指定范围或者指定面要素分割为多个图层。Preferably, the data segmentation module is used to divide the vector layer into multiple layers according to a specified range or a specified area element.
第二方面,本发明提供了一种基于QGIS的高精度地图自动质检方法,包括:In a second aspect, the present invention provides a QGIS-based automatic quality inspection method for high-precision maps, including:
数据获取步骤:加载原始数据,所述原始数据包括道路相关的矢量数据;Data acquisition step: loading raw data, which includes road-related vector data;
数据渲染步骤:利用QGIS对所述数据进行数据渲染显示和分析,利用QT对界面视图开发从而进行可视化操作;Data rendering step: using QGIS to perform data rendering display and analysis on the data, and using QT to develop the interface view so as to perform visual operation;
数据检测步骤:对渲染后的矢量数据进行几何修改与属性编辑,以及针对矢量数据进行几何拓扑检查以及属性信息检查,得到对应的检测结果;Data detection step: perform geometric modification and attribute editing on the rendered vector data, and perform geometric topology inspection and attribute information inspection on the vector data to obtain corresponding detection results;
数据修复步骤:对所述检测结果中的错误进行自动化批量修复。Data repairing step: automatic batch repairing of errors in the detection results.
优选地,还包括数据转换步骤:对大数据量的点云数据进行格式转换及分块化处理,供于数据加载及处理;Preferably, it also includes a data conversion step: performing format conversion and block processing on the point cloud data with a large amount of data, for data loading and processing;
所述格式转换包括将道路点云数据转换为分块的tif数据、将点云范围原始数据转换为多个shp文件进行加载和将带有高程的shp点云数据转换为通用的点云数据格式;The format conversion includes converting the road point cloud data into block tif data, converting the point cloud range original data into multiple shp files for loading, and converting the shp point cloud data with elevation into a common point cloud data format ;
还包括数据分割步骤:将矢量图层按指定范围或者指定面要素分割为多个图层。It also includes a data segmentation step: dividing the vector layer into multiple layers according to the specified range or the specified area features.
与现有技术相比,本发明具有如下的有益效果:Compared with the prior art, the present invention has the following beneficial effects:
本发明基于QGIS开发的高精地图自动质检系统及方法,实现了高精地图快速可视化配色、高精地图数据转换、高精地图数据快速编辑、高精地图数据常见问题快速质检与修复、高精地图与实景图对比查看功能,提高了高精地图生产及质检效率,降低了高精地图生产成本。The present invention is based on the high-precision map automatic quality inspection system and method developed by QGIS, and realizes fast visual color matching of high-precision maps, conversion of high-precision map data, fast editing of high-precision map data, rapid quality inspection and repair of common problems in high-precision map data, The function of comparing and viewing high-precision maps and real-world maps improves the efficiency of high-precision map production and quality inspection, and reduces the production cost of high-precision maps.
附图说明Description of drawings
通过阅读参照以下附图对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present invention will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
图1为本发明基于QGIS的高精度地图自动质检系统结构示意图。Fig. 1 is a schematic structural diagram of the high-precision map automatic quality inspection system based on QGIS of the present invention.
图2为本发明基于QGIS的高精度地图自动质检方法的工作流程示意图。Fig. 2 is a schematic workflow diagram of the QGIS-based automatic quality inspection method for high-precision maps of the present invention.
图3为本发明中近距离悬挂点修复前后对比效果示意图。Fig. 3 is a schematic diagram of the comparison effect before and after repairing the short-distance suspension point in the present invention.
图4为本发明中锯齿线修复修复前后对比效果示意图。Fig. 4 is a schematic diagram of the comparison effect before and after repairing the zigzag line in the present invention.
具体实施方式Detailed ways
下面结合具体实施例对本发明进行详细说明。以下实施例将有助于本领域的技术人员进一步理解本发明,但不以任何形式限制本发明。应当指出的是,对本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变化和改进。这些都属于本发明的保护范围。The present invention will be described in detail below in conjunction with specific embodiments. The following examples will help those skilled in the art to further understand the present invention, but do not limit the present invention in any form. It should be noted that those skilled in the art can make several changes and improvements without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
实施例一Embodiment one
根据本发明提供的一种基于QGIS的高精度地图自动质检系统,如图1所示,包括:数据获取模块、数据渲染模块和数据处理模块。数据获取模块将原始数据传递至数据渲染模块,所述原始数据包括道路相关的矢量数据,数据渲染模块中的QGIS进行数据渲染显示及QT进行可视化操作,然后经过渲染的图像数据发送至数据处理模块中进一步处理。具体地,原始数据还包括高精地图数据、protobuf数据和道路图片数据。高精地图数据包括道路相关的点云数据,protobuf数据包括用于传输的数据,道路图片数据包括含有时间戳信息的道路图片,所述道路图片与点云数据能够通过时间戳进行关联。数据渲染模块中考虑到c++的处理运行速率快,在空间数据分析处理上有较大优势,可以采用c++进行开发。A QGIS-based automatic quality inspection system for high-precision maps provided by the present invention, as shown in FIG. 1 , includes: a data acquisition module, a data rendering module and a data processing module. The data acquisition module transmits the original data to the data rendering module, the original data includes road-related vector data, QGIS in the data rendering module performs data rendering and display and QT performs visualization operations, and then the rendered image data is sent to the data processing module in further processing. Specifically, the original data also includes high-precision map data, protobuf data and road picture data. High-precision map data includes road-related point cloud data, protobuf data includes data for transmission, and road image data includes road images containing time stamp information, and the road images and point cloud data can be associated through time stamps. In the data rendering module, considering that the processing speed of c++ is fast, it has great advantages in spatial data analysis and processing, so it can be developed with c++.
数据处理模块包括数据显示模块、数据编辑模块、数据质检模块、数据修复模块、数据转换模块和数据分割模块。其中,数据显示模块基于QGIS对高精地图数据进行渲染显示。数据编辑模块对矢量数据进行几何修改与属性编辑。数据质检模块针对矢量数据进行几何拓扑检查以及属性信息检查。数据修复模块用于自动化批量修复数据质检模块所检测出的错误。数据转换模块用于数据格式间的转换。数据分割模块用于大范围数据切割,进而实现任务分配。The data processing module includes a data display module, a data editing module, a data quality inspection module, a data repair module, a data conversion module and a data segmentation module. Among them, the data display module renders and displays the high-precision map data based on QGIS. The data editing module performs geometric modification and attribute editing on vector data. The data quality inspection module performs geometric topology inspection and attribute information inspection on vector data. The data repair module is used to automatically repair errors detected by the data quality inspection module in batches. The data conversion module is used for conversion between data formats. The data segmentation module is used for large-scale data segmentation to realize task allocation.
具体地,数据显示模块在高精地图显示上根据不同的图层及属性信息进行可视化配色,将道路实景图片与轨迹点数据绑定显示,包括矢量数据加载、栅格数据加载、protobuf文件读取转换加载、道路边界线数据pnt_types解析和轨迹查看模块。同时对符合规范的高精地图数据进行可视化配色处理,以及将道路实景图片与轨迹点数据绑定显示的实现能够方便进行数据编辑修改。Specifically, the data display module performs visual color matching according to different layers and attribute information on the high-precision map display, and binds the road real-scene picture with the track point data, including vector data loading, raster data loading, and protobuf file reading Conversion loading, road boundary line data pnt_types analysis and trajectory viewing module. At the same time, the visualization and color matching of the high-precision map data that conforms to the specifications, as well as the realization of binding and displaying the real road pictures and track point data can facilitate data editing and modification.
进一步地,对于非高精地图矢量数据以默认样式加载渲染,对于高精地图矢量数据针对不同类型的数据单独配置qml样式文件,在QGIS渲染时将以指定样式渲染图层。其中,不同类型的数据包括道路中心线(hd_center)、道路边界线(hd_boundary)、停止线(hd_stop)、信号灯(hd_signal)、道路箭头(hd_arrow)、道路面(hd_road)和路口(hd_crossroad)。在加载栅格数据时,将图层默认置于底层加载显示,避免遮挡矢量数据。Protobuf是一种二进制数据交换格式,本发明能够读取hdmap与pointmap两种数据类型的protobuf文件,其中hdmap主要存储的是高精地图道路数据,包括道路中心线、道路边界线、停止线、信号灯、道路箭头、道路面、路口以及它们间的拓扑关系,pointmap主要存储的是采集车采集到的道路点云数据。利用protobuf库读取其中的信息,并使用GDAL库将其写入对应的矢量文件中,通过指定样式加载渲染至QGIS中,解析完成后的矢量存放于同级目录下,在下次读取protobuf文件时会优先判断是否已存在解析后的文件,如果有则直接使用。protobuf文件以bin格式存储,其中以“hd”开头的protobuf文件将作为hdmap数据类型解析,最终会生成hd_center、hd_boundary、hd_stop、hd_signal、hd_arrow、hd_road、hd_crossroad七个矢量文件,其它protobuf文件将以pointmap数据类型解析,生成一个点类型矢量文件。Furthermore, for non-high-precision map vector data, the default style is used for loading and rendering. For high-precision map vector data, qml style files are configured separately for different types of data. When QGIS renders, the layer will be rendered in the specified style. Among them, different types of data include road centerline (hd_center), road boundary line (hd_boundary), stop line (hd_stop), signal light (hd_signal), road arrow (hd_arrow), road surface (hd_road) and intersection (hd_crossroad). When loading raster data, the layer is placed at the bottom by default for loading and displaying, so as to avoid occluding the vector data. Protobuf is a binary data exchange format. The present invention can read protobuf files of hdmap and pointmap data types, wherein hdmap mainly stores high-precision map road data, including road centerline, road boundary line, stop line, signal light , road arrows, road surfaces, intersections and their topological relationships, pointmap mainly stores the road point cloud data collected by the collection vehicle. Use the protobuf library to read the information in it, and use the GDAL library to write it into the corresponding vector file, load and render it into QGIS through the specified style, and store the parsed vector in the same level directory, and read the protobuf file next time , it will give priority to judging whether the parsed file already exists, and if so, use it directly. Protobuf files are stored in bin format, among which the protobuf files starting with "hd" will be parsed as hdmap data types, and finally seven vector files will be generated: hd_center, hd_boundary, hd_stop, hd_signal, hd_arrow, hd_road, hd_crossroad, and other protobuf files will be pointmap Data type analysis, generate a point type vector file.
道路边界线(hd_boundary)的pnt_type属性值存储的为线上每个点的类型,代表车道线类型,例如白实线、白虚线、黄实线、黄虚线等。存储方式以点数量、类型的形式间隔存储以压缩字段值大小。在解析pnt_types时,优先判断pnt_types中存储的点数量与线上点数量是否一致,多余部分舍弃,缺少部分以0补充,按照点类型对线数据进行拆分,最后生成hd_boundary_types文件用于显示车道线类型。The pnt_type attribute value of the road boundary line (hd_boundary) stores the type of each point on the line, representing the type of lane line, such as white solid line, white dashed line, yellow solid line, yellow dashed line, etc. The storage method is stored at intervals in the form of point quantity and type to compress the field value size. When parsing pnt_types, first judge whether the number of points stored in pnt_types is consistent with the number of points on the line, discard the excess part, and supplement the missing part with 0, split the line data according to the point type, and finally generate the hd_boundary_types file for displaying lane lines type.
数据编辑模块用于修改图层的属性与几何信息,在多要素编辑及属性显示界面上有较大的优化。具体地,本发明要素选择包括框选与多边形选择两种方式,框选为鼠标左键长按绘制矩形框,多边形选择为鼠标左键点选绘制多边形框,最后会高亮选中矩形框或多边形框中的要素,并将属性信息显示在编辑工具UI界面中。此时属性信息可以直接进行编辑。例如,翻转线段、打断线段、移动线段和合并线段等。The data editing module is used to modify the attributes and geometric information of the layer, and has a large optimization in the multi-element editing and attribute display interface. Specifically, the element selection of the present invention includes two methods of frame selection and polygon selection. The frame selection is to draw a rectangular frame by pressing and holding the left mouse button, and the polygon selection is to draw a polygon frame by clicking the left mouse button. Finally, the rectangular frame or polygon will be highlighted. The elements in the box, and the attribute information is displayed in the editing tool UI interface. At this point, the attribute information can be edited directly. For example, flip line segments, break line segments, move line segments, merge line segments, etc.
数据质检模块用于对生产的高精地图数据进行质量检查,基于QGIS的拓扑结构检查器基础上能够多个图层间质检,包括几何方向检查、重复ID检查、悬挂点检查、几何重复检查、锯齿线检查、上下游关系检查和道路边界线ID检查。同时,将检查出的错误信息显示在质检模块面板中,并能够根据具体错误信息定位至错误位置。The data quality inspection module is used to perform quality inspection on the produced high-precision map data. The QGIS-based topology checker can perform quality inspections between multiple layers, including geometric direction inspection, duplicate ID inspection, suspension point inspection, and geometric repetition. Inspection, jagged line inspection, upstream and downstream relationship inspection and road boundary line ID inspection. At the same time, the detected error information is displayed on the panel of the quality inspection module, and the error location can be located according to the specific error information.
具体地,几何方向检查用于检查道路中心线hd_center和道路线hd_boundary图层的线方向,当两条线首端点相连或尾端点相连且两线夹角大于120°时表示两条线方向错误。重复ID检查通过遍历要素用于检查矢量图层的id属性值是否存在重复值,若是,则检查对应的矢量图层是否重复,对重复的图层删除其中一个;若否,则通过检查。悬挂点检查用于检查矢量线图层,包括单图层悬挂点检查和多图层悬挂点检查,所述多图层悬挂点检查将输入的多个图层的所有首尾端点建立索引进行检查,其中悬挂点是当一条线的首端点或尾端点未与其他线首尾端点相连,则判定该端点为悬挂点。几何重复检查用于检查矢量图层几何要素,包括单图层检查与多图层检查,所述多图层几何重复检查通过遍历所有图层要素,建立几何索引进行几何重复判断。锯齿线检查针对矢量线图层几何要素进行检查,当一条线要素内,各段线间夹角超过一定阀值时,该线则会被判定为锯齿线。上下游关系检查通过几何拓扑关系判定对应的两个属性值的正确性。道路边界线ID检查主要针对高精地图的hd_center(道路中心线)、hd_boundary(道路边界线)图层,hd_center图层中有left_bid、right_bid属性字段,分别代表道路中心线左右边界。包括通过空间拓扑关系找到道路中心线hd_center中每条线的左右边界,判断所述边界id是否是left_bid、right_bid属性值。Specifically, the geometric direction check is used to check the line direction of the road centerline hd_center and road line hd_boundary layers. When the two lines are connected at the beginning or end and the angle between the two lines is greater than 120°, it means that the direction of the two lines is wrong. Duplicate ID check is used to check whether the id attribute value of the vector layer has duplicate values by traversing the elements. If so, check whether the corresponding vector layer is duplicated, and delete one of the duplicated layers; if not, pass the check. The hanging point check is used to check the vector line layer, including the single layer hanging point check and the multi-layer hanging point check. The multi-layer hanging point check indexes all the end points of the input multiple layers for checking, Among them, the hanging point is when the head end point or tail end point of a line is not connected with other line end points, then the end point is determined to be a hanging point. The geometric duplication check is used to check the geometric elements of the vector layer, including single-layer checking and multi-layer checking. The multi-layer geometric duplication checking traverses all layer elements and establishes geometric indexes to judge geometric duplication. The jagged line check checks the geometric elements of the vector line layer. When the angle between the lines in a line element exceeds a certain threshold, the line will be judged as a jagged line. The upstream and downstream relationship check determines the correctness of the corresponding two attribute values through the geometric topology relationship. The road boundary line ID check is mainly aimed at the hd_center (road centerline) and hd_boundary (road boundary) layers of the high-precision map. The hd_center layer has left_bid and right_bid attribute fields, which represent the left and right boundaries of the road centerline respectively. It includes finding the left and right boundaries of each line in the road centerline hd_center through the spatial topology relationship, and judging whether the boundary id is the attribute value of left_bid and right_bid.
数据修复模块对于不同的错误采用特定的修复方式进行批量修复,包括近距离悬挂点修复、无效几何修复、重复ID修复、锯齿线修复。具体地,如图3所示,左图显示图层生产过程中的小误差导致悬挂点间距离很小,右图显示通过近距离悬挂点修复将两个悬挂点吸附使得两条线连通,进而完成距离小于阈值的悬挂点的修复。如图4所示,左图为通过质检模块检查出来的锯齿线,右图为通过本发明锯齿线修复后的效果图。对于重复ID修复,则是通过遍历矢量要素,获取ID字段属性值,判断是否有重复值,对于重复的值,重新编号为当前图层最大ID值加一。无效几何修复主要用于修复空几何要素,对该类要素直接做删除处理。The data repair module adopts specific repair methods for batch repairs for different errors, including short-distance suspension point repair, invalid geometry repair, duplicate ID repair, and jagged line repair. Specifically, as shown in Figure 3, the left figure shows that the small error in the layer production process leads to a small distance between the hanging points, and the right figure shows that the two hanging points are absorbed by the close hanging point repair so that the two lines are connected, and then Complete the repair of hanging points whose distance is less than the threshold. As shown in Figure 4, the left picture is the jagged line checked by the quality inspection module, and the right picture is the rendering of the jagged line repaired by the present invention. For duplicate ID repair, it traverses the vector elements to obtain the attribute value of the ID field, and judges whether there are duplicate values. For duplicate values, it is renumbered to the maximum ID value of the current layer plus one. Invalid geometry repair is mainly used to repair empty geometric elements, and directly delete such elements.
数据转换模块针对大数据量的点云数据进行格式转换及分块化处理。格式转换包括将道路点云数据转换为分块的t if数据、将点云范围原始数据转换为多个shp文件进行加载和将带有高程的shp点数据转换为las点云数据格式。The data conversion module performs format conversion and block processing for point cloud data with a large amount of data. Format conversion includes converting road point cloud data into block t if data, converting point cloud range raw data into multiple shp files for loading, and converting shp point data with elevation into las point cloud data format.
具体地,pointmap点云是用protobuf进行存储传输的二进制点云数据,对于大数据量的pointmap点云数据,能够将数据转换为分块的tif数据从而显示在QGIS中,在转换过程中,首先计算pointmap点云数据边界范围,根据范围大小对文件进行分割,分割时将数据转换为t if数据并在生成文件名末尾带上指定行列号,最后生成一个索引文件进行管理。在加载显示分割后的tif文件时,读取索引文件并按照QGIS当前画布范围显示t if图像,实现动态加载。当点云数据量过大时,无法直接转换为一个shp文件进行加载显示,通过所述数据转换模块能够将点云范围将原始数据转换为多个shp文件进行加载。Specifically, the pointmap point cloud is the binary point cloud data stored and transmitted by protobuf. For the pointmap point cloud data with a large amount of data, the data can be converted into block tif data and displayed in QGIS. During the conversion process, first Calculate the boundary range of pointmap point cloud data, divide the file according to the size of the range, convert the data into tif data and specify the row and column numbers at the end of the generated file name, and finally generate an index file for management. When loading and displaying the divided tif file, read the index file and display the tif image according to the current canvas range of QGIS to realize dynamic loading. When the amount of point cloud data is too large, it cannot be directly converted into one shp file for loading and displaying. The data conversion module can convert the original data of the point cloud range into multiple shp files for loading.
数据分割模块用于将矢量图层按指定范围或者指定面要素分割为多个图层。在高精地图质检过程中将一大块区域分割为多个小区域交给不同质检员进行同时质检以提高效率。The data segmentation module is used to divide the vector layer into multiple layers according to the specified range or specified area features. In the process of high-precision map quality inspection, a large area is divided into multiple small areas and handed over to different quality inspectors for simultaneous quality inspection to improve efficiency.
具体地,例如按指定范围进行图层分割,首先选择待分割的图层及指定的分割范围,然后进行分割处理,分割时将位于分割范围内的待分割要素存储至第一数据库,位于范围外的待分割要素存储至第二数据库。再例如按面要素分割图层,也就是说,按照某个面图层中的要素将待分割的图层分割为多块。首先选择待分割的面图层,在分割时,根据进行分割的面图层的每个面要素fid建立空文件夹,位于对应面要素内的待分割要素将导入对应文件夹中,没有位于分割面要素中的待分割要素将被舍弃。Specifically, for example, to perform layer segmentation according to a specified range, first select the layer to be segmented and the specified segmentation range, and then perform segmentation processing. During segmentation, the elements to be segmented within the segmented range are stored in the first database, and the elements located outside the range are stored in the first database. The elements to be divided are stored in the second database. Another example is to divide the layer by area features, that is, divide the layer to be divided into multiple blocks according to the features in a certain area layer. First, select the area layer to be split. When splitting, create an empty folder according to the fid of each area element of the area layer to be segmented. The elements to be divided located in the corresponding area element will be imported into the corresponding folder. The features to be split in the area features will be discarded.
实施例二Embodiment two
根据本发明提供的一种基于QGIS的高精度地图自动质检方法,如图2所示,包括:A kind of high-precision map automatic quality inspection method based on QGIS provided by the present invention, as shown in Figure 2, includes:
数据获取步骤:加载原始数据,所述原始数据包括道路相关的矢量数据,还包括高精地图数据、protobuf数据和道路图片数据。具体地,高精地图数据包括道路相关的点云数据,protobuf数据包括用于传输的数据,道路图片数据包括含有时间戳信息的道路图片,所述道路图片与点云数据能够通过时间戳进行关联。Data acquisition step: loading raw data, which includes road-related vector data, high-precision map data, protobuf data and road picture data. Specifically, high-precision map data includes road-related point cloud data, protobuf data includes data for transmission, and road image data includes road images containing time stamp information, and the road images and point cloud data can be associated through time stamps .
数据渲染步骤:利用QGIS对所述数据进行数据渲染显示和分析,利用QT对界面视图开发从而进行可视化操作。Data rendering step: use QGIS to perform data rendering, display and analysis on the data, and use QT to develop the interface view for visual operation.
数据检测步骤:对渲染后的矢量数据进行几何修改与属性编辑,以及针对矢量数据进行几何拓扑检查以及属性信息检查,得到对应的检测结果。具体地,所述几何拓扑检查以及属性信息检查包括几何方向检查、重复ID检查、悬挂点检查、几何重复检查、锯齿线检查、上下游关系检查和道路边界线ID检查。同时,将检查出的错误信息显示在质检模块面板中,并能够根据具体错误信息定位至错误位置。所述分割处理包括将矢量图层按指定范围或者指定面要素分割为多个图层。Data detection step: perform geometric modification and attribute editing on the rendered vector data, and perform geometric topology inspection and attribute information inspection on the vector data to obtain corresponding detection results. Specifically, the geometric topology check and attribute information check include geometric direction check, duplicate ID check, suspension point check, geometric duplicate check, zigzag line check, upstream-downstream relationship check, and road boundary line ID check. At the same time, the detected error information is displayed on the panel of the quality inspection module, and the error location can be located according to the specific error information. The splitting process includes splitting the vector layer into multiple layers according to a specified range or a specified area element.
进一步地,在高精地图质检过程中,通过实景照片进行参考将大大提供提高质检准确率,将数据采集车轨迹点与拍摄的实景照片进行绑定显示可以更方便质检人员进行对比质检。在points(点云图层)中,label属性记录了点类型,label=10的点数据为轨迹点数据,timestamp属性记录了采集车经过该点的时间戳,采集车拍摄的实景图片名中也包含了时间戳信息。在轨迹查看时,先选择轨迹点所在点图层,系统会根据轨迹点的时间戳拟合轨迹线,也可使用现有轨迹线,最后选择道路实景图片目录进行时间戳匹配。也就是说,在进行轨迹查看时,先选择查看的轨迹线,然后选择轨迹线上的轨迹点进行道路实景图片匹配查看。具体实现步骤包括:首先,建立道路实景图片与时间戳间关系索引;然后选择轨迹点,判断是否为当前轨迹线上的轨迹点;接着,获取轨迹点时间戳,与道路实景图片时间戳进行模糊匹配,获取当前轨迹点附近道路实景图片;最后,展示图片。Furthermore, in the process of high-precision map quality inspection, reference through real-scene photos will greatly improve the accuracy of quality inspection. Binding and displaying the track points of the data collection vehicle with the real-scene photos taken can make it more convenient for quality inspection personnel to compare quality. check. In points (point cloud layer), the label attribute records the point type, the point data with label=10 is the track point data, the timestamp attribute records the time stamp when the collection vehicle passed the point, and the name of the real-scene picture taken by the collection vehicle also contains time stamp information. When viewing the track, first select the point layer where the track point is located, and the system will fit the track line according to the timestamp of the track point, or use the existing track line, and finally select the road real picture directory for timestamp matching. That is to say, when checking the track, first select the track line to be viewed, and then select the track points on the track line to view the road real-scene picture matching. The specific implementation steps include: first, establish a relationship index between the real road picture and the time stamp; then select the track point, and judge whether it is a track point on the current track line; then, obtain the time stamp of the track point, and blur with the time stamp of the real road picture Match to obtain the real picture of the road near the current track point; finally, display the picture.
数据修复步骤:对所述检测结果中的错误进行自动化批量修复。所述修复包括近距离悬挂点修复、无效几何修复、重复ID修复、锯齿线修复。具体地,近距离悬挂点修复包括通过近距离悬挂点修复将两个悬挂点吸附使得两条线连通,进而完成距离小于阈值的悬挂点的修复。对于重复ID修复,则是通过遍历矢量要素,获取ID字段属性值,判断是否有重复值,对于重复的值,重新编号为当前图层最大ID值加一。无效几何修复主要用于修复空几何要素,对该类要素直接做删除处理。Data repairing step: automatic batch repairing of errors in the detection results. Said fixes include close hanging point fixes, invalid geometry fixes, duplicate ID fixes, jagged line fixes. Specifically, the short-distance suspension point repair includes absorbing two suspension points through the short-distance suspension point repair so that the two lines are connected, and then completing the repair of the suspension points whose distance is less than a threshold. For duplicate ID repair, it traverses the vector elements to obtain the attribute value of the ID field, and judges whether there are duplicate values. For duplicate values, it is renumbered to the maximum ID value of the current layer plus one. Invalid geometry repair is mainly used to repair empty geometric elements, and directly delete such elements.
本发明提供的一种基于QGIS的高精度地图自动质检方法还包括数据转换步骤和数据分割步骤。其中,数据转换步骤包括对大数据量的点云数据进行格式转换及分块化处理,供于数据加载及处理。格式转换包括将道路点云数据转换为分块的tif数据、将点云范围原始数据转换为多个shp文件进行加载和将带有高程的shp点云数据转换为通用的点云数据格式。数据分割步骤包括将矢量图层按指定范围或者指定面要素分割为多个图层。A QGIS-based automatic quality inspection method for high-precision maps provided by the present invention also includes a data conversion step and a data segmentation step. Wherein, the data conversion step includes performing format conversion and block processing on large amount of point cloud data for data loading and processing. Format conversion includes converting road point cloud data into block tif data, converting point cloud range raw data into multiple shp files for loading, and converting shp point cloud data with elevation into a common point cloud data format. The data segmentation step includes dividing the vector layer into multiple layers according to the specified range or the specified area features.
本领域技术人员知道,除了以纯计算机可读程序代码方式实现本发明提供的系统、装置及其各个模块以外,完全可以通过将方法步骤进行逻辑编程来使得本发明提供的系统、装置及其各个模块以逻辑门、开关、专用集成电路、可编程逻辑控制器以及嵌入式微控制器等的形式来实现相同程序。所以,本发明提供的系统、装置及其各个模块可以被认为是一种硬件部件,而对其内包括的用于实现各种程序的模块也可以视为硬件部件内的结构;也可以将用于实现各种功能的模块视为既可以是实现方法的软件程序又可以是硬件部件内的结构。Those skilled in the art know that, in addition to realizing the system, device and each module thereof provided by the present invention in a purely computer-readable program code mode, the system, device and each module thereof provided by the present invention can be completely programmed by logically programming the method steps. The same program is implemented in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, and embedded microcontrollers, among others. Therefore, the system, device and each module provided by the present invention can be regarded as a hardware component, and the modules included in it for realizing various programs can also be regarded as the structure in the hardware component; A module for realizing various functions can be regarded as either a software program realizing a method or a structure within a hardware component.
以上对本发明的具体实施例进行了描述。需要理解的是,本发明并不局限于上述特定实施方式,本领域技术人员可以在权利要求的范围内做出各种变化或修改,这并不影响本发明的实质内容。在不冲突的情况下,本申请的实施例和实施例中的特征可以任意相互组合。Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art may make various changes or modifications within the scope of the claims, which do not affect the essence of the present invention. In the case of no conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310274660.8A CN116303859A (en) | 2023-03-16 | 2023-03-16 | QGIS-based high-precision map automatic quality inspection system and method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310274660.8A CN116303859A (en) | 2023-03-16 | 2023-03-16 | QGIS-based high-precision map automatic quality inspection system and method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116303859A true CN116303859A (en) | 2023-06-23 |
Family
ID=86779467
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310274660.8A Pending CN116303859A (en) | 2023-03-16 | 2023-03-16 | QGIS-based high-precision map automatic quality inspection system and method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116303859A (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117235089A (en) * | 2023-11-09 | 2023-12-15 | 高德软件有限公司 | Map checking method, map checking device, electronic equipment and readable storage medium |
| CN119336860A (en) * | 2024-10-16 | 2025-01-21 | 平安科技(深圳)有限公司 | Remote sensing data processing method, device, equipment and storage medium |
| CN119396818A (en) * | 2024-10-17 | 2025-02-07 | 中南大学 | An intelligent repair method for hanging points of ground feature vector data |
| CN120084344A (en) * | 2025-04-30 | 2025-06-03 | 重庆长安汽车股份有限公司 | Position accuracy assessment method, device, equipment, vehicle, storage medium and product |
| CN120217723A (en) * | 2025-05-27 | 2025-06-27 | 理工雷科智途(北京)科技有限公司 | A method for quality inspection of underground mine maps based on unmanned driving simulation |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112115220A (en) * | 2020-09-04 | 2020-12-22 | 厦门亿力吉奥信息科技有限公司 | Map data inspection method and computer-readable storage medium |
| CN114323042A (en) * | 2021-12-30 | 2022-04-12 | 湖北亿咖通科技有限公司 | Map data processing method and device, nonvolatile storage medium and processor |
| CN114764842A (en) * | 2022-03-01 | 2022-07-19 | 高德软件有限公司 | Point cloud data visualization method, device, equipment and storage medium |
| US20220347835A1 (en) * | 2021-04-30 | 2022-11-03 | DOK-ING d.o.o. | Remote-controlled vehicle for operations in the extreme conditions |
-
2023
- 2023-03-16 CN CN202310274660.8A patent/CN116303859A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112115220A (en) * | 2020-09-04 | 2020-12-22 | 厦门亿力吉奥信息科技有限公司 | Map data inspection method and computer-readable storage medium |
| US20220347835A1 (en) * | 2021-04-30 | 2022-11-03 | DOK-ING d.o.o. | Remote-controlled vehicle for operations in the extreme conditions |
| CN114323042A (en) * | 2021-12-30 | 2022-04-12 | 湖北亿咖通科技有限公司 | Map data processing method and device, nonvolatile storage medium and processor |
| CN114764842A (en) * | 2022-03-01 | 2022-07-19 | 高德软件有限公司 | Point cloud data visualization method, device, equipment and storage medium |
Non-Patent Citations (1)
| Title |
|---|
| 房哲: ""基于开源GIS的构造大地测量制图软件设计与实现"", 《中国优秀硕士学位论文全文数据库基础科学辑》, no. 06, 15 June 2020 (2020-06-15), pages 31 - 51 * |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117235089A (en) * | 2023-11-09 | 2023-12-15 | 高德软件有限公司 | Map checking method, map checking device, electronic equipment and readable storage medium |
| CN117235089B (en) * | 2023-11-09 | 2024-02-23 | 高德软件有限公司 | Map checking method, map checking device, electronic equipment and readable storage medium |
| CN119336860A (en) * | 2024-10-16 | 2025-01-21 | 平安科技(深圳)有限公司 | Remote sensing data processing method, device, equipment and storage medium |
| CN119336860B (en) * | 2024-10-16 | 2025-10-31 | 平安科技(深圳)有限公司 | A remote sensing data processing method, apparatus, device, and storage medium |
| CN119396818A (en) * | 2024-10-17 | 2025-02-07 | 中南大学 | An intelligent repair method for hanging points of ground feature vector data |
| CN119396818B (en) * | 2024-10-17 | 2025-11-04 | 中南大学 | A method for intelligent repair of suspended points in ground feature vector data |
| CN120084344A (en) * | 2025-04-30 | 2025-06-03 | 重庆长安汽车股份有限公司 | Position accuracy assessment method, device, equipment, vehicle, storage medium and product |
| CN120084344B (en) * | 2025-04-30 | 2025-08-12 | 重庆长安汽车股份有限公司 | Position accuracy assessment method, device, equipment, vehicle, storage medium and product |
| CN120217723A (en) * | 2025-05-27 | 2025-06-27 | 理工雷科智途(北京)科技有限公司 | A method for quality inspection of underground mine maps based on unmanned driving simulation |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN116303859A (en) | QGIS-based high-precision map automatic quality inspection system and method | |
| US11417118B2 (en) | Lane line data processing method and apparatus, computer device, and storage medium | |
| CN111462275B (en) | A map production method and device based on laser point cloud | |
| CN107923132B (en) | Crack analysis device, crack analysis method, and recording medium | |
| CN116484971A (en) | Automated driving perception self-learning method, device and electronic equipment for vehicles | |
| WO2020248614A1 (en) | Map generation method, drive control method and apparatus, electronic equipment and system | |
| WO2021051344A1 (en) | Method and apparatus for determining lane lines in high-precision map | |
| CN107885790B (en) | A Multi-factor Automatic Update Method for Road Spatial Networks | |
| US11423611B2 (en) | Techniques for creating, organizing, integrating, and using georeferenced data structures for civil infrastructure asset management | |
| CN113360589A (en) | Map data updating method and device and electronic equipment | |
| CN106372255A (en) | Street view image recognition method and device | |
| CN117789160A (en) | Multi-mode fusion target detection method and system based on cluster optimization | |
| CN114924680A (en) | Port unmanned driving map generation method based on WEB front-end visual interface | |
| CN116978010A (en) | Image annotation method and device, storage medium and electronic equipment | |
| CN115861609A (en) | Segmentation and labeling method, electronic equipment and storage medium of remote sensing image | |
| CN112446343A (en) | Vehicle-mounted point cloud road rod-shaped object machine learning automatic extraction method integrating multi-scale features | |
| CN117553812A (en) | Lane line extraction method, storage medium and device | |
| CN116935268A (en) | Video target detection data main area annotation method, device, equipment and medium | |
| CN119068407B (en) | Excavation quantity real-time monitoring method, device and product based on double-trunk target detection | |
| CN109145424B (en) | Bridge data identification method and system for ground penetrating radar data | |
| CN116955517B (en) | Intersection region detection method, device, equipment and computer readable storage medium | |
| CN116935134A (en) | Point cloud data labeling method, point cloud data labeling system, terminal and storage medium | |
| JP7792177B1 (en) | Data selection support device, data selection support method, and data selection support program | |
| CN121116927A (en) | Method for generating scene xodr file based on point cloud data of large model | |
| CN114742920B (en) | A method, device, storage medium and terminal for generating map layer 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 |