Extra pixel around square vector filler for polygon
Sean Gillies
sgillies at FRII.COM
Fri Dec 30 14:04:36 EST 2005
I was able to confirm this extra pixel. As far as I can tell, it's
not just square symbols. A 4 pixel wide (for example) vector symbol
is repeated in 5x5 blocks within the fill.
Sean
On Dec 28, 2005, at 4:54 PM, Jani Averbach wrote:
> Hello,=20
>
> I have a map which uses a checkerboard pattern as polygon filler.
> The filler is a square which consists of four checks (two white, two =
> black),
> and when mapserver renders a polygon using this pattern, it puts an =
> extra
> 1 pixel wide border for east and north side of square.
>
> I will paste example map file and symbol definition at the end of
> this =
> email,
> so if you have any idea if this is a feature or bug, and how to get
> rid =
> of this=20
> or what is more appropriate way to draw checkerboard I would be =
> grateful.
>
> BR, Jani
>
> ----------------------8<------------------------8<-----------------
> SYMBOL
> NAME "checkerboard"
> TYPE VECTOR
> POINTS
> 0 0
> 0 1
> 1 1
> 1 0
> 0 0
> -99 -99
> 1 1
> 1 2
> 2 2
> 2 1
> 1 1 =20
> END
> FILLED TRUE
> END
>
> ----------------------8<------------------------8<-----------------
> MAP
> SIZE 40 80
> SYMBOLSET "symbols/symbols.sym"
> EXTENT 0 0 40 80
> UNITS METERS
> IMAGETYPE PNG
> IMAGECOLOR 0 0 0=20
> RESOLUTION 96
> =09
> LAYER
> TYPE POLYGON
> STATUS DEFAULT
> FEATURE
> POINTS
> 5 44
> 35 44
> 35 80
> 5 80
> 5 44
> END
> END
> CLASS
> STYLE
> SYMBOL "checkerboard"
> SIZE 16
> COLOR 255 255 255
> END
> END
> END
>
> LAYER
> TYPE POLYGON
> STATUS DEFAULT
> FEATURE
> POINTS
> 5 0
> 35 0
> 35 36
> 5 36
> 5 0
> END
> END
> CLASS
> STYLE
> SYMBOL "checkerboard"
> SIZE 4
> COLOR 255 255 255
> END
> END
> END
> END
>
> ----------------------8<------------------------8<-----------------
---
Sean Gillies
sgillies at frii dot com
http://zcologia.com/news
More information about the mapserver-dev
mailing list