grass  7.8.6
About: GRASS (Geographic Resources Analysis Support System) is a raster- and vector-based GIS, image processing system, graphics production system and spatial modeling system.
  Fossies Dox: grass-7.8.6.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

move.c File Reference

Vedit library - move primitives. More...

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

Go to the source code of this file.


int Vedit_move_lines (struct Map_info *Map, struct Map_info **BgMap, int nbgmaps, struct ilist *List, double move_x, double move_y, double move_z, int snap, double thresh)
 Move selected primitives. More...

Detailed Description

Vedit library - move primitives.

(C) 2007-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>
Jachym Cepicky <jachym.cepicky>

Definition in file move.c.

Function Documentation

◆ Vedit_move_lines()

int Vedit_move_lines ( struct Map_info Map,
struct Map_info **  BgMap,
int  nbgmaps,
struct ilist List,
double  move_x,
double  move_y,
double  move_z,
int  snap,
double  thresh 

Move selected primitives.

Mappointer to Map_info
BgMap,nbgmapslist of background vector maps used for snapping
Listlist of primitives to be moved
move_x,move_y,move_zdirection (move_z used only if map is 3D)
snapenable snapping (see globals.h)
number of modified primitives
-1 on error

Definition at line 29 of file move.c.

References G_debug(), line(), line_pnts::n_points, ilist::n_values, NO_SNAP, Points, SNAPVERTEX, type, ilist::value, Vect_destroy_cats_struct(), Vect_destroy_line_struct(), Vect_is_3d(), Vect_line_alive(), Vect_new_cats_struct(), Vect_new_line_struct(), Vect_read_line(), Vect_rewrite_line(), Vedit_snap_point(), line_pnts::x, x, line_pnts::y, and line_pnts::z.