[mapserver-users] P.MAPPER 4.0 overrides rendering setting in map file?

Vladimir Cvejanovic vladimir at gessolutions.com
Mon Feb 2 03:47:35 PST 2009


Hi Everyone,

I've joined the list to see if anyone else has encountered the following 
issue and can shed some light on how to resolve it.

I'm not getting any anti-aliasing in AGG rendered images when accessing 
the map through pmapper. The weird thing is that rendering the same 
mapfile using mapserver CGI does produce anti-aliased output:

CGI Example:
localhost/cgi-bin/mapserv?map=/var/www/pmapper-4.0-beta/config/default/example-proj.map&layer=polyshape&mode=map

My suspicion is that the output I'm seeing in pmapper isn't actually 
rendered using AGG as instructed by the mapfile but is defaulting to GD. 
I haven't been able to confirm this suspicion because even with debug 
cranked up to 5 I can't seem to generate any debug info regarding the 
rendering engine.

My second suspicion is that I may be missing a crucial pmapper specific 
config param in either the mapfile or the pmapper config file 
(config_default.xml in 4.0-beta). I'm not able to find docs for v4.

OS: Ubuntu Intrepid (ssame behaviour confirmed on Debian Lenny)
PMAPPER v4.0-beta
HTTPD: Apache2
Mapserver 5.0.3
Mapscript for php5
Mapfile - included below

I would be very grateful for any help this list can offer!

Regards,
Vladimir

MAP
EXTENT  -1.212047 -0.966758 0.610465 0.446515
UNITS dd
SIZE 600 500
SHAPEPATH "/var/www/example-proj"
IMAGETYPE agg_png
RESOLUTION 96

DEBUG 5
CONFIG "MS_ERRORFILE" "/var/log/php/ms-error.log"


#
# Image formats for AGG
#
 OUTPUTFORMAT   ### 24 bit PNG
  NAME 'agg_png'
  DRIVER AGG/PNG
  IMAGEMODE RGB
  MIMETYPE "image/png"
  TRANSPARENT OFF
  EXTENSION "png"
 END

#
# Start of web interface definition
#
WEB
  TEMPLATE "map.html"
  IMAGEPATH "/var/www/tmp/"
  IMAGEURL "/tmp/"
  LOG "/var/log/php/ms.log"
END  # Web

#
# Start of Reference map definition
#
REFERENCE
  EXTENT -1.212047 -0.966758 0.610465 0.446515
  IMAGE "../../images/reference.png"
  SIZE 199 149
  COLOR -1 -1 -1
  OUTLINECOLOR 255 0 0
END  # Reference

#================== START OF LAYER SECTION =====================#

LAYER
  NAME "polyshape"
  TYPE line
  DATA "polyshape"
  CLASS
    STYLE
      WIDTH 10
      COLOR 255 155 155
    END
  END  # Class
END  # Layer

END  #Map


Pmapper Ini
<pmapper>
    <ini>
        <pmapper>
            <pmTitle>p.mapper - A MapServer PHP/MapScript 
Framework</pmTitle>
            <debugLevel>3</debugLevel>
        </pmapper>
        <config>
            <pm_config_location>default</pm_config_location>
            <pm_javascript_location>javascript</pm_javascript_location>
            <pm_print_configfile>common/print.xml</pm_print_configfile>
            <pm_search_configfile>inline</pm_search_configfile>
        </config>
        <map>
            <mapFile>example-proj.map</mapFile>
            <categories>
                <category name="cat_all">
                    <group>polyshape</group>
                </category>
            </categories>
            <allGroups>
                <group>polyshape</group>
            </allGroups>
            <defGroups>
                <group>polyshape</group>
            </defGroups>
            <layerAutoRefresh>1</layerAutoRefresh>
            <imgFormat>png</imgFormat>
            <sliderMax>max</sliderMax>
            <sliderMin>100000</sliderMin>
        </map>
        <ui>
            <tocStyle>tree</tocStyle>
            <legendStyle>attached</legendStyle>
            <useCategories>0</useCategories>
            <catWithCheckbox>0</catWithCheckbox>
            <scaleLayers>1</scaleLayers>
            <icoW>18</icoW>
            <icoH>14</icoH>
        </ui>
        <locale>
            <defaultLanguage>en</defaultLanguage>
            <defaultCharset>UTF-8</defaultCharset>
            <map2unicode>1</map2unicode>
        </locale>
    </ini>
</pmapper>




More information about the MapServer-users mailing list