46 G_debug(4,
"V2_read_line_sfa() line = %d", line);
49 G_warning(
_(
"Attempt to access feature with invalid id (%d)"), line);
53 Line =
Map->plus.Line[line];
55 G_warning(
_(
"Attempt to access dead feature %d"), line);
70 if (topo->
area > 0 && topo->
area <=
Map->plus.n_areas) {
78 for (i = 0; i <
list.n_values; i++) {
79 if (
list.id[i] == line) {
91 _(
"Unable to construct centroid for area %d. Skipped."),
117 if (type != Line->
type) {
118 G_warning(
_(
"Unexpected feature type (%d) - should be (%d)"), type,
void G_warning(const char *,...) __attribute__((format(printf
int G_debug(int, const char *,...) __attribute__((format(printf
int Vect_reset_cats(struct line_cats *)
Reset category structure to make sure cats structure is clean to be re-used.
int Vect_cat_set(struct line_cats *, int, int)
Add new field/cat to category structure if doesn't exist yet.
int V1_read_line_ogr(struct Map_info *, struct line_pnts *, struct line_cats *, off_t)
Read feature from OGR layer at given offset (level 1 without topology)
int Vect_get_area_box(struct Map_info *, int, struct bound_box *)
Get bounding box of area.
int Vect_select_lines_by_box(struct Map_info *, const struct bound_box *, int, struct boxlist *)
Select lines with bounding boxes by box.
void Vect_reset_line(struct line_pnts *)
Reset line.
int V1_read_line_pg(struct Map_info *, struct line_pnts *, struct line_cats *, off_t)
Read feature from PostGIS layer at given offset (level 1 without topology)
int Vect_append_point(struct line_pnts *, double, double, double)
Appends one point to the end of a line.
#define GV_FORMAT_POSTGIS
PostGIS format.
int dig_init_boxlist(struct boxlist *, int)
int V2_read_line_sfa(struct Map_info *Map, struct line_pnts *line_p, struct line_cats *line_c, int line)
Reads feature from OGR/PostGIS layer on topological level.
off_t offset
Offset in coor file for line.
void * topo
Topology info.
plus_t area
Area number, negative for duplicate centroid.
List of bounding boxes with id.
Feature geometry info - coordinates.