[GRASS-user] Native WinGRASS 6.4 RC5 g.proj failure

maven apache wrote:

I think I came across the same problem of the g.proj
the commond "g.proj -c
georef=d:\swilAlphaTIFF.tif location=tset" works
well in grass6.3 get some warning in grass6.4 6.4 RC5
:

(Wed Jun 17 18:27:31
2009)

g.proj -c georef=d:\swilAlphaTIFF.tif location=tset

Trying to open with OGR...
Trying to open with GDAL...

...succeeded.
ERROR: 要得到当前地图集未设置的范围
请运行 "g.region"

(
ERROR: region for current mapset is not set
       run "g.region"
)

found it,
  https://trac.osgeo.org/grass/ticket/654

I traced this back to r37726 where wind_format.c's format_double() uses G_projection() which wants to check the projection type (and that hasn't been created yet). Not sure of the best solution yet.

Hamish

Hamish wrote:

(
ERROR: region for current mapset is not set
       run "g.region"
)

found it,
  https://trac.osgeo.org/grass/ticket/654

I traced this back to r37726 where wind_format.c's format_double()
uses G_projection() which wants to check the projection type (and that
hasn't been created yet). Not sure of the best solution yet.

I suggest simply reverting r37726. Changing a function so that it
requires GRASS to have been initialised ($GISRC, WIND, etc) when it
didn't previously is a fundamental API change.

--
Glynn Clements <glynn@gclements.plus.com>