19#include "pg_local_proto.h"
54 for (i = 0; i < n_lines; i++) {
75 char *stmt, *
stmt_id, buf_id[128];
86 for (i = 0; i < n_lines; i++) {
104 "SELECT geom FROM \"%s\".edge_data AS t "
105 "JOIN (SELECT id, row_number() over() AS id_sorter FROM "
106 "(SELECT UNNEST(ARRAY[%s]) AS id) AS y) x ON "
107 "t.edge_id in (%s) AND x.id = t.edge_id "
108 "ORDER BY x.id_sorter",
int Vect__get_area_points_pg(struct Map_info *Map, const plus_t *lines, int n_lines, struct line_pnts *APoints)
Get area boundary points (PostGIS Topology)
void G_free(void *)
Free allocated memory.
int G_asprintf(char **, const char *,...) __attribute__((format(printf
int G_debug(int, const char *,...) __attribute__((format(printf
void Vect_reset_line(struct line_pnts *)
Reset line.
int Vect_append_points(struct line_pnts *, const struct line_pnts *, int)
Appends points to the end of a line.
#define GV_FORWARD
Line direction indicator forward/backward.
SF_FeatureType Vect__cache_feature_pg(const char *data, int skip_polygon, int force_type, struct Format_info_cache *cache, struct feat_parts *fparts)
Read geometry from HEX data.
Basic topology-related info.
struct P_line ** Line
Array of vector geometries.
Feature geometry info - coordinates.