OnWorks favicon

d.vect.thematicgrass - Online in the Cloud

Run d.vect.thematicgrass in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command d.vect.thematicgrass that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



d.vect.thematic - Displays a thematic vector map in the active graphics frame.


display, cartography, choropleth map, legend


d.vect.thematic --help
d.vect.thematic [-len] map=name [layer=string] column=name [breaks=string[,string,...]]
[algorithm=string] [nclasses=integer] colors=string[,string,...] [where=sql_query]
[boundary_width=integer] [boundary_color=name] [legendfile=name] [--overwrite]
[--help] [--verbose] [--quiet] [--ui]

Create legend information and send to stdout

When printing legend info, include extended statistical info from classification

Do not draw map, only output the legend

Allow output files to overwrite existing files

Print usage summary

Verbose module output

Quiet module output

Force launching GUI dialog

map=name [required]
Name of vector map
Or data source for direct OGR access

Layer number or name
Layer number. If -1, all layers are displayed.
Default: 1

column=name [required]
Name of attribute column to be classified

Class breaks, without minimum and maximum

Algorithm to use for classification
Options: int, std, qua, equ, dis
int: simple intervals
std: standard deviations
qua: quantiles
equ: equiprobable (normal distribution)

Number of classes to define

colors=string[,string,...] [required]
Colors (one per class)

WHERE conditions of SQL statement without ’where’ keyword
Example: income < 1000 and inhab >= 10000

Boundary width
Default: 0

Boundary color
Either a standard color name or R:G:B triplet
Default: black

File in which to save d.graph instructions for legend display


d.vect.thematic draws thematic choropleth vector maps based on an attribute column or an
expression involving several columns. It takes a list of class breaks (excluding the
minimum and maximum values) and a list of colors to apply to the classes (has to be the
number of class breaks + 1).

Instead of a list of class breaks, the user can also chose a classification algorithm and
a number of classes (nbclasses). See the v.class for more information on these different

Important note: The module currently supports only area vector type. For displaying
thematic choropleth vector maps of other types (points, lines) can be used
d.vect.thematic2 available in AddOns via g.extension.


The -l flag instructs the module to print legend information (class min | class max |
number of observations in class | color) to standard output for futher use in graphical
software. When combined with the -e flag, the legend information will be extended with
some additional statistical information. If the -n flag is set, the module will only print
the legend information without drawing the map. If the user gives a legendfile, the module
will write d.graph instructions for painting a legend into that file.


Thematic map with classes
d.vect.thematic -l map=communes3 column=pop \
breaks=111393.250000,222785.500000,334177.750000 \

Thematic map with calculated class breaks
The following example uses a calculated attribute (density = pop/area) and the standard
deviation algorithm to calculate class breaks for 5 classes:
d.vect.thematic -l map=communes2 column=pop/area algorithm=std \
nbclasses=5 colors="0:0:255,50:100:255,255:100:50,255:0:0,156:0:0"
To actually draw the legend for the polygons in the graphical display, the procedure is:
# first save legend instructions to a file
d.vect.thematic -n map=communes2 column=pop/area algorithm=std \
nbclasses=5 colors="0:0:255,50:100:255,255:100:50,255:0:0,156:0:0" \
# open a monitor
d.mon wx0
# draw the map
d.vect.thematic map=communes2 column=pop/area algorithm=std \
nbclasses=5 colors="0:0:255,50:100:255,255:100:50,255:0:0,156:0:0"
# draw the legend
d.graph input=legend_pop_dens
In order to further enhance this legend, edit the legend file accordingly and rerun the

Thematic map with calculated class breaks
Example for the North Carolina sample dataset, colorizing polygons by area size:
# first save legend instructions to a file
d.vect.thematic -n map=geology column=SHAPE_area algorithm=int nclasses=6 \
colors=215:48:39,252:141:89,254:224:139,217:239:139,145:207:96,26:152:80 \
# open the graphical display
d.mon wx0
# draw outline of polygons
d.vect map=geology type=boundary
# draw color fill
d.vect.thematic map=geology column=SHAPE_area algorithm=int nclasses=6 \
colors="215:48:39,252:141:89,254:224:139,217:239:139,145:207:96,26:152:80" \
# draw legend
d.graph input=geology.leg
Thematic map of area sizes

Use d.vect.thematicgrass online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Eclipse Tomcat Plugin
    Eclipse Tomcat Plugin
    The Eclipse Tomcat Plugin provides
    simple integration of a tomcat servlet
    container for the development of java
    web applications. You can join us for
    Download Eclipse Tomcat Plugin
  • 2
    WebTorrent Desktop
    WebTorrent Desktop
    WebTorrent Desktop is for streaming
    torrents on Mac, Windows or Linux. It
    connects to both BitTorrent and
    WebTorrent peers. Now there's no
    need to wait for...
    Download WebTorrent Desktop
  • 3
    GenX is a scientific program to refine
    x-ray refelcetivity, neutron
    reflectivity and surface x-ray
    diffraction data using the differential
    evolution algorithm....
    Download GenX
  • 4
    PSPP is a program for statistical
    analysis of sampled data. It is a free
    replacement for the proprietary program
    SPSS. PSPP has both text-based and
    graphical us...
    Download pspp4windows
  • 5
    Git Extensions
    Git Extensions
    Git Extensions is a standalone UI tool
    for managing Git repositories. It also
    integrates with Windows Explorer and
    Microsoft Visual Studio
    (2015/2017/2019). Th...
    Download Git Extensions
  • 6
    eSpeak: speech synthesis
    eSpeak: speech synthesis
    Text to Speech engine for English and
    many other languages. Compact size with
    clear but artificial pronunciation.
    Available as a command-line program with
    many ...
    Download eSpeak: speech synthesis
  • More »

Linux commands