[GRASS-dev] Re: [GRASS GIS] #965: Location wizard: doesn't create MYNAME

GRASS GIS trac at osgeo.org
Wed Dec 29 08:45:41 EST 2010


#965: Location wizard: doesn't create MYNAME
---------------------+------------------------------------------------------
  Reporter:  hamish  |       Owner:  martinl            
      Type:  defect  |      Status:  reopened           
  Priority:  normal  |   Milestone:  6.4.1              
 Component:  wxGUI   |     Version:  svn-releasebranch64
Resolution:          |    Keywords:  location wizard    
  Platform:  All     |         Cpu:  All                
---------------------+------------------------------------------------------

Comment(by martinl):

 Replying to [comment:4 hamish]:
 > perhaps wrongly applied, but G_myname() is using GNAME_MAX for the max
 length (256 chars in gis.h) of the description.

 yes, GNAME_MAX could be replaced by GPATH_MAX (or new GTITLE_MAX) to
 enlarge the buffer.

 > So besides having the newlines removed it should be cut at char 255-1
 for the null terminator(?).

 see changes in location wizard r44754

 > Or better: can python access the #defined values in the C include files
 directly as swig could?

 Could be accessed using ctypes. Currently wxGUI is not using ctypes
 (except of 3D view mode).

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/965#comment:7>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list