But when I tried this mapserver gives error message as <b>&quot;getInteger(): Symbol definition error. Parsing error near (gid)&quot;. </b><div><br></div><div><b></b>I am using MapServer version 5.2.1.<br><br><div class="gmail_quote">

On Wed, Jun 1, 2011 at 1:48 PM, Havard Tveite [via OSGeo.org] <span dir="ltr">&lt;<a href="/user/SendEmail.jtp?type=node&node=6426054&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">

        According to &lt;URL: <a href="http://www.mapserver.org/mapfile/style.html" rel="nofollow" link="external" target="_blank">http://www.mapserver.org/mapfile/style.html</a> &gt;
<br>that should be possible.
<br><br>Håvard
<br><br>On 6/1/2011 8:09 AM, prab.raja wrote:
</div><div><div><div></div><div class="h5"><div class='shrinkable-quote'><br>&gt; Hi,
<br>&gt; I would like to know if it&#39;s posible to draw line layer with variable width
<br>&gt; from database table.
<br>&gt;
<br>&gt; Something like this?
<br>&gt;
<br>&gt; LAYER
<br>&gt;        NAME line_layer
<br>&gt;        CONNECTIONTYPE postgis
<br>&gt;        CONNECTION &quot;user=postgres password=****** dbname=shpdb host=localhost
<br>&gt; port=5432&quot;
<br>&gt;        DATA &quot;the_geom FROM  (SELECT gid, the_geom FROM line_layer)
<br>&gt;           AS SUBQUERY using unique gid&quot;
<br>&gt;        PROCESSING &quot;CLOSE_CONNECTION=DEFER&quot;
<br>&gt;        TYPE line
<br>&gt;        OPACITY 100
<br>&gt;        STATUS Off
<br>&gt;        CLASS
<br>&gt;           STYLE
<br>&gt;              COLOR 0 140 70
<br>&gt;              WIDTH [gid]
<br>&gt;           END
<br>&gt;        END
<br>&gt;     END
<br>&gt;
<br>&gt; --
<br>&gt; View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6425708.html" rel="nofollow" link="external" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6425708.html</a></div>

&gt; Sent from the Mapserver - User mailing list archive at Nabble.com.
<br>&gt; _______________________________________________
<br>&gt; mapserver-users mailing list
<br></div></div>&gt; <a href="http://user/SendEmail.jtp?type=node&amp;node=6426034&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><div class="im">&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>&gt;
</div></div><br><div class="im">-- 
<br>Håvard Tveite
<br>Department of Mathematical Sciences and Technology, UMB
<br>Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
<br>Phone: +47 64965483 Fax: +47 64965401 <a href="http://www.umb.no/imt/" rel="nofollow" link="external" target="_blank">http://www.umb.no/imt/</a><br>_______________________________________________
<br>mapserver-users mailing list
<br></div><a href="http://user/SendEmail.jtp?type=node&amp;node=6426034&amp;i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><div class="im"><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="nofollow" link="external" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
        
        <br>
        <br>
        </div><hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426034.html" target="_blank" rel="nofollow" link="external">http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426034.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em">
                
                To unsubscribe from Is it posible to substitute a value from table for width of line, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.
        </div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Prabu Raja<br><br>
</div>

        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426054.html">Re: Is it posible to substitute a value from table for width of line</a><br/>
Sent from the <a href="http://osgeo-org.1803224.n2.nabble.com/Mapserver-User-f1969211.html">Mapserver - User mailing list archive</a> at Nabble.com.<br/>