[GIS] Square symbol with a number inside

qgissymbology

How do I create a symbol on qgis that has a number assigned to it? I am trying to make a square symbol with a number inside. everytime I place the marker I would like it to ask me what the number is everytime so I can place specific number symbols in different areas on my map. Anybody know how to do this?

Best Answer

You can actually do this through symbology rather than a mixed symbology-label style as you suggest in your comment above.

  1. Make sure the field that contains the relevant number you want displayed is a string type, it won't work otherwise.
  2. Symbolise your point layer with your square background
  3. Add a new symbol layer above the square - set the symbology type to "Font Marker"

enter image description here

  1. Rather than setting a particular font marker, set the data defined override to equal the field that contains your marker - format as required

enter image description here

To get it to ask you what the number is each time you digitise a feature you need to turn on the attribute form popup for your layer. You can do this through Properties -> Fields. Then when you're editing the layer, every time you digitise a new point it will produce an input box to allow you to edit the field and will automatically display this on the map.

enter image description here

enter image description here

Related Question