GRASS logo


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



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


do not reverse sort
Allow output files to overwrite existing files
Print usage summary
Verbose module output
Quiet module output
Force launching GUI dialog


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


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.


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


Moritz Lennert

Last changed: $Date: 2016-05-06 17:04:06 +0200 (Fri, 06 May 2016) $


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

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

© 2003-2018 GRASS Development Team, GRASS GIS 7.4.1svn Reference Manual