Opened 9 years ago

Last modified 4 years ago

#1252 new defect

wx location wizard fails to create a winkel tripel location

Reported by: hamish Owned by: grass-dev@…
Priority: normal Milestone: 6.4.6
Component: wxGUI Version: svn-develbranch6
Keywords: location wizard, wintri Cc:
CPU: x86-32 Platform: Linux

Description

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..

Change History (4)

comment:1 Changed 8 years ago by hamish

Milestone: 6.4.16.4.3

still happens.

comment:2 Changed 7 years ago by hamish

Keywords: wintri added

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

comment:3 Changed 7 years ago 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

comment:4 Changed 4 years ago by neteler

Milestone: 6.4.36.4.6
Note: See TracTickets for help on using tickets.