#670: add support for alternative coordinates
-------------------------+--------------------------------------------------
Reporter: timmie | Owner: grass-dev@lists.osgeo.org
Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Keywords: | Platform: Linux
Cpu: x86-32 |
-------------------------+--------------------------------------------------
When working in a projected location (e.g.) it would be nice to see also
the geographic coordinates in the status bar of the map window as
additional information.
#670: add support for alternative coordinates
--------------------------+-------------------------------------------------
Reporter: timmie | Owner: grass-dev@lists.osgeo.org
Type: enhancement | Status: new
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords: map display, preferences, workspace
Platform: Linux | Cpu: x86-32
--------------------------+-------------------------------------------------
Comment (by martinl):
Replying to [comment:4 cmbarton]:
> I don't know if there is a GRASS module to translate an xy coordinate
pair into another projection. Does g.proj do this? m.proj?
Replying to [comment:3 martinl]:
> I can imagine new option in GUI preferences or probably better in
workspace to show coordinates in defined projection (epgs, proj string).
#670: add support for alternative coordinates
--------------------------+-------------------------------------------------
Reporter: timmie | Owner: martinl
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords: map display, preferences, workspace
Platform: Linux | Cpu: x86-32
--------------------------+-------------------------------------------------
Comment (by timmie):
> GUI preferences -> Display -> Projection statusbar setting.
Martin, thanks.
But it doesn't seem to work.
I tried it on UTM projection with EPSG 4326.
But the status bar show still metric coordinates instead of WGS84 lat/lon
#670: add support for alternative coordinates
--------------------------+-------------------------------------------------
Reporter: timmie | Owner: martinl
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords: map display, preferences, workspace
Platform: Linux | Cpu: x86-32
--------------------------+-------------------------------------------------
Comment (by martinl):
Replying to [comment:7 timmie]:
> > GUI preferences -> Display -> Projection statusbar setting.
> Martin, thanks.
> But it doesn't seem to work.
> I tried it on UTM projection with EPSG 4326.
> But the status bar show still metric coordinates instead of WGS84
lat/lon
The required field is proj4 string not the EPSG code. So you can
* directly write proj4 code
* or load epsg code (takes quite long time) and choose the code
#670: add support for alternative coordinates
--------------------------+-------------------------------------------------
Reporter: timmie | Owner: martinl
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords: map display, preferences, workspace
Platform: Linux | Cpu: x86-32
--------------------------+-------------------------------------------------
Comment (by timmie):
- it loads like: +proj=utm +zone=24 +south +ellps=aust_SA +units=m
+no_defs <>
which doesn't work unless modified to +proj=utm +zone=24 +south
+ellps=aust_SA +units=m +no_defs
- this works very well => great plus!
- for not leading to mislead coordinates comparisions it would be
great to show the EPSG number in the status bar
- please make a switch in the status bar to either native coodinates
of the location or the projection defined in the Config
- does it check whether the projections comply?
- please documents that: one needs to input the EPSG number and then
press load code
- pelase enable to display the coordinates in decimal numbers: -f
'%.8f'
> - pelase enable to display the coordinates in decimal numbers: -f
'%.8f'
FWIW in the tcltk gis.m GUI, D.DDD, DM.MMM, or DMS.SSS format in the map
display's status bar is now controlled by "dms_format" variable in
mapcanvas.tcl.
{{{
# FIXME: make this settable from the UI or use GRASS_DMS_FORMAT enviro
var
# DMS format: 0 is ddd.dddddd, 1 is ddd:mm.mmmm', 2 is
ddd:mm'ss.sss"
set dms_format 2
}}}
not sure if that variable should idealy be a g.gisenv GRASS variable or a
shell environment variable.
I only went to %.6f for D.DDDDDD there because this is a GUI and it is not
very approrpiate to claim millimeter ground precision from a screen
pixel+mouse click. Similar just to %.3f for planimetric locations.
also, if using Swig, G_format_northing() etc can now accept projection
type of -1 to force decimal output.
#670: add support for alternative coordinates
--------------------------+-------------------------------------------------
Reporter: timmie | Owner: martinl
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords: map display, preferences, workspace
Platform: Linux | Cpu: x86-32
--------------------------+-------------------------------------------------
Comment (by martinl):
Replying to [comment:9 timmie]:
> - please make a switch in the status bar to either native coodinates
of the location or the projection defined in the Config
Done in r38258.
> - does it check whether the projections comply?
I don't understand what you are asking for.
> - please documents that: one needs to input the EPSG number and then
press load code
I would leave this for native speaker in the best case.
> - pelase enable to display the coordinates in decimal numbers: -f
'%.8f'
#670: add support for alternative coordinates
--------------------------+-------------------------------------------------
Reporter: timmie | Owner: martinl
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords: map display, preferences, workspace
Platform: Linux | Cpu: x86-32
--------------------------+-------------------------------------------------
Comment (by timmie):
Replying to [comment:10 hamish]:
> Replying to [comment:9 timmie]:
> > - it loads like: +proj=utm +zone=24 +south +ellps=aust_SA +units=m
+no_defs <>
> > which doesn't work unless modified to +proj=utm +zone=24 +south
+ellps=aust_SA +units=m +no_defs
>
> "+no_defs" might also be removed, I am not really sure if it does
anything anymore. You may study Gerald's comments on the PROJ.4 list as to
its original purpose:
> http://search.gmane.org/?query=no_defs&author=gerald&group=gmane.comp.gis.proj-4.devel&sort=date
It is still there in the latest revision. (05-07-2009)
> I only went to %.6f for D.DDDDDD there because this is a GUI and it is
not very approrpiate to claim millimeter ground precision from a screen
pixel+mouse click. Similar just to %.3f for planimetric locations.
True.
May a preference for %.6f be added to the wxGUI preferences?
#670: add support for alternative coordinates
--------------------------+-------------------------------------------------
Reporter: timmie | Owner: martinl
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords: map display, preferences, workspace
Platform: Linux | Cpu: x86-32
--------------------------+-------------------------------------------------
Comment (by timmie):
Replying to [comment:11 martinl]:
> Replying to [comment:9 timmie]:
> > - please make a switch in the status bar to either native
coodinates of the location or the projection defined in the Config
>
> Done in r38258.
Well, I was looking for a different design.
Which wxGUI python file controls the status bar?
I would like to send you a proposal.
> > - does it check whether the projections comply?
>
> I don't understand what you are asking for.
What happens if a users enters a EPSG code of a projection which does not
match with the projection of the location?
E.g. an adjactant UTM zone instead of WGS84?
> > - please documents that: one needs to input the EPSG number and
then press load code
> I would leave this for native speaker in the best case.
I would like to include this in the proposal.
What file do I need to modify?
#670: add support for alternative coordinates
--------------------------+-------------------------------------------------
Reporter: timmie | Owner: martinl
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords: map display, preferences, workspace
Platform: Linux | Cpu: x86-32
--------------------------+-------------------------------------------------
Comment (by martinl):
Replying to [comment:14 timmie]:
> > > - please make a switch in the status bar to either native
coodinates of the location or the projection defined in the Config
> >
> > Done in r38258.
> Well, I was looking for a different design.
And design is? Currently you can enable reprojection from combobox located
in the mapdisplay statusbar, item "Projection". Note that only statusbar
coordinates are reprojected, not the data.
> Which wxGUI python file controls the status bar?
> > > - does it check whether the projections comply?
> >
> > I don't understand what you are asking for.
> What happens if a users enters a EPSG code of a projection which does
not match with the projection of the location?
The required item is proj string not the EPSG code. Coordinates in the
statusbar are reprojected. This is what you are asking for, no?
> E.g. an adjactant UTM zone instead of WGS84?
>
> > > - please documents that: one needs to input the EPSG number and
then press load code
> > I would leave this for native speaker in the best case.
> I would like to include this in the proposal.
> What file do I need to modify?
#670: add support for alternative coordinates
--------------------------+-------------------------------------------------
Reporter: timmie | Owner: martinl
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords: map display, preferences, workspace
Platform: Linux | Cpu: x86-32
--------------------------+-------------------------------------------------
Comment (by cmbarton):
Timmie,
It will be very helpful if you are able to start helping with coding on
the GUI. As you note, you'll need some time to familiarize yourself with
the GUI and GRASS more generally. Ultimately, if you do not have SVN
access, it will be best if you apply for that.
I've tried a number of IDE's and to some extent, it's a matter of personal
preference for how to work. Currently, I'm using Editra. It is written in
Python and wxPython, which makes it very cross platform. With a couple of
plugins, it is very powerful and useful. I've also used Komodo (open
source version) and a couple of Mac-specific ones.
The other changes will need more time.
I need to setup pydev (my preferred IDE) to reflect the wxGUI.
I will not apply to avn access before being sure that I can contribute in
a reliable way.
I do not use GRASS on daily basis. From time to time I need to work some
tasks and days for one project.
For the time being, count on me for improvement suggestions, only.
#670: add support for alternative coordinates
--------------------------+-------------------------------------------------
Reporter: timmie | Owner: martinl
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.5.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords: map display, preferences, workspace
Platform: Linux | Cpu: x86-32
--------------------------+-------------------------------------------------
Comment (by martinl):
Replying to [comment:16 timmie]:
> Give me some time. The whole GUI structure is new to me and I worked
last with wxpython about 1 year ago.
> What IDE do you use?