[GRASS-user] Multiple custom symbols per point based on attribute(s)

Yangos Chalazonitis yhal at dhal.com
Fri Aug 15 04:47:06 PDT 2014


Hey Mark,

Thanks for the example. This looks promising. I'll play around with the 
script and see where it leads me...

-John

On 15/08/2014 14:20, Markus Neteler wrote:
> Hi John,
>
> On Thu, Aug 14, 2014 at 9:49 PM, Yangos Chalazonitis <yhal at dhal.com 
> <mailto:yhal at dhal.com>> wrote:
> > Hello,
> >
> > I am trying to figure out a way to display more than one 
> icons/symbols per
> > location, representing various local attributes.
> >
> > E.g. I have the coordinates of a village and know that it has a 
> church, a
> > theatre and a factory nearby. Another village might only have a 
> factory. A
> > third might have a theatre and a factory, but no church.
>
> I have done something perhaps similar time ago: mapping the "payload" 
> of ticks (Ixodes ricinus) which could carry none, one or multiple 
> disease pathogens, be found or not and be analyzed in the lab or not:
>
> box drawing:
>   - no tick found in sampling site (green)
>   - tick found but not analyzed in lab: grey (no data)
>   - no disease found: white (true negative)
>   - Ba: Babesia (red)
>   - Bo: Borrelia (blue)
>   - An: Anaplasma (yellow)
>   - Ri: Rickettsia (purple)
>
>   Quadrants:
>    Bo|Ba   nw|ne
>    --+--   --+--
>    An|Ri   sw|se
>
>   Based on disease columns:
>    n= not investigated or not recorded <-- NA
>    f= false  <- disease absence
>    t= true   <- disease presence
>
> A bit complex to read perhaps but yet highly compressed. Attached a 
> map excerpt screenshot which I created with ps.map and/or d.vect|PNG 
> driver (don't remember, sorry).
>
> Then I used something like this (it is years ago but some script I 
> found back):
>
> ISIZE=10
> d.vect $MAP icon=extra/offbox_ne size=$ISIZE fcol=grey
> d.vect $MAP icon=extra/offbox_nw size=$ISIZE fcol=grey
> d.vect $MAP icon=extra/offbox_sw size=$ISIZE fcol=grey
> d.vect $MAP icon=extra/offbox_se size=$ISIZE fcol=grey
>
> #DISEASE=babesia
> DISEASE=bab_fixed
> d.vect $MAP where="$DISEASE = 't'" icon=extra/offbox_ne size=$ISIZE 
> fcol=red
> d.vect $MAP where="$DISEASE = 'f'" icon=extra/offbox_ne size=$ISIZE 
> fcol=white
> d.vect $MAP where="$DISEASE = 'n'" icon=extra/offbox_ne size=$ISIZE 
> fcol=green
> #d.vect $MAP where="$DISEASE = 't'" icon=basic/cross1
>
> #DISEASE=borrelia
> DISEASE=bor_fixed
> d.vect $MAP where="$DISEASE = 't'" icon=extra/offbox_nw size=$ISIZE 
> fcol=blue
> d.vect $MAP where="$DISEASE = 'f'" icon=extra/offbox_nw size=$ISIZE 
> fcol=white
> d.vect $MAP where="$DISEASE = 'n'" icon=extra/offbox_nw size=$ISIZE 
> fcol=green
> [...]
>
> So, just take it as a hint rather than a copy-paste example.
>
> Markus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20140815/a44dbd67/attachment.html>


More information about the grass-user mailing list