GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
open_ogr.c File Reference

Vector library - open vector map (OGR format) More...

#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <grass/Vect.h>
#include <grass/gis.h>
#include <grass/glocale.h>
#include <ogr_api.h>
Include dependency graph for open_ogr.c:

Go to the source code of this file.

Functions

int V1_open_old_ogr (struct Map_info *Map, int update)
 Open existing vector map. More...
 
int V2_open_old_ogr (struct Map_info *Map)
 Open OGR specific level 2 files (feature index) More...
 

Detailed Description

Vector library - open vector map (OGR 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_ogr.c.

Function Documentation

int V1_open_old_ogr ( struct Map_info *  Map,
int  update 
)

Open existing vector map.

Map->name and Map->mapset must be set before.

Parameters
Mappointer to vector map
updatenon-zero for write mode, otherwise read-only (write mode is currently not supported)
Returns
0 success
-1 error

Definition at line 45 of file open_ogr.c.

References FALSE, G_debug(), G_fatal_error(), and NULL.

int V2_open_old_ogr ( struct Map_info *  Map)

Open OGR specific level 2 files (feature index)

Parameters
Mappointer to vector map
Returns
0 success
-1 error

Definition at line 124 of file open_ogr.c.

References buf, dig__fread_port_C(), dig__fread_port_I(), dig__fread_port_L(), dig_file_init(), dig_init_portable(), dig_set_cur_port(), fclose(), G_debug(), G_fatal_error(), G_fopen_old(), G_warning(), NULL, and sprintf().

Referenced by Vect__open_old().