[mapserver-users] resolution

Alan Boudreault aboudreault at mapgears.com
Mon Jan 25 10:34:14 EST 2010


Hi 

Set the DEFRESOLUTION to 72 (I assume all your mapfile settings are for a 
72dpi image) , change the RESOLUTION to 300. Change your map size if you want 
a big 300dpi image.

It is possible that the image header doesn't contain the DPI information. This 
can easily be modified with a graphic program like "The GIMP".

Alan

On January 25, 2010 10:00:52 am Valeria Muñoz wrote:
> Hi
> 
>    I need to produce a 300dpi image for printing, i defined  a RESOLUTION
> 300 in the mapfile , but nothing happens , still in 72 dpi ... can you help
> me please?
> 
> mapfile
> 
> MAP
>   NAME neonline_mapa
>   RESOLUTION 300
>   SIZE 400 400
>   UNITS dd
>   SHAPEPATH "c:/ms4w/Apache/htdocs/test_mapfile/dataB2/"
>   EXTENT -112.888238 -57.06133625 -7.419488000000001 13.25116375
>   FONTSET "c:/ms4w/Apache/htdocs/test_map_dis/fonts/fonts.txt"
>   PROJECTION
>     'proj=longlat'
>     'ellps=WGS84'
>     'datum=WGS84'
>     'no_defs'
>     ''
>   END
>   IMAGECOLOR 122 206 232
>   OUTPUTFORMAT
>     NAME png
>     DRIVER "AGG/PNG"
>     MIMETYPE 'image/png'
>       IMAGEMODE RGB #RGBA transparente
>       EXTENSION "png"
>        FORMATOPTION "TRANSPARENT=ON"
>        FORMATOPTION "INTERLACE=ON"
>        FORMATOPTION "QUANTIZE_COLORS=256"
>   END
> 
>   # Legend
>   LEGEND
>     IMAGECOLOR 255 255 255
>     STATUS ON
>     KEYSIZE 18 12
>     LABEL
>       TYPE BITMAP
>       SIZE MEDIUM
>       COLOR 0 0 89
>     END
>   END
> ........
> 

-- 
Alan Boudreault
Mapgears
http://www.mapgears.com


More information about the mapserver-users mailing list