Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to vectorize that rasterfile with its 6 landuse classes. The classification is very noisy and have to be generalized before.

The result should be a polygone vector file.

I use SAGA, (GRASS) and QGIS.

enter image description here

share|improve this question
up vote 8 down vote accepted

To simplify the raster it might be worth looking at gdal_sieve, it's available under the "Raster" menu. See:


share|improve this answer
Tryed several times with sieve and majority filter. Best results with sieve! Thanks! I will post the result after its finished... – MAP Aug 21 '12 at 14:44

To generalize, try running a majority filter. This is available in saga (and grass as well, check markusN his answer). An explanation for how it works from arcgis:

share|improve this answer

you can use for converting raster to vector, if u previously use . some information is here.

produces a polygon feature layer from a raster

SYNOPSIS [-o name=value] [-nomask] [-mask filename] raster_file [-b band] [-q] [-f ogr_format] out_file [layer] [fieldname]

beside this in qgis you can use Polygonize tool for your needs. it is under the Raster > Conversion > Polygonize (Raster to vector) menu.

if u dont see anything except Raster Calculater under Raster menu, you have to enter Manage Plugins under Plugins, then enable GdalTools. that is all..

i hope it helps you...

share|improve this answer

You can first use the "mode" operator of r.neighbors in GRASS GIS (via Sextante plugin), then vectorize with to obtain polygons. Perhaps the "mode" operator should be run more than one time.

share|improve this answer

Using the majority filter with a kernel of 5 by 5 pixels gives the best results for me.

share|improve this answer
Please explain your answer in detail. – Sunil Oct 23 '13 at 9:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.