Re: [mapserver-users] Turn off anti-alias Mapserver 6.0
Hi Thomas You could try to reduce the image size using 8bit PNGs, see the 3rd output format in http://mapserver.org/mapfile/outputformat.html. Peter On 04/12/2012 06:20 AM, Thomas Joseph wrote: We have recently upgraded from Mapserver 5.7 to 6.0 and although the AGG anti-alias lines look great the output image size has increased significantly from the previous rendering without anti-alias. I was just wondering if there is a way to turn off the anti-alias for polyline rendering in Mapserver 6.0. From the documentation it appeared that the previous GD driver did not include anti-alias by default. We have attempted to switch the outputformat from the new default AGG to the previous GD driver using the outputformat directive in the map file as shown below. This changed the image size slightly suggesting that mapserver was using a different driver to render, however the lines were still rendered with anti-alias on and the image was still relatively large compared to previous mapserver verison. OUTPUTFORMAT NAME GDpng DRIVER GD/PNG MIMETYPE image/png IMAGEMODE RGB EXTENSION png END Previously in Mapserver 5.7 we did not specify an outputformat we simply used IMAGETYPE PNG24 and the output was generated without anti-alias. Any suggestions would be greatly appreciated. If you need additional information let me know. tom THIS EMAIL IS CONFIDENTIAL. Its use or disclosure by any person other than the addressee is unauthorised. Anyone other than the intended recipient must not rely on the content of this email or any attachment to it. The sender cannot guarantee that this email or any attachment to it is free of computer viruses or other conditions which may damage or interfere with other computer systems. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Peter Hopfgartner http://www.r3-gis.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Turn off anti-alias Mapserver 6.0
On Thu, Apr 12, 2012 at 06:20, Thomas Joseph thomas.jos...@awtwater.com wrote: We have recently upgraded from Mapserver 5.7 to 6.0 and although the AGG anti-alias lines look great the output image size has increased significantly from the previous rendering without anti-alias. I was just wondering if there is a way to turn off the anti-alias for polyline rendering in Mapserver 6.0. From the documentation it appeared that the previous GD driver did not include anti-alias by default. We have attempted to switch the outputformat from the new default AGG to the previous GD driver using the outputformat directive in the map file as shown below. This changed the image size slightly suggesting that mapserver was using a different driver to render, however the lines were still rendered with anti-alias on and the image was still relatively large compared to previous mapserver verison. OUTPUTFORMAT NAME GDpng DRIVER GD/PNG MIMETYPE image/png IMAGEMODE RGB GD only supports PC256. If you set imagemode to RGB as here, mapserver will switch back to AGG. -- thomas EXTENSION png END Previously in Mapserver 5.7 we did not specify an outputformat we simply used IMAGETYPE PNG24 and the output was generated without anti-alias. Any suggestions would be greatly appreciated. If you need additional information let me know. tom THIS EMAIL IS CONFIDENTIAL. Its use or disclosure by any person other than the addressee is unauthorised. Anyone other than the intended recipient must not rely on the content of this email or any attachment to it. The sender cannot guarantee that this email or any attachment to it is free of computer viruses or other conditions which may damage or interfere with other computer systems. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] Turn off anti-alias Mapserver 6.0
Hi Thanks for the quick response I also tried PC256 as discussed in the outputformat instruction sheet. Although the image did look similar to the results from 5.7 and the size was much smaller it did not render transparent polygons correctly. I may have missed something else here. Is there a way to turn off anti-aliasing with the AGG driver ? Thanks again -Original Message- From: thomas bonfort [mailto:thomas.bonf...@gmail.com] Sent: Thursday, 12 April 2012 7:59 p.m. To: Thomas Joseph Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Turn off anti-alias Mapserver 6.0 On Thu, Apr 12, 2012 at 06:20, Thomas Joseph thomas.jos...@awtwater.com wrote: We have recently upgraded from Mapserver 5.7 to 6.0 and although the AGG anti-alias lines look great the output image size has increased significantly from the previous rendering without anti-alias. I was just wondering if there is a way to turn off the anti-alias for polyline rendering in Mapserver 6.0. From the documentation it appeared that the previous GD driver did not include anti-alias by default. We have attempted to switch the outputformat from the new default AGG to the previous GD driver using the outputformat directive in the map file as shown below. This changed the image size slightly suggesting that mapserver was using a different driver to render, however the lines were still rendered with anti-alias on and the image was still relatively large compared to previous mapserver verison. OUTPUTFORMAT NAME GDpng DRIVER GD/PNG MIMETYPE image/png IMAGEMODE RGB GD only supports PC256. If you set imagemode to RGB as here, mapserver will switch back to AGG. -- thomas EXTENSION png END Previously in Mapserver 5.7 we did not specify an outputformat we simply used IMAGETYPE PNG24 and the output was generated without anti-alias. Any suggestions would be greatly appreciated. If you need additional information let me know. tom THIS EMAIL IS CONFIDENTIAL. Its use or disclosure by any person other than the addressee is unauthorised. Anyone other than the intended recipient must not rely on the content of this email or any attachment to it. The sender cannot guarantee that this email or any attachment to it is free of computer viruses or other conditions which may damage or interfere with other computer systems. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Turn off anti-alias Mapserver 6.0
On Thu, Apr 12, 2012 at 10:24, Thomas Joseph thomas.jos...@awtwater.com wrote: Hi Thanks for the quick response I also tried PC256 as discussed in the outputformat instruction sheet. Although the image did look similar to the results from 5.7 and the size was much smaller it did not render transparent polygons correctly. I may have missed something else here. Is there a way to turn off anti-aliasing with the AGG driver ? Currently no. It could be implemented for simple (1 pixel wide) lines and polygons, contact me if you would like a quote. regards, thomas Thanks again -Original Message- From: thomas bonfort [mailto:thomas.bonf...@gmail.com] Sent: Thursday, 12 April 2012 7:59 p.m. To: Thomas Joseph Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] Turn off anti-alias Mapserver 6.0 On Thu, Apr 12, 2012 at 06:20, Thomas Joseph thomas.jos...@awtwater.com wrote: We have recently upgraded from Mapserver 5.7 to 6.0 and although the AGG anti-alias lines look great the output image size has increased significantly from the previous rendering without anti-alias. I was just wondering if there is a way to turn off the anti-alias for polyline rendering in Mapserver 6.0. From the documentation it appeared that the previous GD driver did not include anti-alias by default. We have attempted to switch the outputformat from the new default AGG to the previous GD driver using the outputformat directive in the map file as shown below. This changed the image size slightly suggesting that mapserver was using a different driver to render, however the lines were still rendered with anti-alias on and the image was still relatively large compared to previous mapserver verison. OUTPUTFORMAT NAME GDpng DRIVER GD/PNG MIMETYPE image/png IMAGEMODE RGB GD only supports PC256. If you set imagemode to RGB as here, mapserver will switch back to AGG. -- thomas EXTENSION png END Previously in Mapserver 5.7 we did not specify an outputformat we simply used IMAGETYPE PNG24 and the output was generated without anti-alias. Any suggestions would be greatly appreciated. If you need additional information let me know. tom THIS EMAIL IS CONFIDENTIAL. Its use or disclosure by any person other than the addressee is unauthorised. Anyone other than the intended recipient must not rely on the content of this email or any attachment to it. The sender cannot guarantee that this email or any attachment to it is free of computer viruses or other conditions which may damage or interfere with other computer systems. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] pointObj-project behaviour differences from 4.10 to 5.6 versions
Dear list, I have a webgis application working with different CRS all over the world. I have realized that the behaviour from version 4.10 of the function pointObj-project differs from the one of version 5.6 from Mapserver. For example, I try to convert (-116,-15) in 4326 and in mapscript from version 4.10 it returns (-26158630.407638,-25040425.679281) when passing to 32630. On the other hand, in version 5.6 of mapscript it returns the original coordinates without transforming them. Is this intended or am I doing something wrong? Which is the intended behaviour of project function in MapServer 5.6? Best regards, -- Juan Manuel Moreno Rivera. University of Castilla-La Mancha Albacete, Spain ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Turn off anti-alias Mapserver 6.0
Tom, Try this output definition: OUTPUTFORMAT NAME agg_qn DRIVER AGG/PNG EXTENSION png MIMETYPE image/png IMAGEMODE RGB FORMATOPTION INTERLACE=false FORMATOPTION QUANTIZE_NEW=ON FORMATOPTION QUANTIZE_FORCE=ON FORMATOPTION QUANTIZE_DITHER=OFF FORMATOPTION QUANTIZE_COLORS=256 #TRANSPARENT ON #FORMATOPTION TRANSPARENT=ON END -Steve W On 4/12/2012 12:20 AM, Thomas Joseph wrote: We have recently upgraded from Mapserver 5.7 to 6.0 and although the AGG anti-alias lines look great the output image size has increased significantly from the previous rendering without anti-alias. I was just wondering if there is a way to turn off the anti-alias for polyline rendering in Mapserver 6.0. From the documentation it appeared that the previous GD driver did not include anti-alias by default. We have attempted to switch the outputformat from the new default AGG to the previous GD driver using the outputformat directive in the map file as shown below. This changed the image size slightly suggesting that mapserver was using a different driver to render, however the lines were still rendered with anti-alias on and the image was still relatively large compared to previous mapserver verison. OUTPUTFORMAT NAME GDpng DRIVER GD/PNG MIMETYPE image/png IMAGEMODE RGB EXTENSION png END Previously in Mapserver 5.7 we did not specify an outputformat we simply used IMAGETYPE PNG24 and the output was generated without anti-alias. Any suggestions would be greatly appreciated. If you need additional information let me know. tom THIS EMAIL IS CONFIDENTIAL. Its use or disclosure by any person other than the addressee is unauthorised. Anyone other than the intended recipient must not rely on the content of this email or any attachment to it. The sender cannot guarantee that this email or any attachment to it is free of computer viruses or other conditions which may damage or interfere with other computer systems. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users