GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
area_pg.c File Reference

Vector library - area-related functions (PostGIS Topology) More...

#include <grass/vector.h>
#include "pg_local_proto.h"
Include dependency graph for area_pg.c:

Go to the source code of this file.

Functions

int Vect__get_area_points_pg (const struct Map_info *Map, const plus_t *lines, int n_lines, struct line_pnts *APoints)
 Get area boundary points (PostGIS Topology) More...
 

Detailed Description

Vector library - area-related functions (PostGIS Topology)

Higher level functions for reading/writing/manipulating vectors.

(C) 2013 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.

Author
Martin Landa <landa.martin gmail.com>

Definition in file area_pg.c.

Function Documentation

◆ Vect__get_area_points_pg()

int Vect__get_area_points_pg ( const struct Map_info Map,
const plus_t lines,
int  n_lines,
struct line_pnts APoints 
)

Get area boundary points (PostGIS Topology)

Used by Vect_build_line_area() and Vect_get_area_points().

Parameters
Mappointer to Map_info struct
linesarray of boundary lines
n_linesnumber of lines in array
[out]APointspointer to output line_pnts struct
Returns
number of points
-1 on error

Definition at line 36 of file area_pg.c.

References Map_info::fInfo, Format_info::pg, Format_info_pg::res, and Vect_reset_line().

Referenced by Vect__get_area_points(), and Vect_get_isle_points().