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


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-2024 GRASS Development Team, GRASS GIS 8.3.3dev Reference Manual