Capture orthogonal lines/polygons do not works
还没有人认领这个 Issue。
评估
调研方向
从 tools/orthogonaldigitizer.py 开始,重点查看 canvasPressEvent 和 createFeature,并在所述 QGIS 版本中使用多边形图层和线图层复现报告的行为。跟踪图层空间参考调用和几何创建路径;完成的标准是结束操作不再引发报告的 AttributeError,并且每个图层都生成预期的正交几何,而不是线或顶点。
由索引模型根据 Issue 内容生成。
描述
Capture orthogonal lines/polygons function works incorrect. In polygonal layer it draws lines and in line layer it draws points (vertexes). When you trying to complete object creation the error appears.
Traceback (most recent call last):
File "C:\Users\aborodul/.qgis2/python/plugins\cadtools\tools\orthogonaldigitizer.py", line 89, in canvasPressEvent
self.createFeature()
File "C:\Users\aborodul/.qgis2/python/plugins\cadtools\tools\orthogonaldigitizer.py", line 126, in createFeature
layerEPSG = layer.srs().epsg()
AttributeError: 'QgsVectorLayer' object has no attribute 'srs'
Версия Python:
2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]
Версия:
2.0.1-Dufour Dufour, exported
- 主要语言
- Python
- 星标
- 24
- 派生
- 14
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
geopython/CadTools 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 3/5 1-2 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 25/100
-
modernize UI未关闭
难度 5/5 一周以上 新手友好度 25/100
-
CadTools don't work in qgis 2.8.1 due to snapping API change可能重新可做 @kalxas 于 4157 天前认领,目前没有进行中的 PR。 未关闭bug
查看 geopython/CadTools 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 79/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
mohitmishra786/readprism#322 ·
维护者通常 1 天内回复
-
good first issue
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 1/5 1 小时以内 新手友好度 75/100
维护者通常 1 天内回复
-
API-key credentials accept a blank key: empty via the API, spaces-only via the builder's Add API key dialog可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 77/100
Significant-Gravitas/AutoGPT#15727 ·
维护者通常 1 天内回复