[GRASS-dev] [GRASS GIS] #654: g.proj -c fails with ERROR: region for current mapset is not set run "g.region"

GRASS GIS trac at osgeo.org
Wed Jun 17 07:21:02 EDT 2009


#654: g.proj -c fails with ERROR: region for current mapset is not set run
"g.region"
----------------------+-----------------------------------------------------
 Reporter:  hamish    |       Owner:  grass-dev at lists.osgeo.org
     Type:  defect    |      Status:  new                      
 Priority:  critical  |   Milestone:  6.4.0                    
Component:  default   |     Version:  6.4.0 RCs                
 Keywords:  g.proj    |    Platform:  All                      
      Cpu:  All       |  
----------------------+-----------------------------------------------------
 As reported on grass-user
 {{{
  g.proj -c georef=swilAlphaTIFF.tif location=tset
 }}}

 fails with recent builds. I can reproduce on linux.


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


 I think the solution is to create a new lib fn
 {{{
  char *G_format_number(double value, int dp);
 }}}

 so modules don't have to lie to G_format_northing() about their projection
 type in order to get numeric output from lat/lon locations. then we can
 get rid of G_projection() from format_double().

 Either that or finally implement GRASS_DMS_STYLE variable and temporarily
 set that to numeric degree style.



 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/654>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list