Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced digitizing tool not drawing correctly when distances are in feet #53899

Closed
2 tasks done
rgreenwood opened this issue Jul 22, 2023 · 4 comments · Fixed by #53987
Closed
2 tasks done

Advanced digitizing tool not drawing correctly when distances are in feet #53899

rgreenwood opened this issue Jul 22, 2023 · 4 comments · Fixed by #53987
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Digitizing Related to feature digitizing map tools or functionality Regression Something which used to work, but doesn't anymore

Comments

@rgreenwood
Copy link

What is the bug or the crash?

I believe I'm seeing a regression in QGIS 3.32 in the advanced digitizing tool. When I'm working on a layer with a coordinate system that's in feet (and the project coordinate system is the same as the layer's), distances that I enter are being multiplied by 0.3048. e.g. I enter 1000 and it draws a line that's 304.8 feet.

The issue is in 3.32.0, 3.32.1
not in 3.28, I do not remember seeing the problem in 3.30 don't have that version to test.

Steps to reproduce the issue

Create a temporary scratch linestring layer in a coordinate system using feet. I used epsg:3739, which is actually US Survey feet.
set the project coord system to same as layer and distnace units to feet
set map center to 1000000,2000000 zoom 1:1000
With the advanced digitizing tool enter an angle=0, dist=1000 and draw the line. Use the measure tool (Cartesian) on the new line. I get 304.8 feet.

Versions

QGIS version
3.32.1-Lima
QGIS code revision
4a078ec
Qt version
5.15.3
Python version
3.10.6
GDAL/OGR version
3.4.1
PROJ version
8.2.1
EPSG Registry database version
v10.041 (2021-12-03)
GEOS version
3.10.2-CAPI-1.16.0
SQLite version
3.37.2
PDAL version
2.3.0
PostgreSQL client version
14.8 (Ubuntu 14.8-0ubuntu0.22.04.1)
SpatiaLite version
5.0.1
QWT version
6.1.4
QScintilla2 version
2.11.6
OS version
Linux Mint 21.2

Active Python plugins
qgis2wegue
1.1.1
debug_vs
0.7
plugin_reloader
0.9.3
AnotherDXF2Shape
1.2.8
qgsAzimuth
0.9.15
ImportPhotos
3.0.5
splitmultipart
1.0.0
MemoryLayerSaver
5.0.1
latlontools
3.6.11
processing
2.12.99
MetaSearch
0.3.6
grassprovider
2.12.99
db_manager
0.1.20

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

Someone on the list suggested that #53037 might be related.

@rgreenwood rgreenwood added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jul 22, 2023
@agiudiceandrea agiudiceandrea added Digitizing Related to feature digitizing map tools or functionality Projections/Transformations Related to coordinate reference systems or coordinate transformation labels Jul 25, 2023
@rgreenwood
Copy link
Author

At the risk of stating the obvious, 0.3048 is the conversion factor from International Foot to meter (0.30480061 for US Survey Foot).

@elpaso
Copy link
Contributor

elpaso commented Jul 26, 2023

Can you please check you distance measurement settings?

immagine

@rgreenwood
Copy link
Author

Three screenshots below
Project properties:
image

Advanced digi input:
image

Measurement of line drawn:
image

@elpaso elpaso self-assigned this Jul 28, 2023
@elpaso elpaso added Regression Something which used to work, but doesn't anymore and removed Projections/Transformations Related to coordinate reference systems or coordinate transformation labels Jul 28, 2023
elpaso added a commit to elpaso/QGIS that referenced this issue Jul 28, 2023
nyalldawson pushed a commit that referenced this issue Jul 30, 2023
qgis-bot pushed a commit that referenced this issue Jul 30, 2023
nyalldawson pushed a commit that referenced this issue Jul 31, 2023
@CoosForest
Copy link

This issue persists in
QGIS version 3.36.2-Maidenhead:
measured known distance of 726.57 ft with measure tool which worked correctly
using advanced digitizing tool, distance (d) shows 221.47 ft.
221.47 / 726.57 = 0.3048

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Digitizing Related to feature digitizing map tools or functionality Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants