|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-ddeab64dbf
|
Vector library - reading data (OGR format) More...

Go to the source code of this file.
Functions | |
| int | V1_read_next_line_ogr (struct Map_info *Map, struct line_pnts *line_p, struct line_cats *line_c) |
| Read next feature from OGR layer. Skip empty features (level 1 without topology). | |
| int | V2_read_next_line_ogr (struct Map_info *Map, struct line_pnts *line_p, struct line_cats *line_c) |
| Read next feature from OGR layer on topological level. | |
| int | V1_read_line_ogr (struct Map_info *Map, struct line_pnts *line_p, struct line_cats *line_c, off_t offset) |
| Read feature from OGR layer at given offset (level 1 without topology) | |
Vector library - reading data (OGR format)
Higher level functions for reading/writing/manipulating vectors.
(C) 2001-2011 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 read_ogr.c.
| int V1_read_line_ogr | ( | struct Map_info * | Map, |
| struct line_pnts * | line_p, | ||
| struct line_cats * | line_c, | ||
| off_t | offset | ||
| ) |
Read feature from OGR layer at given offset (level 1 without topology)
This function implements random access on level 1.
| Map | pointer to Map_info structure | |
| [out] | line_p | container used to store line points within (pointer line_pnts struct) |
| [out] | line_c | container used to store line categories within (pointer line_cats struct) |
| offset | given offset |
Definition at line 167 of file read_ogr.c.
References _, G_debug(), G_warning(), NULL, Format_info_ogr::offset, Vect_cat_set(), Vect_reset_cats(), and Vect_reset_line().
Referenced by V1_rewrite_line_ogr(), and V2_read_line_sfa().
| int V1_read_next_line_ogr | ( | struct Map_info * | Map, |
| struct line_pnts * | line_p, | ||
| struct line_cats * | line_c | ||
| ) |
Read next feature from OGR layer. Skip empty features (level 1 without topology).
This function implements sequential access.
The action of this routine can be modified by:
| Map | pointer to Map_info structure | |
| [out] | line_p | container used to store line points within |
| [out] | line_c | container used to store line categories within |
Definition at line 47 of file read_ogr.c.
References FALSE.
| int V2_read_next_line_ogr | ( | struct Map_info * | Map, |
| struct line_pnts * | line_p, | ||
| struct line_cats * | line_c | ||
| ) |
Read next feature from OGR layer on topological level.
This function implements sequential access.
| Map | pointer to Map_info structure | |
| [out] | line_p | container used to store line points within (pointer to line_pnts struct) |
| [out] | line_c | container used to store line categories within (pointer to line_cats struct) |
Definition at line 68 of file read_ogr.c.
References P_topo_c::area, dig_init_boxlist(), G_debug(), GV_CENTROID, NULL, P_line::offset, P_line::topo, TRUE, P_line::type, Vect_append_point(), Vect_box_overlap(), Vect_cat_set(), Vect_get_area_box(), Vect_get_constraint_box(), Vect_line_box(), Vect_reset_cats(), Vect_reset_line(), and Vect_select_lines_by_box().