GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
|
Vector library - write vector feature (OGR format) More...
#include <grass/vector.h>
#include <grass/dbmi.h>
#include <grass/gprojects.h>
#include <grass/glocale.h>
#include <ogr_api.h>
#include <cpl_string.h>
Go to the source code of this file.
Functions | |
off_t | V1_write_line_ogr (struct Map_info *Map, int type, const struct line_pnts *points, const struct line_cats *cats) |
Writes feature on level 1 (OGR interface) More... | |
off_t | V1_rewrite_line_ogr (struct Map_info *Map, off_t offset, int type, const struct line_pnts *points, const struct line_cats *cats) |
Rewrites feature at the given offset on level 1 (OGR interface) More... | |
int | V1_delete_line_ogr (struct Map_info *Map, off_t offset) |
Deletes feature at the given offset on level 1 (OGR interface) More... | |
off_t | V2__write_area_ogr (struct Map_info *Map, const struct line_pnts **points, int nparts, const struct line_cats *cats) |
Writes area on topological level (OGR Simple Features interface, internal use only) More... | |
Vector library - write vector feature (OGR format)
Higher level functions for reading/writing/manipulating vectors.
Partly inspired by v.out.ogr's code.
(C) 2009-2013 by Martin Landa, and 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 write_ogr.c.
int V1_delete_line_ogr | ( | struct Map_info * | Map, |
off_t | offset | ||
) |
Deletes feature at the given offset on level 1 (OGR interface)
Map | pointer Map_info structure |
offset | offset of feature to be deleted |
Definition at line 119 of file write_ogr.c.
References _, Format_info_offset::array, Format_info_offset::array_num, Map_info::fInfo, G_debug(), G_fatal_error(), G_warning(), Format_info_ogr::layer, Format_info_ogr::offset, Format_info::ogr, and PRI_OFF_T.
off_t V1_rewrite_line_ogr | ( | struct Map_info * | Map, |
off_t | offset, | ||
int | type, | ||
const struct line_pnts * | points, | ||
const struct line_cats * | cats | ||
) |
Rewrites feature at the given offset on level 1 (OGR interface)
This function simply calls V1_delete_line_ogr() and V1_write_line_ogr().
Map | pointer to Map_info structure |
offset | feature offset |
type | feature type (see V1_write_line_ogr() for supported types) |
points | pointer to line_pnts structure (feature geometry) |
cats | pointer to line_cats structure (feature categories) |
Definition at line 88 of file write_ogr.c.
off_t V1_write_line_ogr | ( | struct Map_info * | Map, |
int | type, | ||
const struct line_pnts * | points, | ||
const struct line_cats * | cats | ||
) |
Writes feature on level 1 (OGR interface)
Note:
Supported feature types:
Map | pointer to Map_info structure |
type | feature type |
points | pointer to line_pnts structure (feature geometry) |
cats | pointer to line_cats structure (feature categories) |
Definition at line 62 of file write_ogr.c.
off_t V2__write_area_ogr | ( | struct Map_info * | Map, |
const struct line_pnts ** | points, | ||
int | nparts, | ||
const struct line_cats * | cats | ||
) |
Writes area on topological level (OGR Simple Features interface, internal use only)
Map | pointer to Map_info structure |
points | feature geometry (exterior + interior rings) |
nparts | number of parts including exterior ring |
cats | feature categories |
Definition at line 164 of file write_ogr.c.
Referenced by V2__write_area_sfa().