Ticket #3384 (closed patch: fixed)

Opened 2 years ago

Last modified 2 years ago

Measure tool ignore 'measure\ellipsoid' QGis settings

Reported by: stopa85 Owned by: mhugent
Priority: major: does not work as expected Milestone: Version 1.7.0
Component: GUI Version:
Keywords: measure tool Cc: stopa85
Platform Version: Platform: All
Must Fix for Release: No Awaiting user input: no

Description

Measure tool ignore 'measure\ellipsoid' QGis settings and use always WGS 84

this path fix it.

Attachments

measure.diff Download (3.6 KB) - added by stopa85 2 years ago.

Change History

Changed 2 years ago by stopa85

Changed 2 years ago by lutra

  • type changed from bug to patch

Changed 2 years ago by mhugent

  • owner changed from nobody to mhugent

Thanks for the patch, I'm going to review it in detail in the next few days. Afaik, current approach is to use the ellipsoid of the central maprenderers QgsDistanceArea? object (rather than calling QSettings in every tool).

Changed 2 years ago by mhugent

  • status changed from new to closed
  • resolution set to fixed

The patch is applied in r14992. Thanks, Sergey! I rearranged the code a bit and, following Martins advice, removed the remaining places where QgsMapRenderer::distanceArea() was used.

Note: See TracTickets for help on using tickets.