[mapserver-users] resolution

Alan Boudreault aboudreault at mapgears.com
Mon Jan 25 10:55:26 EST 2010


Sorry, I was sure you was trying to use the new feature included in MapServer 
5.6. In MS <5.6, you can't really do more that setting the resolution to 300.

Alan

On January 25, 2010 10:44:25 am Valeria Muñoz wrote:
> 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
> 

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


More information about the mapserver-users mailing list