|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-1d1e47ad9d
|
Vector library - open vector map (native format) - level 1. More...
#include <inttypes.h>#include <unistd.h>#include <sys/types.h>#include <sys/stat.h>#include <grass/vector.h>#include <grass/glocale.h>#include "local_proto.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 (level 1) | |
| int | V1_open_new_nat (struct Map_info *Map, const char *name, int with_z) |
| Create new vector map (level 1) | |
Vector library - open vector map (native format) - level 1.
Higher level functions for reading/writing/manipulating vectors.
(C) 2001-2009 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.
Create new vector map (level 1)
| [out] | Map | pointer to Map_info structure |
| name | vector map name to be created | |
| with_z | 2D or 3D (unused?) |
Definition at line 97 of file open_nat.c.
References access, dig__byte_order_out(), dig__write_head(), dig_file_init(), dig_init_portable(), F_OK, G_debug(), G_fopen_modify(), G_fopen_new(), GPATH_MAX, GV_COOR_EARLIEST_MAJOR, GV_COOR_EARLIEST_MINOR, GV_COOR_ELEMENT, GV_COOR_VER_MAJOR, GV_COOR_VER_MINOR, GV_TOPO_ELEMENT, name, NULL, unlink, Vect__get_element_path(), and Vect__get_path().
Open existing vector map (level 1)
Map->name and Map->mapset must be set before.
| Map | pointer to Map_info structure |
| update | non-zero for write mode, otherwise read-only |
Definition at line 40 of file open_nat.c.
References _, dig__read_head(), dig_file_init(), dig_file_load(), dig_init_portable(), G_debug(), G_fopen_modify(), G_fopen_old(), G_free(), G_warning(), GPATH_MAX, GV_COOR_ELEMENT, AMI_STREAM< T >::name(), NULL, Vect__get_path(), Vect_coor_info(), and Vect_get_full_name().