GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
Vector library - Building topology for OGR. More...
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <grass/vector.h>
#include <grass/glocale.h>
#include <ogr_api.h>
#include <cpl_error.h>
#include "local_proto.h"
Go to the source code of this file.
Functions | |
int | Vect_build_ogr (struct Map_info *Map, int build) |
Build pseudo-topology (simple features) for OGR layer. More... | |
int | Vect_save_fidx (struct Map_info *Map, struct Format_info_offset *offset) |
Save feature index file for vector map. More... | |
Vector library - Building topology for OGR.
Higher level functions for reading/writing/manipulating vectors.
Category: FID, not all layer have FID, OGRNullFID is defined (5/2004) as -1, so FID should be only >= 0
(C) 2001-2010, 2012 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 build_ogr.c.
int Vect_build_ogr | ( | struct Map_info * | Map, |
int | build | ||
) |
Build pseudo-topology (simple features) for OGR layer.
Build levels:
Map | pointer to Map_info structure |
build | build level |
Definition at line 49 of file build_ogr.c.
References _, Format_info_offset::array, Plus_head::built, Format_info_ogr::ds, Format_info_ogr::dsn, Map_info::fInfo, G_debug(), G_fatal_error(), G_free(), G_message(), G_warning(), G_zero(), GV_BUILD_BASE, GV_BUILD_NONE, Format_info_ogr::layer, Format_info_ogr::layer_name, Format_info_ogr::offset, Format_info::ogr, Map_info::plus, Vect__build_sfa(), Vect_get_finfo_format_info(), and Vect_get_finfo_geometry_type().
int Vect_save_fidx | ( | struct Map_info * | Map, |
struct Format_info_offset * | offset | ||
) |
Save feature index file for vector map.
Map | pointer to Map_info structure |
offset | pointer to Format_info_offset struct (see Format_info_ogr and Format_info_pg struct for implementation issues) |
Definition at line 116 of file build_ogr.c.
References _, Format_info_offset::array, Format_info_offset::array_num, Plus_head::built, dig__byte_order_out(), dig__fwrite_port_C(), dig__fwrite_port_I(), dig__fwrite_port_L(), dig_file_init(), dig_init_portable(), dig_set_cur_port(), FALSE, gvfile::file, G_debug(), G_fatal_error(), G_mapset(), G_warning(), GPATH_MAX, GV_BUILD_ALL, GV_DIRECTORY, GV_FIDX_ELEMENT, Map_info::mapset, Map_info::name, NULL, Map_info::plus, Map_info::support_updated, and Vect__get_element_path().
Referenced by V2_close_ogr(), and V2_close_pg().