Vector library - open vector map (native format). More...
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <grass/Vect.h>
#include <grass/gis.h>
#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
int | V1_open_old_nat (struct Map_info *Map, int update) |
Open existing vector map. | |
int | V1_open_new_nat (struct Map_info *Map, const char *name, int with_z) |
Open/Create new vector map. |
Vector library - open vector map (native format).
Higher level functions for reading/writing/manipulating vectors.
(C) 2001-2008 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file open_nat.c.
int V1_open_new_nat | ( | struct Map_info * | Map, | |
const char * | name, | |||
int | with_z | |||
) |
Open/Create new vector map.
Map | pointer to vector map | |
name | map name | |
with_z | 2D or 3D (unused?) |
Definition at line 86 of file open_nat.c.
References dig__byte_order_out(), dig__write_head(), dig_file_init(), dig_init_portable(), and Vect__write_head().
Referenced by Vect_open_new().
int V1_open_old_nat | ( | struct Map_info * | Map, | |
int | update | |||
) |
Open existing vector map.
Map->name and Map->mapset must be set before.
Map | poiter to vector map | |
update | non-zero for write mode, otherwise read-only |
Definition at line 43 of file open_nat.c.
References dig__read_head(), dig_file_init(), dig_file_load(), and dig_init_portable().