GRASS logo

NAME

v.sort.points - Sorts a vector point map according to a numeric column

KEYWORDS

SYNOPSIS

v.sort.points
v.sort.points --help
v.sort.points [-r] input=name layer=string output=name column=name [--overwrite] [--help] [--verbose] [--quiet] [--ui]

Flags:

-r
do not reverse sort
--overwrite
Allow output files to overwrite existing files
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog

Parameters:

input=name [required]
Name of input vector map
Or data source for direct OGR access
layer=string [required]
Layer number or name
Vector features can have category values in different layers. This number determines which layer to use. When used with direct OGR access this is the layer name.
Default: 1
output=name [required]
Name for output vector map
column=name [required]
Name of attribute column used for sorting

Table of contents

DESCRIPTION

v.sort.points takes an input point vector map, sorts the points by the values in the sort column and then writes the result to the output map.

This is useful to display symbols in sizes proportionate to that same column without having big symbols hide small symbols.

By setting the r flag, the user can also chose to reverse the sorting order putting points with the highest value in front.

EXAMPLE

d.vect -r map=schools_wake@PERMANENT type=point,line,boundary,area,face width=1 icon=basic/circle size=1 size_column=CAPACITYTO
v.sort.points input=schools_wake output=sorted_schools column=CAPACITYTO
d.vect -r map=sorted_schools@user1 type=point,line,boundary,area,face width=1 icon=basic/circle size=1 size_column=CAPACITYTO

AUTHOR

Moritz Lennert

SOURCE CODE

Available at: v.sort.points source code (history)

Latest change: Monday Jan 30 19:52:26 2023 in commit: cac8d9d848299297977d1315b7e90cc3f7698730


Main index | Vector index | Topics index | Keywords index | Graphical index | Full index

© 2003-2023 GRASS Development Team, GRASS GIS 8.3.dev Reference Manual