GRASS Programmer's Manual  6.4.1(2011)
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.
int V2_open_old_ogr (struct Map_info *Map)
 Open OGR specific level 2 files (feature index)

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.

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 114 of file open_ogr.c.

References dig__fread_port_C(), dig__fread_port_I(), dig__fread_port_L(), dig_file_init(), dig_init_portable(), and dig_set_cur_port().

Referenced by Vect__open_old().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines