Opened 18 years ago

Closed 16 years ago

Last modified 15 years ago

#358 closed enhancement (fixed)

Warn if .prj file is missing

Reported by: neteler@… Owned by: gsherman
Priority: minor: annoyance Milestone:
Component: Vectors Version: Trunk
Keywords: Cc: lami@…, neteler, flor@…
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

Hi,

the line and area measurement tools show wrong units:

  • starting with meters[qm] they switch to km[km2] once we digitize the line
  • the value is multiplied by 100

This seems to appear both in 0.8 preview2 and HEAD

Tested with a Transverse Mercator map (Gauss-Boaga, Italy)

regards,

Markus

Change History (7)

comment:1 by g_j_m, 18 years ago

The units used for line lengths is metres if the line is less than 1000 m, and kilometres if greater. Similarily for area, where the cutover from m2 to km2 is 1000 m2.

What do you mean when you say that the value is multiplied by 100? When the length units change from metres to kilometres, the value is divided by 1000, and for area the value in m2 is divided by 1000000 when displayed as km2

comment:2 by neteler@…, 18 years ago

OK, I tested again and the situation is worse :-)

I zoomed to a building in http://grass.itc.it/grass61/screenshots/images/qgis08_grass6_toolbox.png

(approximate scale while measuring is 1:500)

My chosen building is several *meters* long (maybe 22m). I start to draw the measurement tool line, it shows 0m, then immediately 300km (should be 3m), reaching 1000km (should be 10m) it flips to 0km again and so forth.

I am reading a SHAPE file with TMERC based projection (similar to UTM).

HA, got it - the proj file is missing... it would be probably cool if QGIS could say that the .prj file is missing (to wake up the user).

Markus

comment:3 by g_j_m, 18 years ago

Milestone: Version 0.8 ReleaseVersion 0.9 Release
Priority: majorminor
Summary: Wrong units in measurement toolsWarn if .prj file is missing
Type: defectenhancement

Good. I'll make this an enhancement against 0.9.

comment:4 by neteler, 16 years ago

Awaiting user input: unset
Cc: neteler added; neteler@… removed
Must Fix for Release: No

comment:5 by leolami, 16 years ago

Cc: lami@… added

I think the bug is fixed in 0.9.2 Can we close it?

comment:6 by neteler, 16 years ago

Resolution: fixed
Status: newclosed

... so I close it. Thanks.

comment:7 by (none), 15 years ago

Milestone: Version 0.9.2

Milestone Version 0.9.2 deleted

Note: See TracTickets for help on using tickets.