26 G_warning(
"Vect_read_line() %s",
_(
"for this format/level not supported"));
30#if !defined HAVE_POSTGRES
34 G_fatal_error(
_(
"Requested format is not compiled in this version"));
41 G_fatal_error(
_(
"Requested format is not compiled in this version"));
56 {read_dummy, format, format}
85 G_debug(3,
"Vect_get_next_line()");
88 G_warning(
_(
"Vector map is not open for reading"));
92 return Map->next_line - 1;
121 G_debug(3,
"Vect_read_next_line(): next_line = %d",
Map->next_line);
124 G_warning(
_(
"Vector map is not open for reading"));
131 G_warning(
_(
"Unable to read feature %d from vector map <%s>"),
132 Map->next_line, map_name);
162 G_debug(3,
"Vect_read_line(): line = %d", line);
165 G_warning(
_(
"Vector map is not open for reading"));
170 G_warning(
_(
"Attempt to access feature with invalid id (%d)"), line);
178 G_warning(
_(
"Unable to read feature %d from vector map <%s>"), line,
204 if (
Map->plus.Line[line] !=
NULL)
228 if (
Map->plus.Node[node] !=
NULL)
252 if (
Map->plus.Area[area] !=
NULL)
301 if (
Map->plus.Line[line] !=
NULL) {
302 return Map->plus.Line[line]->offset;
void G_free(void *)
Free allocated memory.
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
void G_warning(const char *,...) __attribute__((format(printf
int G_debug(int, const char *,...) __attribute__((format(printf
int V2_read_line_nat(struct Map_info *, struct line_pnts *, struct line_cats *, int)
Read vector feature on topological level (level 2) - native format - internal use only.
int V2_read_next_line_nat(struct Map_info *, struct line_pnts *, struct line_cats *)
Read next vector feature on topological level (level 2) - native format - internal use only.
int V1_read_next_line_pg(struct Map_info *, struct line_pnts *, struct line_cats *)
Read next feature from PostGIS layer. Skip empty features (level 1 without topology)....
int V2_read_line_pg(struct Map_info *, struct line_pnts *, struct line_cats *, int)
Read feature from PostGIS layer on topological level.
int V1_read_next_line_nat(struct Map_info *, struct line_pnts *, struct line_cats *)
Read next vector feature on non-topological level (level 1) - native format - internal use only.
int V2_read_next_line_pg(struct Map_info *, struct line_pnts *, struct line_cats *)
Read next feature from PostGIS layer on topological level (simple feature access).
int V1_read_next_line_ogr(struct Map_info *, struct line_pnts *, struct line_cats *)
Read next feature from OGR layer. Skip empty features (level 1 without topology).
const char * Vect_get_full_name(struct Map_info *)
Get fully qualified name of vector map.
int V2_read_next_line_ogr(struct Map_info *, struct line_pnts *, struct line_cats *)
Read next feature from OGR layer on topological level.
int V2_read_line_sfa(struct Map_info *, struct line_pnts *, struct line_cats *, int)
Reads feature from OGR/PostGIS layer on topological level.
#define VECT_OPEN(Map)
Check if vector map is open.
#define UNUSED
A macro for an attribute, if attached to a variable, indicating that the variable is not used.
Feature geometry info - coordinates.
off_t Vect_get_line_offset(struct Map_info *Map, int line)
Get feature offset (topological level required)
int Vect_get_next_line_id(struct Map_info *Map)
Get line id for sequential reading.
int Vect_read_line(struct Map_info *Map, struct line_pnts *line_p, struct line_cats *line_c, int line)
Read vector feature (topological level required)
int Vect_area_alive(struct Map_info *Map, int area)
Check if area is alive or dead (topological level required)
int Vect_node_alive(struct Map_info *Map, int node)
Check if node is alive or dead (topological level required)
int Vect_isle_alive(struct Map_info *Map, int isle)
Check if isle is alive or dead (topological level required)
int Vect_line_alive(struct Map_info *Map, int line)
Check if feature is alive or dead (topological level required)
int Vect_read_next_line(struct Map_info *Map, struct line_pnts *line_p, struct line_cats *line_c)
Read next vector feature.