[GRASS-dev] Vect_get_proj_name() question

Markus Neteler neteler at itc.it
Wed May 30 03:21:13 EDT 2007


On Wed, May 30, 2007 at 08:24:56AM +0200, grass at intevation.de wrote:
> Author: hamish
> 
> Update of /grassrepository/grass6/vector/v.info
> In directory doto:/tmp/cvs-serv1706
> 
> Modified Files:
> 	main.c 
> Log Message:
> try for some formatting improvements. Could probably still use some more.
> I notice that Vect_get_proj_name() and _zone() are typically unset?!

this is probably a question for Paul:

lib/vector/Vlib/header.c

char *Vect_get_proj_name (struct Map_info *Map)
{
    int n;
    static char name[256];
    char *G__projection_name();

    switch(n=Vect_get_proj(Map))
    {
    case PROJECTION_XY:
    case PROJECTION_UTM:
    case PROJECTION_LL:
    case PROJECTION_SP:
        return G__projection_name(n);
    }
    if(!lookup (PROJECTION_FILE, "name", name, sizeof(name)))
        strcpy (name, _("Unknown projection"));
    return name;
}

Should this be improved?

Markus




More information about the grass-dev mailing list