[mapserver-users] resolution

Valeria Muñoz valemunoz at gmail.com
Mon Jan 25 07:44:25 PST 2010


Hi Alan

  i did set defresolution to 72 ,but return to me this error.

msLoadMap(): Unknown identifier. Parsing error near (DEFRESOLUTION):(line 7)


in what MapSever version can i define DEFRESOLUTION?

RG

2010/1/25 Alan Boudreault <aboudreault at mapgears.com>

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100125/7c029818/attachment.htm>


More information about the MapServer-users mailing list