[GRASS-dev] [GRASS GIS] #1252: wx location wizard fails to create a winkel tripel location

#1252: wx location wizard fails to create a winkel tripel location
-----------------------------+----------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.1
Component: wxGUI | Version: svn-develbranch6
Keywords: location wizard | Platform: Linux
      Cpu: x86-32 |
-----------------------------+----------------------------------------------
hi, if I try to make a winkel tripel location from the wx location wizard
it ends with an error that it can't parse the PROJ.4 string and the
[Finish] button never ungreys itself.

  * choose by custom terms
  * proj: wintri
  * lon_0: 155E
  * datum: wgs84
  * summary page: Error..

It all works fine in text mode; 'wintri' is the last entry from '`proj
-lp`', so it's not some deep & ancient custom GRASS thing PROJ.4 doesn't
know anything about.

thanks,
Hamish

ps- in future release announcements we should continue to advertise how
great the new loc wiz is. One of the common complaints from old triers of
GRASS who were used to anything-goes-projection GISs was getting
past+understanding the project (location) setup. now it's a thing of
beauty..

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1252&gt;
GRASS GIS <http://grass.osgeo.org>

#1252: wx location wizard fails to create a winkel tripel location
-----------------------------+----------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: wxGUI | Version: svn-develbranch6
Keywords: location wizard | Platform: Linux
      Cpu: x86-32 |
-----------------------------+----------------------------------------------
Changes (by hamish):

  * milestone: 6.4.1 => 6.4.3

Comment:

still happens.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1252#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1252: wx location wizard fails to create a winkel tripel location
-------------------------------------+--------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: wxGUI | Version: svn-develbranch6
Keywords: location wizard, wintri | Platform: Linux
      Cpu: x86-32 |
-------------------------------------+--------------------------------------
Changes (by hamish):

  * keywords: location wizard => location wizard, wintri

Comment:

tested with latest 6.4svn. still happens.
  "ERROR: Can't parse PROJ.4-style parameter string"

adding a debug message to g.proj's input.c (where the above error msg
comes from), the problematic string it is trying is:
{{{
+proj=wintri +lat_0=0.0 +lat_1=10.0 +lon_0=155 +ellps=wgs84 +a=6378137.000
\
   +rf=298.257223563 +no_defs +no_defs
}}}

(+no_defs twice?)

from within a functioning Wintri location created using the text based
location creator (the daily earthquake map in adhoc), `g.proj -j` gives:
{{{
+proj=wintri
+lat_0=0.0000000000
+lat_1=0.0000000000
+lon_0=155.0000000000
+a=6378137
+rf=298.257223563
+no_defs
+towgs84=0.000,0.000,0.000
+to_meter=1.0
}}}

which isn't happy with cs2cs either.

note +proj=wintri has no inverse projection.

?,
Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1252#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1252: wx location wizard fails to create a winkel tripel location
-------------------------------------+--------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: wxGUI | Version: svn-develbranch6
Keywords: location wizard, wintri | Platform: Linux
      Cpu: x86-32 |
-------------------------------------+--------------------------------------

Comment(by hamish):

the cs2cs version of this is:

{{{
$ echo "156 1" | cs2cs +proj=longlat +datum=WGS84 +to \
   +proj=wintri +lat_0=0.0 +lat_1=10.0 +lon_0=155 +datum=WGS84 +no_defs

110468.24 111320.20 0.00
}}}

there is a chance that it wants to see +ellps=WGS84 instead of
+ellps=wgs84?

no luck:
{{{
GRASS65> g.proj -c proj4='+proj=wintri +lat_0=0.0 +lat_1=10.0 +lon_0=155 \
    +ellps=WGS84 +a=6378137.000 +rf=298.257223563' loc=test_wintri
ERROR: Can't parse PROJ.4-style parameter string
}}}

?,
Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1252#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>