level.c

Go to the documentation of this file.
00001 /*
00002 ****************************************************************************
00003 *
00004 * MODULE:       Vector library 
00005 *               
00006 * AUTHOR(S):    Original author CERL, probably Dave Gerdes or Mike Higgins.
00007 *               Update to GRASS 5.7 Radim Blazek and David D. Gray.
00008 *
00009 * PURPOSE:      Higher level functions for reading/writing/manipulating vectors.
00010 *
00011 * COPYRIGHT:    (C) 2001 by the GRASS Development Team
00012 *
00013 *               This program is free software under the GNU General Public
00014 *               License (>=v2). Read the file COPYING that comes with GRASS
00015 *               for details.
00016 *
00017 *****************************************************************************/
00018 #include <grass/Vect.h>
00019 
00026 int
00027 Vect_level (struct Map_info *Map)
00028 {
00029   if (Map->open != VECT_OPEN_CODE)
00030     {
00031       if (Map->open != VECT_CLOSED_CODE)
00032         fprintf (stderr, "VECT_LEVEL: Map structure was never initialized\n");
00033       else
00034         fprintf (stderr, "VECT_LEVEL: Map structure has been closed\n");
00035       return (-1);
00036     }
00037   return (Map->level);
00038 }

Generated on Sun Apr 6 17:32:44 2008 for GRASS by  doxygen 1.5.5