GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-8f83c24630
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 (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 ( 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 37 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().