Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am using QGIS for visualizing the health conditions of elderly living in an old age home, some of the elderly have multiple medical device with them and I want to show them on the map.

Suppose I have one bed for each elderly, I have created a centroid for each bed using ftool, then I join this label with my csv table, and then use Style tab in the layer properties.

In the csv table, I have 4 columns named A, B, C, D and each represent the presence/absence of a medical device. Currently I am using rule-based in the Style tab and use Offset X,Y to fine tune the position of the dots so that they don't overlap with each other completely.

I don't like the Offset X,Y method, because if I need to change the position of those symbols, I need to do it manually one by one, and I have 30 elderly homes that I need to work on. Is there a better way?

share|improve this question
    
So you want to put up to four symbols on one centroid? –  underdark Oct 25 '11 at 7:27
    
maybe more than 4, as I have 6 columns about medical device information now –  lokheart Oct 25 '11 at 8:19
add comment

3 Answers 3

up vote 2 down vote accepted

You could try the "Diagrams" labeling option in the layer properties. It's not exactly what it's designed for, but it might work for you. For example, I added four columns to an example dataset (A1, A2, A3, A4,) and set them equal to either '1' or '0' - in your case '1' being 'present' and '0' being absent. Then, in the layer properties, go to "Diagrams" and add the four (or six, whatever) columns at the bottom. The circle symbols will then show the colour if a feature is present, and not show it if it is absent. Unforuntately, the 'size' of each colour will change, but...

Test Case using made-up data

share|improve this answer
1  
Great suggestion. This way you don't have to create customized symbols and can truly create data driven symbols. –  RyanDalton Oct 25 '11 at 16:43
    
thanks for the suggestion, I tried, but another problem pops out: I have some beds which the elderly there has no device at all, so all the 6 columns are "0" in my csv, but the presentation is as if the last column of the csv is "1". What happen? Anyway, thanks again! –  lokheart Oct 26 '11 at 4:48
    
Can you link a small sample of your data to allow do some test locally? –  Giovanni Manghi Oct 26 '11 at 11:07
add comment

The easiest way I see would be to create your own SVG symbols (one for each case/permutation of your parameters/columns) and then add them to QGIS.

share|improve this answer
add comment

To add onto @Giovanni's suggestion, you could take a similar approach as:

and use a base symbol (for example a diamond or rectangle) that is divided into 4 (or 6) segments, and each segemnt could be color coded or have symbol modifiers that represent the presence or absence of a particular device for that patient.

You would still have to build the various symbols, but this would make it so you no longer had to deal with offsetting various symbols.

share|improve this answer
add comment

Your Answer

 
discard

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.