[GRASS-dev] Re: [GRASS-windows] Problems with Mapcanvas

Hamish hamish_nospam at yahoo.com
Tue Nov 20 20:15:48 EST 2007


> Doug_Newcomb wrote:
> > Contents of PERMANENT/PROJ_INFO file:
> > 
> > name: Lambert Conformal Conic
> > proj: lcc
> > datum: nad83
> > ellps: grs80
> > lat_1: 36.16666666666666
> > lat_2: 34.33333333333334
> > lat_0: 33.75
> > lon_0: -79
> > x_0: 609601.22
> > y_0: 0
> > no_defs: defined
> > towgs84: 0.000,0.000,0.000

Glynn:
> That doesn't tell me the one thing I really need to know: whether
> there are CR characters in the file.
> 
> Try "od -t x1z PROJ_INFO"; look for any occurrences of "0d" in the
> output.



perhaps this patch helps:

Index: lib/gis/key_value2.c
===================================================================
RCS file: /home/grass/grassrepository/grass6/lib/gis/key_value2.c,v
retrieving revision 2.3
diff -u -r2.3 key_value2.c
--- lib/gis/key_value2.c        14 Apr 2007 23:01:59 -0000      2.3
+++ lib/gis/key_value2.c        21 Nov 2007 01:11:54 -0000
@@ -32,7 +32,7 @@
     kv = G_create_key_value();
     if (kv == NULL)
        return NULL;
-    while (G_getl(buf, sizeof buf, fd) != 0)
+    while (G_getl2(buf, sizeof buf, fd) != 0)
     {
        key = value = buf;
        while (*value && *value != ':')




also, should that be using "(buf, sizeof(buf)-1, fd" ?


Hamish



      ____________________________________________________________________________________
Be a better sports nut!  Let your teams follow you 
with Yahoo Mobile. Try it now.  http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ


More information about the grass-dev mailing list