[mapserver-users] AGG Rendering problem
Moen, Paul T.
pmoen at nd.gov
Mon Oct 26 06:46:04 PDT 2009
Also try setting the IMAGETYPE to the name of your output format. In
your example you would want to set your image type as follows.
IMAGETYPE AGG_JPEG
By setting the imagetype to JPEG, I believe it would actually using
the default output format as shown at http://mapserver.org/mapfile/outputformat.html
.
OUTPUTFORMAT
NAME jpeg
DRIVER "GD/JPEG"
MIMETYPE "image/jpeg"
IMAGEMODE RGB
EXTENSION "jpg"
END
Paul
On Oct 26, 2009, at 8:41 AM, Rahkonen Jukka wrote:
> Hi,
>
> Try adding MIMETYPE to outputformat. I guess that without it
> Mapserver is using default for jpeg requests. If you use, while
> testing, your own mimetype like
> MIMETYPE "image/jpeg2" and in request use &FORMAT=image/jpeg2 you
> should be able to compare what happens with image/jpeg and image/
> jpeg2. If jpeg2 works you know that Mapserver if using your own
> imageformat because otherwise image/jpeg2 would not be recognised.
> Then rename AGG MIMETYPE to image/jpeg and see if the output now
> seems to be generated by AGG.
>
> -Jukka Rahkonen-
>
>> -----Alkuperäinen viesti-----
>> Lähettäjä: mapserver-users-bounces at lists.osgeo.org
>> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Tony Baylis
>> Lähetetty: 26. lokakuuta 2009 15:15
>> Vastaanottaja: mapserver-users at lists.osgeo.org
>> Aihe: [mapserver-users] AGG Rendering problem
>>
>> Hi all,
>>
>> This is my first post in a long time so be gentle...My
>> problem is I have finally updated an old server to use
>> MapServer 5.4.2 and want to use AGG rendering I have done
>> this without a problem on another server earlier in the year
>> but for some reason whenever I add the 'OUTPUTFORMAT'
>> section and remove 'IMAGETYPE' I get a Connection Lost type
>> error from the browser. Replace 'IMAGETYPE' and the
>> connection is restored but the map is definitely not anti-aliased.
>>
>> Below is the relevant section from my mapfile and below that
>> the output from a ./mapserv -v. Both outputs match the
>> server that works.
>>
>> #IMAGETYPE JPEG
>> OUTPUTFORMAT
>> NAME "AGG_JPEG"
>> DRIVER "AGG/JPEG"
>> IMAGEMODE RGB
>> END
>>
>> ./mapserv -vMapServer version 5.4.2 OUTPUT=GIF OUTPUT=PNG
>> OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG
>> SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT
>> SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=TIFF
>> INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>>
>> Here's hoping you can help.
>>
>> Tony
>>
>> --
>> Tony Baylis
>> Spatial Information Specialist
>> Resource and Exploration Mapping
>> Suite 8, 290 Boundary St
>> Spring Hill QLD 4000
>> Ph 3832 1600
>> Fax 3832 1603
>> Mob 0419 759 131
>> Email tony.baylis at resexmap.com.au
>> www resexmap.com.au
>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list