[QGIS-Developer] Possible QGIS enhancement

C Hamilton adenaculture at gmail.com
Tue Oct 20 12:02:41 PDT 2020


I am taking a look at qgscoordinateformatter.cpp to possibly enhance it a
little to merge some of the Lat Lon Tools capabilities into core QGIS.  I
am considering trying to code this myself and learn how to support QGIS
better rather than just producing plugins. Here are a couple of things I
would propose and would like your thoughts. Incidentally, is there a better
forum for making proposals such as this or is this the proper place?

1. Add the flag FlagDegreesPadDegreesMinutesSeconds. Currently it
has FlagDegreesPadMinutesSeconds. Without this flag it will generate
something like 5°3'2.23". With the flag it generates  5°030'2.23". The
proposed new flag would produce  05°03'02.23" for latitude or
005°03'02.23" for a longitude.

2. Some organizations use a compressed DMS format notation so for
QgsCoordinateFormatter::Format add the following:
a. FormatDegreesMinutesSecondsCompressed or FormatDMSCompressed.
This produces something like 050302.23N or 0050302.23W
b. FormatDegreesMinutesCompressed or FormatDMCompressed.
This produces something like 0503.23N or 00503.23W
In this notation degrees, minutes, and seconds are padded fully which for
degrees means that a latitude is 2 digits and longitude is 3 digits.

Thanks,

Calvin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20201020/52fe344d/attachment.html>


More information about the QGIS-Developer mailing list