GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-d6dec75dd4
|
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) More... | |
int | V1_open_new_nat (struct Map_info *Map, const char *name, int with_z) |
Create new vector map (level 1) More... | |
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.
int V1_open_new_nat | ( | struct Map_info * | Map, |
const char * | name, | ||
int | with_z | ||
) |
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 96 of file open_nat.c.
References Version_info::back_major, Version_info::back_minor, dig_head::coor_version, dig__byte_order_out(), dig__write_head(), dig_file_init(), Map_info::dig_fp, dig_init_portable(), gvfile::file, 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, Map_info::head, Version_info::major, Version_info::minor, name, NULL, dig_head::port, Map_info::temporary, Vect__get_element_path(), and Vect__get_path().
int V1_open_old_nat | ( | struct Map_info * | Map, |
int | update | ||
) |
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(), Map_info::dig_fp, gvfile::file, G_debug(), G_fopen_modify(), G_fopen_old(), G_warning(), GPATH_MAX, GV_COOR_ELEMENT, Map_info::head, Map_info::mapset, Map_info::name, NULL, dig_head::size, Coor_info::size, Vect__get_path(), Vect_coor_info(), and Vect_get_full_name().