GRASS Programmer's Manual  6.4.2(2012)
level.c
Go to the documentation of this file.
00001 
00019 #include <grass/Vect.h>
00020 #include <grass/glocale.h>
00021 
00033 int Vect_level(struct Map_info *Map)
00034 {
00035     if (Map->open != VECT_OPEN_CODE) {
00036         if (Map->open != VECT_CLOSED_CODE)
00037             G_warning("Vect_level(): %s",
00038                       _("Map structure was never initialized"));
00039         else
00040             G_warning("Vect_level(): %s", _("Map structure has been closed"));
00041         return (-1);
00042     }
00043     return (Map->level);
00044 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines