Howto create an IMRO legend in QGIS

If you have to use IMRO data, you want to use the same legend as the one used on Unfortunatly there is no standard IMRO legend file for QGIS. Luckily B3Partners uploaded an SLD file onto GitHub which you can use to create the legend in QGIS.


To use the SLD for the legend you need the following software:

1. QGIS (the used version was 1.9.0 on a Mac)
2. A texteditor or XML-editor
3. IMRO Data
(4. OGRINFO to get information from the GML)

The used data is from the City of Amstelveen and is about the expansion of the shopping centre Westwijk (NL.IMRO.0362.06S-OW01 – “2e Herziening Amstelveen Zuid-West – Westwijkcentrum”). This doesn’t contain all the IMRO possibilities, but the used method is applicable for any missing items.

The plans GML contains the following layers:
1: Enkelbestemming (Polygon)
2: Bouwaanduiding (Polygon)
3: Maatvoering (Polygon)
4: Gebiedsaanduiding (Polygon)
5: Bouwvlak (Polygon)
6: Functieaanduiding (Polygon)
7: Bestemmingsplangebied (Polygon)
8: MetadataIMRObestand (None)

The last in this list is not a geographical layer but only a metadata layer. It contains the following information:
- gml_id (String) = Metadata
- datasetTitel (String) = 2e Herziening Amstelveen Zuid-West – Westwijkcentrum
- creatiedatum (String) = 2013-05-31
- bronbeheerder (String) = Amstelveen
- codeerVerantwoordelijke (String) = P.Sugito
- naamApplicatieschema (String) = IMRO2012
- codeReferentiesysteem (Integer) = 28992
- toepassingsschaal (Integer) = 1000
- applicatieIdentificatie (String) = RoPlan 2012 v2.0 (voor v8i)
- versieXMLschema (String) = 1.1.0

As said before, the SLD cannot be used immediatly in QGIS 1.9. First the seperate NamedLayers must be copied and pasted into new sld-files. With 1 exeption: the in the SLD used PNG-images do not exist in the zip file from B3Partners. Instead of using these images, the new styling in QGIS has been used.

After opening the SLD for the layer Maatvoering it looks like this:


Expected was a striped black line without a fill color, but the fillcolor is green with a black outline.


To create the SLD for the layer Maatvoering, the xml-code must be searched for the text Maatvoering. The text from to around the text Maatvoering must be copied to a new SLD-file.


Then the XML must be finalized by adding the StyledLayerDescriptor tag around the copied code and adding the XML version and encoding information.


This has to be done for every layer in the GML-file. To get the required SLD files for the layers the following has to be done for the seperate layers:
- Enkelbestemming: search for the text ‘bestemmingshoofdgroep’ and use one of the layers Dubbelbestemmingen (in procedure), Dubbelbestemmingen (huidig), Bestemmingen (in procedure) or Bestemmingen (huidig),
- Bouwaanduiding: search for the text ‘Bouwaanduiding’,
- Maatvoering: search for the text ‘Maatvoering’,
- Gebiedsaanduiding: search for the text ‘gebiedsaanduiding’,
- Bouwvlak: search for the text ‘Bouwvlak’ and use the layout for one of the layers nwro_bvk_pde or nwro_bvk_hdg (both sytlings or the same),
- Functieaanduiding: search for the text ‘Functieaanduiding’ and use the layout for one of the layers nwro_fag_pde or nwro_fag_hdg (both sytlings or the same),
- Bestemmingsplangebied: search for the text ‘Bestemmingsplangebied’.

After the SLD’s have been saved and used in QGIS to create the styling the layers look like this:

The following items must be changed by hand:
- Enkelbestemming, the thickness of the polygon outline must be reduced to 1,
- Bouwaanduiding, the thickness of the polygon outline must be reduced to 1,
- Maatvoering, the thickness of the polygon outline must be reduced to 1,
- Gebiedsaanduiding, the styling of the polygon outline must be changed. The inwards pointing triangles are missing.

Instead of this the outline is black and 2 pixels thick. So the triangles must be added to the line-symbols and the outline must be changed so it has the same color as the other outline in the style.
The ‘solid line’ must be changed in a ‘Symbol-line’. On this symbol-line symbols must be added with an interval of 15. These symbols must be 5 pixels tall and must have the same color as the outline. The offset on the x-axis must be 2 and on the y-axis -2. The symbol to be used must be the larger triangle from the standard symbollist

Zoomed in the layer looks as followed (it looks better zoomed in then out due to the symbol placement):

- Bouwvlak, the thickness of the polygon outline must be reduced to 1,
- Functieaanduiding, the thickness of the polygon outline must be reduced to 1,
- Bestemmingsplangebied, the outline of the polgyon need to be repaired. The black circles must be added to the first outline of the style. The black circles must have size 4 and an interval of 15.
After finalizing the styling of the layers the result can be compared to the one from The left side shows an image from, the right shows the layers as styled in QGIS.


URLs for the several downloads:

  • Geonovum IMRO point symbols:
  • B3 Partners SLD on Github:
  • SLD and images in a zip file:
  • Used GML file:
  • RO Online zip file with the corresponding documents:

Here you can download the IMRO data and the styling from this website:


6 thoughts on “Howto create an IMRO legend in QGIS

  1. Meine Toonen

    He leuk, die SLD’s had ik gemaakt. Die PNG’s zijn wel in de zip te vinden trouwens, maar aangezien QGIS er blijkbaar niks mee kan heeft dat toch niet veel zin. Mocht je de afzonderlijk opgeknipte SLD snippets hebben kan je die ook op github zetten (via een pull request), of eventueel aan mij sturen zodat ik ze erop kan zetten.
    Leuk dat het gebruikt wordt!

    1. Luuk Post author

      Meine, bedankt voor je reactie. In de zip file zitten PNG’s, deze hebben echter een andere naam als in de SLD’s genoemd zijn.
      Aan het einde van het verhaal zijn de links naar zipfiles met de QGIS opmaakbestanden.

  2. eddy Kesters

    Ik heb een tablet surface 2 aangeschaft. Ik gebruik Quantum gis. Deze toepassing kan, volgens gegevens die ik vind op het internet, geïnstalleerd worden op deze tablet. Wanneer ik het progamma gedownload is, geeft de tablet de foutmelding dat de app niet kan geïnstalleerd worden. Weet er iemand wat fout zou kunnen zijn?

  3. Niels

    Bedankt voor de mooie uitleg, erg bruikbaar!
    Ik ben nog op zoek naar een programma waarmee ik de inspire download van RO online kan converteren van XML naar GML, ik heb dit programma ooit eens gedownload maar kan het nu niet meer vinden. er staat me iets van bij dat ik dit van dit forum had.
    Kunnen jullie mij helpen?


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>