GRASS GIS 7 Programmer's Manual  7.7.svn(2018)-r73566
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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.


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.

Martin Landa <landa.martin>

Definition in file chtype.c.

Function Documentation

int Vedit_chtype_lines ( struct Map_info Map,
struct ilist List 

Change primitive type.

Supported conversions:

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

Definition at line 29 of file chtype.c.

References G_debug(), GV_BOUNDARY, GV_CENTROID, GV_LINE, GV_POINT, ilist::n_values, ilist::value, Vect_destroy_cats_struct(), Vect_destroy_line_struct(), Vect_line_alive(), Vect_new_cats_struct(), Vect_new_line_struct(), Vect_read_line(), and Vect_rewrite_line().