GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d37ee165c
chtype.c File Reference

Vedit library - change primitives type. More...

#include <grass/vedit.h>
Include dependency graph for chtype.c:

Go to the source code of this file.

Functions

int Vedit_chtype_lines (struct Map_info *Map, struct ilist *List)
 Change primitive type. More...
 

Detailed Description

Vedit library - change primitives type.

(C) 2008 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 chtype.c.

Function Documentation

◆ Vedit_chtype_lines()

int Vedit_chtype_lines ( struct Map_info Map,
struct ilist List 
)

Change primitive type.

Supported conversions:

  • point <-> centroid
  • line <-> boundary
Parameters
Mappointer to Map_info
Listlist of selected primitives
Returns
number of modified primitives
-1 on error

Definition at line 29 of file chtype.c.