[mapserver-users] AGG Rendering problem

Thomas Bonfort thomas.bonfort at camptocamp.com
Wed Oct 28 04:05:51 EDT 2009


Tony, could you post the symbol definition and how you used it in your mapfile?
thanks,
thomas
www.camptocamp.com
+33 5 16 57 01 02



On Tue, Oct 27, 2009 at 22:34, Tony Baylis <tony.baylis at resexmap.com.au> wrote:
> Thanks to Rahkonon and and Paul for their responses but neither solved the
> problem.  I eventually moved a map from my existing working mapserver/agg
> instance to the rebuilt one and after doing the required bits to point it at
> the right data IT also did not work in AGG rendering mode.
>
> I then removed all layers and started adding them back to the map one by one
> to see if it was a problem with the layer setup somewhere...sure enough one
> of the layers was referencing a symbol in the symbolset that AGG obviously
> dislikes.  Once I removed the 'SIZE' criteria from the 'STYLE' AGG rendering
> worked.  Since putting the original map together I have created another
> (better) symbol for this object and using this all is working well.
>
> So there you have it...a symbol working with standard rendering but not with
> AGG, the result being the application seemed to lose connection.
>
> 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
>
>
>
> 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