Feature request #4017

Layer and measurement units

Added by jtornero - about 6 years ago. Updated over 3 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Map Canvas
Pull Request or Patch supplied:No Resolution:fixed/implemented
Easy fix?:No

Description

It would be nice to have more options about layer and measurement units (as gvSig, for instance). marine scientists do miss nautical miles, sq nautical miles, etc. The measurements are always in km (as far as I know). Also, derived magnitudes should be affected. Thanks

Associated revisions

Revision 344a5b6e
Added by Alexander Bruy over 3 years ago

[FEATURE] add Nautical miles to measure units (fix #4017). Initial patch
by Jorge Tornero with improvements

History

#1 Updated by Paolo Cavallini almost 6 years ago

  • Category set to Map Canvas
  • Pull Request or Patch supplied set to No

#2 Updated by Giovanni Manghi over 5 years ago

  • Target version set to Version 1.7.4

#3 Updated by Giovanni Manghi about 5 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

#4 Updated by Pirmin Kalberer over 4 years ago

  • Target version changed from Version 2.0.0 to Future Release - Nice to have

#5 Updated by Mathieu Doray about 4 years ago

I work for an important marine research institute, conducting sea surveys. My institute is thinking of getting rid of ArcGIS because of the enormous license fees. I would love that, because I am a vibrant open source software user and developer. The only thing that now prevents me from lobbying in favour of dropping ArcGIS and using QGIS is the fact that I cannot measure distances in nautical miles on the map, while planning my surveys. I would then like to re-emphasis the need for including new distance measurement units in QGIS, especially nautical miles.
Thank you for the great job made on QGIS!

#6 Updated by Giovanni Manghi about 4 years ago

Mathieu Doray wrote:

I work for an important marine research institute, conducting sea surveys. My institute is thinking of getting rid of ArcGIS because of the enormous license fees. I would love that, because I am a vibrant open source software user and developer. The only thing that now prevents me from lobbying in favour of dropping ArcGIS and using QGIS is the fact that I cannot measure distances in nautical miles on the map, while planning my surveys. I would then like to re-emphasis the need for including new distance measurement units in QGIS, especially nautical miles.
Thank you for the great job made on QGIS!

if this is the only thing that keeps you away from QGIS then consider that probably you can have this feature added for a very small fraction of 1 arcgis license.

#7 Updated by jtornero - about 4 years ago

Well... after reading yesteerday's messages both from Mathieu and Giovanni, I've decide to set out for look for a solution myself. I have done a pretty good workaround, but I am having some trouble; anyway, now I am able to select nautical miles as an unit and also get not only measures from measuring tool in nautical miles but derived units when selecting objects. It has been easier than I expected, but due to my inexperiencie with C++ and QtTranslator I can't categorically affirm that my solution works 100%. Some test measures within my projects have rendered the correct distances but I don't know if it is a global solution (ALL CRS's).

I've just edited some sources and .ui files and recompiled, with a text editor and that's all, but works.

I would like to contribute with my solution but I need some help about 1) translation (mainly the string matching the unit name in measure dialog, I have been trying to do something with QtLinguist but I can't add new strings) 2) how to create/send patches and also help making it in a nice way, if possible.

In other words: I need a experienced developer to check what I made and improve it if neccesary. Maybe what I did is a complete waste of time (well... in the actual state and for me it is not)

Long Live QGis!! Long Live Marine Scientist who miss QGis support for nautical units!!! :)

Thank you very much for your excellent work

Jorge Tornero

#8 Updated by Giovanni Manghi about 4 years ago

Hi Jorge,

the right way to contribute this patch is by submitting it on github

https://github.com/qgis/Quantum-GIS

cheers!

jtornero - wrote:

Well... after reading yesteerday's messages both from Mathieu and Giovanni, I've decide to set out for look for a solution myself. I have done a pretty good workaround, but I am having some trouble; anyway, now I am able to select nautical miles as an unit and also get not only measures from measuring tool in nautical miles but derived units when selecting objects. It has been easier than I expected, but due to my inexperiencie with C++ and QtTranslator I can't categorically affirm that my solution works 100%. Some test measures within my projects have rendered the correct distances but I don't know if it is a global solution (ALL CRS's).

I've just edited some sources and .ui files and recompiled, with a text editor and that's all, but works.

I would like to contribute with my solution but I need some help about 1) translation (mainly the string matching the unit name in measure dialog, I have been trying to do something with QtLinguist but I can't add new strings) 2) how to create/send patches and also help making it in a nice way, if possible.

In other words: I need a experienced developer to check what I made and improve it if neccesary. Maybe what I did is a complete waste of time (well... in the actual state and for me it is not)

Long Live QGis!! Long Live Marine Scientist who miss QGis support for nautical units!!! :)

Thank you very much for your excellent work

Jorge Tornero

#9 Updated by jtornero - about 4 years ago

Dear all,

I've pull-requested and/or commited

Adding support for measurements in nautical miles, Issue #4017

on gitHub as suggested by Giovanni Manghi.

I hope I've done all right... The changes have been tested against some reference polygons/lines both with ST_area in postgresql/postgis and ArcGIS, and the results are OK.

I hope we'll see this feature working soon. I'll focus on scalebar on map composer next time, but for now it has been enough.

Thank you very much for all,

Jorge Tornero

#10 Updated by Matthias Kuhn about 4 years ago

I'm not sure if this feature can be accepted for inclusion in 2.0, as we are in feature freeze about a month already. But it looks to me as this can very well be included in 2.1.

Thank you very much Jorge.

#11 Updated by Alexander Bruy over 3 years ago

  • Status changed from Open to Closed

#12 Updated by Alexander Bruy over 3 years ago

  • Resolution set to fixed/implemented

Also available in: Atom PDF