17#include "pg_local_proto.h"
52 for (i = 0; i < n_lines; i++) {
73 char *stmt, *
stmt_id, buf_id[128];
84 for (i = 0; i < n_lines; i++) {
102 "SELECT geom FROM \"%s\".edge_data AS t "
103 "JOIN (SELECT id, row_number() over() AS id_sorter FROM "
104 "(SELECT UNNEST(ARRAY[%s]) AS id) AS y) x ON "
105 "t.edge_id in (%s) AND x.id = t.edge_id "
106 "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.