[mapserver-users] Re: Is it posible to substitute a value from table for width of line

prab.raja prab.raja at gmail.com
Wed Jun 1 04:27:17 EDT 2011


But when I tried this mapserver gives error message as *"getInteger():
Symbol definition error. Parsing error near (gid)". *

**I am using MapServer version 5.2.1.

On Wed, Jun 1, 2011 at 1:48 PM, Havard Tveite [via OSGeo.org] <
ml-node+6426034-1909892157-338562 at n2.nabble.com> wrote:

> According to <URL: http://www.mapserver.org/mapfile/style.html >
> that should be possible.
>
> Håvard
>
> On 6/1/2011 8:09 AM, prab.raja wrote:
>
> > Hi,
> > I would like to know if it's posible to draw line layer with variable
> width
> > from database table.
> >
> > Something like this?
> >
> > LAYER
> >        NAME line_layer
> >        CONNECTIONTYPE postgis
> >        CONNECTION "user=postgres password=****** dbname=shpdb
> host=localhost
> > port=5432"
> >        DATA "the_geom FROM  (SELECT gid, the_geom FROM line_layer)
> >           AS SUBQUERY using unique gid"
> >        PROCESSING "CLOSE_CONNECTION=DEFER"
> >        TYPE line
> >        OPACITY 100
> >        STATUS Off
> >        CLASS
> >           STYLE
> >              COLOR 0 140 70
> >              WIDTH [gid]
> >           END
> >        END
> >     END
> >
> > --
> > View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6425708.html
> > Sent from the Mapserver - User mailing list archive at Nabble.com.
> > _______________________________________________
> > mapserver-users mailing list
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=6426034&i=0>
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
>
> --
> Håvard Tveite
> Department of Mathematical Sciences and Technology, UMB
> Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
> Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/
> _______________________________________________
> mapserver-users mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=6426034&i=1>
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426034.html
>  To unsubscribe from Is it posible to substitute a value from table for
> width of line, click here<http://osgeo-org.1803224.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=6425708&code=cHJhYi5yYWphQGdtYWlsLmNvbXw2NDI1NzA4fDM2NjU1NDU1NA==>.
>
>



-- 
Regards,
Prabu Raja


--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Is-it-posible-to-substitute-a-value-from-table-for-width-of-line-tp6425708p6426054.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110601/5e680e2a/attachment-0001.html


More information about the mapserver-users mailing list