|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-ddeab64dbf
|
Vector library - GEOS support. More...

Go to the source code of this file.
Functions | |
| GEOSGeometry * | Vect_read_line_geos (struct Map_info *Map, int line, int *type) |
| Read vector feature and stores it as GEOSGeometry instance. | |
| GEOSGeometry * | Vect_read_area_geos (struct Map_info *Map, int area) |
| Read vector area and stores it as GEOSGeometry instance (polygon) | |
| GEOSGeometry * | Vect_line_to_geos (const struct line_pnts *points, int type, int with_z) |
| Create GEOSGeometry of given type from feature points. | |
| GEOSCoordSequence * | Vect_get_area_points_geos (struct Map_info *Map, int area) |
| Returns the polygon array of points, i.e. outer ring (shell) | |
| GEOSCoordSequence * | Vect_get_isle_points_geos (struct Map_info *Map, int isle) |
| Returns the polygon (isle) array of points (inner ring) | |
Vector library - GEOS support.
Higher level functions for reading/writing/manipulating vectors.
(C) 2009 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.
Definition in file geos.c.
| GEOSCoordSequence * Vect_get_area_points_geos | ( | struct Map_info * | Map, |
| int | area | ||
| ) |
Returns the polygon array of points, i.e. outer ring (shell)
You should free allocated memory by GEOSCoordSeq_destroy().
See also Vect_get_area_points().
| Map | pointer to Map_info |
| area | area id |
Definition at line 411 of file geos.c.
References _, G_debug(), G_warning(), P_area::lines, P_area::n_lines, and NULL.
Referenced by Vect_read_area_geos().
| GEOSCoordSequence * Vect_get_isle_points_geos | ( | struct Map_info * | Map, |
| int | isle | ||
| ) |
Returns the polygon (isle) array of points (inner ring)
You should free allocated memory by GEOSCoordSeq_destroy().
See also Vect_get_isle_points().
| Map | pointer to Map_info |
| isle | isel id |
Definition at line 442 of file geos.c.
References G_debug(), P_isle::lines, and P_isle::n_lines.
Referenced by Vect_read_area_geos().
Create GEOSGeometry of given type from feature points.
Supported types:
You should free allocated memory by GEOSGeom_destroy().
| points | pointer to line_pnts structure |
| type | feature type (see supported types) |
| with_z | Set to 1 if the feature is 3d, 0 otherwise |
Definition at line 137 of file geos.c.
References G_debug(), GV_CENTROID, GV_LINE, GV_LINES, GV_POINT, line_pnts::n_points, NULL, P_line::type, line_pnts::x, line_pnts::y, and line_pnts::z.
Referenced by Vect_line_to_wkb(), Vect_line_to_wkt2(), and Vect_read_line_to_wkb().
| GEOSGeometry * Vect_read_area_geos | ( | struct Map_info * | Map, |
| int | area | ||
| ) |
Read vector area and stores it as GEOSGeometry instance (polygon)
You should free allocated memory by GEOSGeom_destroy().
| Map | pointer to Map_info structure |
| area | area id |
Definition at line 84 of file geos.c.
References _, G_debug(), G_fatal_error(), G_free(), G_malloc, Vect_get_area_isle(), Vect_get_area_num_isles(), Vect_get_area_points_geos(), and Vect_get_isle_points_geos().
Referenced by Vect_read_area_to_wkb(), and Vect_read_area_to_wkt2().
| GEOSGeometry * Vect_read_line_geos | ( | struct Map_info * | Map, |
| int | line, | ||
| int * | type | ||
| ) |
Read vector feature and stores it as GEOSGeometry instance.
Supported feature types:
You should free allocated memory by GEOSGeom_destroy().
| Map | pointer to Map_info structure | |
| line | feature id | |
| [out] | type | feature type or NULL |
Definition at line 45 of file geos.c.
References _, G_debug(), G_fatal_error(), GV_FORMAT_NATIVE, NULL, P_line::offset, P_line::type, Vect_get_full_name(), and VECT_OPEN.