| GRASS GIS 7 Programmer's Manual
    7.9.dev(2021)-e5379bbd7
    | 
Vector library - write vector feature - simple feature access (level 2) More...
#include <grass/vector.h>#include <grass/glocale.h>#include "local_proto.h"#include "pg_local_proto.h"
Go to the source code of this file.
| Functions | |
| off_t | V2_write_line_sfa (struct Map_info *Map, int type, const struct line_pnts *points, const struct line_cats *cats) | 
| Writes feature on level 2 (OGR/PostGIS interface, pseudo-topological level)  More... | |
| off_t | V2_rewrite_line_sfa (struct Map_info *Map, off_t line, int type, const struct line_pnts *points, const struct line_cats *cats) | 
| Rewrites feature at the given offset on level 2 (OGR/PostGIS interface, pseudo-topological level)  More... | |
| int | V2_delete_line_sfa (struct Map_info *Map, off_t line) | 
| Deletes feature on level 2 (OGR/PostGIS interface)  More... | |
| off_t | V2__write_area_sfa (struct Map_info *Map, const struct line_pnts **points, int nparts, const struct line_cats *cats) | 
| Writes area on topological level (Simple Features interface, internal use only)  More... | |
Vector library - write vector feature - simple feature access (level 2)
Higher level functions for reading/writing/manipulating vectors.
See write_ogr.c (OGR interface) and write_pg.c (PostGIS interface) for imlementation issues.
SFA version of V2__delete_area_cats_from_cidx_nat()
function to delete corresponding entry in fidx
SFA version of V2__add_area_cats_to_cidx_nat
SFA version of V2__add_line_to_topo_nat
(C) 2011-2012 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_sfa.c.
| off_t V2__write_area_sfa | ( | struct Map_info * | Map, | 
| const struct line_pnts ** | points, | ||
| int | nparts, | ||
| const struct line_cats * | cats | ||
| ) | 
Writes area on topological level (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 290 of file write_sfa.c.
References _, Map_info::format, G_fatal_error(), G_warning(), GV_FORMAT_OGR, GV_FORMAT_POSTGIS, V2__write_area_ogr(), and V2__write_area_pg().
| int V2_delete_line_sfa | ( | struct Map_info * | Map, | 
| off_t | line | ||
| ) | 
Deletes feature on level 2 (OGR/PostGIS interface)
Note: Topology must be built at level >= GV_BUILD_BASE
| pointer | to Map_info structure | 
| line | feature id to be deleted | 
Definition at line 191 of file write_sfa.c.
| off_t V2_rewrite_line_sfa | ( | struct Map_info * | Map, | 
| off_t | line, | ||
| int | type, | ||
| const struct line_pnts * | points, | ||
| const struct line_cats * | cats | ||
| ) | 
Rewrites feature at the given offset on level 2 (OGR/PostGIS interface, pseudo-topological level)
Note: Topology must be built at level >= GV_BUILD_BASE
| Map | pointer to Map_info structure | 
| line | feature id to be rewritten | 
| 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 151 of file write_sfa.c.
| off_t V2_write_line_sfa | ( | struct Map_info * | Map, | 
| int | type, | ||
| const struct line_pnts * | points, | ||
| const struct line_cats * | cats | ||
| ) | 
Writes feature on level 2 (OGR/PostGIS interface, pseudo-topological level)
| Map | pointer to Map_info structure | 
| type | feature type (see V1_write_line_ogr() for list of supported types) | 
| points | pointer to line_pnts structure (feature geometry) | 
| cats | pointer to line_cats structure (feature categories) | 
Definition at line 49 of file write_sfa.c.