GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
vector/vedit/select.c File Reference

Vedit library - select primitives by query. More...

#include <math.h>
#include <grass/glocale.h>
#include <grass/vedit.h>
Include dependency graph for vector/vedit/select.c:

Go to the source code of this file.

Functions

int Vedit_select_by_query (struct Map_info *Map, int type, int layer, double thresh, int query, struct ilist *List)
 Select primitives by query (based on geometry properties) More...
 

Detailed Description

Vedit library - select primitives by query.

(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.

Author
Martin Landa <landa.martin gmail.com>

Definition in file vector/vedit/select.c.

Function Documentation

◆ Vedit_select_by_query()

int Vedit_select_by_query ( struct Map_info Map,
int  type,
int  layer,
double  thresh,
int  query,
struct ilist List 
)

Select primitives by query (based on geometry properties)

Currently supported:

  • QUERY_LENGTH, select all lines longer than threshold (or shorter if threshold is < 0)
  • QUERY_DANGLE, select all dangles longer than threshold (or shorter if threshold is < 0)

Perform global query if List is empty otherwise query only selected vector objects.

Parameters
Mappointer to Map_info
typefeature type
layerlayer number
threshthreshold value (< 0 for 'shorter', > 0 for 'longer')
queryquery (length, dangle, ...)
[in,out]Listlist of selected features
Returns
number of selected primitives

Definition at line 42 of file vector/vedit/select.c.