Re: [MAPSERVER-USERS] agg and line widths

2008-04-05 Thread DNC
It seems the problem lies with both viewers I was using, that for some reason seem to scale the image up somehow... so lines appear thicker than in other viewers. I'm still trying to figure this out though. Thanks everyone for helping. Duarte DNC wrote: > > Hi. > > I'm having trouble getting

Re: [MAPSERVER-USERS] agg and line widths

2008-04-03 Thread TC Haddad
thanks Thomas, well, actually, in my case this particular layer was created as line data, purely for cartographic purposes (it's not a polygon dataset being drawn as type LINE) so I thought the "duplicate edges" issue would not apply. but I'll go back to the dashed symbol experiments to see if th

Re: [MAPSERVER-USERS] agg and line widths

2008-04-02 Thread thomas bonfort
tanya, different symptoms but same "problem" here. even if your mapserver layer is of type "LINE", your counties data is polygonal data and therefore has duplicate edges, and mapserver will happilly draw these edges twice. depending on how the linestrings of the polygon are stored, the pattern of y

Re: [MAPSERVER-USERS] agg and line widths

2008-04-02 Thread thomas bonfort
hi, it's one of the drawbacks of antialiasing in general, not a mapserver specific issue. an analogy could be found when drawing on paper with a felt-tip pen: if you pass twice on the same line the resulting effect is that the paper is twice as saturated in ink and the line appears thicker. this do

Re: [MAPSERVER-USERS] agg and line widths

2008-04-02 Thread DNC
Thomas, I'm drawing administrative boundaries like counties. The data came from a polygon shapefile and converted to PostGIS. The boundaries are topologically correct in that shared boundaries are completely coincident and not adjacent. I have never seen these polygons being drawn like you descri

Re: [MAPSERVER-USERS] agg and line widths

2008-03-31 Thread thomas bonfort
hi, you're probably drawing polygons with adjacent borders right? in this case, each line except the outer ones is drawn twice, and thus its final width is larger than what is requested. I don't think there's much you can do about it except preprocess your data to transform it into a line layer wit

[MAPSERVER-USERS] agg and line widths

2008-03-29 Thread DNC
Hi. I'm having trouble getting thin lines to draw. The thinnest line I get seems to be 2 pixels wide at least. Using GD the lines are indeed 1 pixel. Anyone can point out why this happens? Some sections from the map file: OUTPUTFORMAT NAME 'AGG_Q' DRIVER AGG/PNG MIMETYPE "image/png" IMAGEMOD