[Chameleon] outline width fails to persist

Paul Spencer pspencer at dmsolutions.ca
Thu Sep 8 13:22:29 EDT 2005


try using a symbol referenced by name or id in your map file, 'circle' 
is often good for thick lines

Cheers

Paul

Ken-ichi Ueda wrote:
> Hi Paul.  Thanks for the tip, and sorry about the belated reply.  I
> ran that little script and the style in the resulting mapfile looks
> like this:
> 
> STYLE
>   ANGLE 360
>   OUTLINECOLOR 0 142 255
>   SYMBOL 0
>   SIZE 2
> END
> 
> So it seems to drop the WIDTH property, or perhaps WIDTH just gets
> translated into SYMBOL 0 of SIZE 2.  I guess I'll file a bug.  Thanks
> again.
> 
> -Ken-ichi
> 
> On 9/6/05, Paul Spencer <pspencer at dmsolutions.ca> wrote:
> 
>>Ken,
>>
>>Chameleon does nothing to change styles in this way, AFAIK.  In cases
>>like this, I usually suspect MapServer is doing something bad when
>>saving a map file.
>>
>>Try this script:
>>
>><?php
>>if (!extension_loaded('MapScript'))
>>     dl('php_mapscript.'.PHP_SHLIB_SUFFIX);
>>
>>$oMap = ms_newMapObj( 'path to map file' );
>>$oMap->save( '/tmp/map/file/path' );
>>?>
>>
>>and compare the saved version with the original.  If I am right, then
>>the width in the style element will have been changed ... and you can
>>file a bug on the mapserver bugzilla.  If not, then I'll dig into it at
>>this end (or Bill will ;))
>>
>>Cheers
>>
>>Paul
>>
>>Ken-ichi wrote:
>>
>>>Hi all.  I only recently realized you can now set a width in the STYLE
>>>element of a polygon layer, thereby controlling the width of the
>>>outline.  However, it seems that in Chameleon, the width reverts to 1
>>>any time the map is refreshed (zoom, pan, update, etc).  This does not
>>>occur in a simple phpMapScript application, so I presume it's a
>>>Chameleon issue.  Here's my layer definition:
>>>
>>>LAYER
>>>    NAME "30 min Quads"
>>>    GROUP "Default"
>>>    STATUS ON
>>>    DATA "the_geom from vtm_quads"
>>>    TYPE POLYGON
>>>    CONNECTIONTYPE POSTGIS
>>>    CONNECTION "user=foo dbname=bar"
>>>    UNITS METERS
>>>    LABELITEM "vtm_quad"
>>>    LABELMAXSCALE 2000000
>>>          PROJECTION
>>>            "init=epsg:1000"
>>>        END
>>>    CLASS
>>>        EXPRESSION ([size]=30)
>>>        LABEL
>>>            TYPE TRUETYPE
>>>            FONT "fritqat"
>>>            SIZE 8
>>>            POSITION CC
>>>            OFFSET 0 0
>>>            COLOR 0 142 255
>>>            OUTLINECOLOR 255 244 221
>>>            ANTIALIAS TRUE
>>>            PARTIALS TRUE
>>>            FORCE FALSE
>>>        END
>>>        STYLE
>>>            OUTLINECOLOR 0 142 255
>>>            WIDTH 2
>>>
>>>        END
>>>    END
>>>END
>>>
>>>You can see what I'm talking about at
>>>
>>>http://vtm.berkeley.edu/mapbrowser/
>>>
>>>(forgive the poor performance, still working that out).
>>>
>>>-Ken-ichi
>>>_______________________________________________
>>>Chameleon mailing list
>>>Chameleon at lists.maptools.org
>>>http://lists.maptools.org/mailman/listinfo/chameleon
>>>
>>
>>--
>>+-----------------------------------------------------------------+
>>|Paul Spencer                           pspencer at dmsolutions.ca   |
>>+-----------------------------------------------------------------+
>>|Applications & Software Development                              |
>>|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
>>+-----------------------------------------------------------------+
>>
> 
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
> 

-- 
+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+


More information about the Chameleon mailing list