前言
- 介绍注释(Annotation)图层在QGis中的使用以及二次开发的实现
- 说明:文章中的示例代码均来自开源项目qgis_cpp_api_apps
注释(Annotation)图层
表示包含一组地理参考注释的地图层,例如标记、直线、多边形或文本项。
QGis中的注释(Annotation)图层
- 首先创建一个Annotation图层,如下图所示
- 创建多边形类型注释,如下图
二次开发实现多边形注释(Annotation)
Represents a map layer containing a set of georeferenced annotations, e.g.markers, lines, polygons or text items.
<
Annotation layers store a set of QgsAnnotationItem items, which are rendered according to the item’s z-order.