Hi Alan<br><br> i did set defresolution to 72 ,but return to me this error.<br><br>msLoadMap(): Unknown identifier. Parsing error near (DEFRESOLUTION):(line 7)
<br> <br>in what MapSever version can i define DEFRESOLUTION?<br><br>RG<br><br><div class="gmail_quote">2010/1/25 Alan Boudreault <span dir="ltr"><<a href="mailto:aboudreault@mapgears.com">aboudreault@mapgears.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi<br>
<br>
Set the DEFRESOLUTION to 72 (I assume all your mapfile settings are for a<br>
72dpi image) , change the RESOLUTION to 300. Change your map size if you want<br>
a big 300dpi image.<br>
<br>
It is possible that the image header doesn't contain the DPI information. This<br>
can easily be modified with a graphic program like "The GIMP".<br>
<br>
Alan<br>
<div><div></div><div class="h5"><br>
On January 25, 2010 10:00:52 am Valeria Muņoz wrote:<br>
> Hi<br>
><br>
> I need to produce a 300dpi image for printing, i defined a RESOLUTION<br>
> 300 in the mapfile , but nothing happens , still in 72 dpi ... can you help<br>
> me please?<br>
><br>
> mapfile<br>
><br>
> MAP<br>
> NAME neonline_mapa<br>
> RESOLUTION 300<br>
> SIZE 400 400<br>
> UNITS dd<br>
> SHAPEPATH "c:/ms4w/Apache/htdocs/test_mapfile/dataB2/"<br>
> EXTENT -112.888238 -57.06133625 -7.419488000000001 13.25116375<br>
> FONTSET "c:/ms4w/Apache/htdocs/test_map_dis/fonts/fonts.txt"<br>
> PROJECTION<br>
> 'proj=longlat'<br>
> 'ellps=WGS84'<br>
> 'datum=WGS84'<br>
> 'no_defs'<br>
> ''<br>
> END<br>
> IMAGECOLOR 122 206 232<br>
> OUTPUTFORMAT<br>
> NAME png<br>
> DRIVER "AGG/PNG"<br>
> MIMETYPE 'image/png'<br>
> IMAGEMODE RGB #RGBA transparente<br>
> EXTENSION "png"<br>
> FORMATOPTION "TRANSPARENT=ON"<br>
> FORMATOPTION "INTERLACE=ON"<br>
> FORMATOPTION "QUANTIZE_COLORS=256"<br>
> END<br>
><br>
> # Legend<br>
> LEGEND<br>
> IMAGECOLOR 255 255 255<br>
> STATUS ON<br>
> KEYSIZE 18 12<br>
> LABEL<br>
> TYPE BITMAP<br>
> SIZE MEDIUM<br>
> COLOR 0 0 89<br>
> END<br>
> END<br>
> ........<br>
><br>
<br>
</div></div><font color="#888888">--<br>
Alan Boudreault<br>
Mapgears<br>
<a href="http://www.mapgears.com" target="_blank">http://www.mapgears.com</a><br>
</font></blockquote></div><br>