open_nat.c File Reference

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>
Include dependency graph for open_nat.c:

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.

Detailed Description

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.

Author:
Original author CERL, probably Dave Gerdes or Mike Higgins. Update to GRASS 5.7 Radim Blazek and David D. Gray.
Date:
2001

Definition in file open_nat.c.


Function Documentation

int V1_open_new_nat ( struct Map_info *  Map,
const char *  name,
int  with_z 
)

Open/Create new vector map.

Parameters:
Map pointer to vector map
name map name
with_z 2D or 3D (unused?)
Returns:
0 success
-1 error

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.

Parameters:
Map poiter to vector map
update non-zero for write mode, otherwise read-only
Returns:
0 success
-1 error

Definition at line 43 of file open_nat.c.

References dig__read_head(), dig_file_init(), dig_file_load(), and dig_init_portable().

Generated on Tue Apr 6 13:28:17 2010 for GRASS Programmer's Manual by  doxygen 1.6.3