[mapserver-users] Widely spaced Diagonal Fill

Stephen Lime steve.lime at dnr.state.mn.us
Thu Oct 25 13:05:38 EDT 2001


Try:

  SYMBOL
    NAME 'crosshatch'
    TYPE VECTOR
    POINTS
      0 0
      1 1
    END
  END  

then in your class

  SYMBOL 'crosshatch'
  SIZE 5 # or whatever

Steve

Stephen Lime
Data & Applications Manager

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937
>>> Armin Burger <armin.burger at territoriumonline.com> 10/25/01 11:27 AM >>>
Chip,

in the CLASS section you can use the SIZE tag for the size
(height/width/spacing) of the  symbol. That should do what you want. You can
also do a scale-dependend fill pattern with the tag SYMBOLSCALE in the LAYER
section, but that effects all symbols and labels for the layer.

BTW: If somebody succeeded in creating a diagonal fill with a more than
one-pixel-wide fill line it would be nice to submit the example.

Armin


> I'm having trouble figuring out how to do a simple diagonal hash.

> If I use the following definition, I do get a diagonal fill (sort of)...

> SYMBOL
>   NAME 'hash'
>   TYPE VECTOR
>   POINTS
>     0 0
>     1 1
>   END
> END

> However, it's more of a checkerboard in that every other pixel is filled
> (which is what I would expect based on the definition).

> How would I do a more widely spaced fill (i.e. 45 degree lines with say, 5
> pixels of space between lines)? The following definition looks the same as
> the first:

> SYMBOL
>   NAME 'hash'
>   TYPE VECTOR
>   POINTS
>     0 0
>     5 5
>   END
> END

> Thanks!

> Chip Hankley

--
Armin Burger
Territorium Online
Siemensstrasse/Via Siemens 19 - 39100 Bozen/Bolzano - Italia






More information about the mapserver-users mailing list