[mapserver-users] MapServer 5.2.1 and AGG/PNG - too thick lines in the grid

Reinoud Bokhorst bokhorst at argoss.nl
Wed Jan 7 02:07:36 PST 2009


I experienced the same problem a while ago and reverted to using a separate mapfile for the graticule using the GD driver. In your 'main' mapfile you could then create a graticule layer with CONNECTIONTYPE WMS that connects to a URL using the graticule mapfile (f.ex. something like this: http://localhost/cgi/mapserv?map=graticule.map&). This way you still have one entry point for all your layers.

Regards,
Reinoud


thomas bonfort wrote:
> that's what antialiasing is supposed to do, as your 1 pixel wide grid
> doesn't fall exactly on a pixel.
> I don't think there is a workaround.
> 
> regards,
> thomas
> 
> On Mon, Jan 5, 2009 at 13:28, Maximsu <maxims731 at inbox.ru> wrote:
>> I have very thick lines in the grid layer when i use agg/png driver. See the
>> map  http://avia.meteonovosti.ru/index.php?index=1&icao=UUEE&iso_cntr=RU
>> here . They must be the 1 pixel width. With the gd/png driver all OK. Width
>> is set to 1 but it does not matter. Is there a way to switch off the line
>> antialiasing for grid layer? Or some another way to solve this problem?
>> There is the layer definition:
>>
>>  LAYER
>>   NAME grid2
>>   GROUP "Grid"
>>   STATUS ON
>>   TYPE LINE
>>   LABELCACHE ON
>>   MINSCALE 1000001
>>   MAXSCALE 3000000
>>   METADATA
>>    GridLabelSizeMin "8"
>>    GridLabelSizeMax "11"
>>   END
>>   CLASS
>>     NAME "Graticule"
>>     STYLE
>>      COLOR 72 72 72
>>      width 1
>>     END
>>     LABEL
>>       COLOR  255 0 0
>>       SIZE 8
>>       POSITION CC
>>       PARTIALS TRUE
>>       BUFFER 5
>>       OUTLINECOLOR 255 255 255
>>       TYPE TRUETYPE
>>       FONT "arial"
>>       FORCE TRUE
>>     END
>>   END
>>   PROJECTION
>>    "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"
>>   END
>>   GRID
>>    LABELFORMAT "DD"
>>    MinInterval 1
>>    MaxInterval 5
>>   END
>>  END
>>
>> --
>> View this message in context: http://n2.nabble.com/MapServer-5.2.1-and-AGG-PNG---too-thick-lines-in-the-grid-tp2112673p2112673.html
>> Sent from the Mapserver - User mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 


-- 
Reinoud Bokhorst
Advisor Oceanography & ICT

Tel:	+31 (0)527-242 299
Fax:	+31 (0)527-242 016
Web:	www.bmtargoss.com

BMT ARGOSS 
P.O. Box 61, 8325 ZH Vollenhove
Voorsterweg 28, 8316 PT Marknesse
The Netherlands
 
----Confidentiality Notice & Disclaimer----
The contents of this e-mail and any attachments are intended for the use of the mail addressee(s) shown. If you are not that person, you are not allowed to read it, to take any action based upon it or to copy it, forward, distribute or disclose the contents of it and you should please delete it from your system. BMT ARGOSS does not accept liability for any errors or omissions in the context of this e-mail or its attachments which arise as a result of internet transmission, nor accept liability for statements which are those of the author and clearly not made on behalf of BMT ARGOSS.






More information about the MapServer-users mailing list