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

2011-06-01 Thread prab.raja
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-338...@n2.nabble.com> wrote:

> According to 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://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://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.
>
>



-- 
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.___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


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

2011-06-01 Thread prab.raja
yes.
Below is the style copied from my Map file.
STYLE
COLOR 0 140 70
WIDTH [gid]
 END

On Wed, Jun 1, 2011 at 2:12 PM, thomas bonfort [via OSGeo.org] <
ml-node+6426084-491165995-338...@n2.nabble.com> wrote:

> are you using the exact syntax of your first example, i.e. "WIDTH [gid]" ?
>
> On Wed, Jun 1, 2011 at 10:27, prab.raja <[hidden 
> email]>
> wrote:
>
> > 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] <[hidden
> > email]> wrote:
> >>
> >> According to http://www.mapserver.org/mapfile/style.html
>  ">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://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://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.
> >
> >
> > --
> > Regards,
> > Prabu Raja
> >
> >
> > 
> > View this message in context: Re: Is it posible to substitute a value
> from
> > table for width of line
> > Sent from the Mapserver - User mailing list archive at Nabble.com.
> >
> > ___
> > mapserver-users mailing list
> > [hidden email] 
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
> >
> ___
> mapserver-users mailing list
> [hidden email] 
> 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-tp6425708p6426084.html
>  To unsubscribe from Is it posible to substitute a value from table for
> width of line, click 
> here.
>
>



-- 
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-tp6425708p6426093.html
Sent from the Mapserver - User mailing list archive at Nabble.com.___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


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

2011-06-01 Thread prab.raja
Below is the mapserv.exe -v output.

It shows MapServer version 5.2.1 only.

MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=PDF
 OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
SUPPORTS=ICO
NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI
SUP
PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS
INPUT=OGR
 INPUT=GDAL INPUT=SHAPEFILE

On Wed, Jun 1, 2011 at 2:24 PM, thomas bonfort [via OSGeo.org] <
ml-node+6426114-1083275088-338...@n2.nabble.com> wrote:

> then make sure you are actually using 5.2.1 and not an older version
>
> On Wed, Jun 1, 2011 at 10:47, prab.raja <[hidden 
> email]>
> wrote:
>
> > yes.
> > Below is the style copied from my Map file.
> > STYLE
> > COLOR 0 140 70
> > WIDTH [gid]
> >  END
> > On Wed, Jun 1, 2011 at 2:12 PM, thomas bonfort [via OSGeo.org] <[hidden
> > email]> wrote:
> >>
> >> are you using the exact syntax of your first example, i.e. "WIDTH [gid]"
> ?
> >>
> >> On Wed, Jun 1, 2011 at 10:27, prab.raja <[hidden email]> wrote:
> >> > 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] <[hidden
>
> >> > email]> wrote:
> >> >>
> >> >> According to  >> >> href="http://www.mapserver.org/mapfile/style.html ">
> http://www.mapserver.org/mapfile/style.html ">http://www.mapserver.org/mapfile/style.html ">
> 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://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://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.
> >> >
> >> >
> >> > --
> >> > Regards,
> >> > Prabu Raja
> >> >
> >> >
> >> > 
> >> > View this message in context: Re: Is it posible to substitute a value
> >> > from
> >> > table for width of line
> >> > Sent from the Mapserver - User mailing list archive at Nabble.com.
> >> >
> >> > ___
> >> > mapserver-users mailing list
> >> > [hidden email]
> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >> >
> >> >
> >> ___
> >> mapserver-users mailing list
> >> [hidden email]
> >> 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-tp6425708p6426084.html
> >> T

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

2011-06-01 Thread prab.raja
OK. Thanks!

On Wed, Jun 1, 2011 at 2:34 PM, thomas bonfort [via OSGeo.org] <
ml-node+6426142-1064851714-338...@n2.nabble.com> wrote:

> ok. the docs are wrong. WIDTH binding is available since mapserver 5.4.0.
>
> On Wed, Jun 1, 2011 at 10:58, prab.raja <[hidden 
> email]>
> wrote:
>
> > Below is the mapserv.exe -v output.
> > It shows MapServer version 5.2.1 only.
> > MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> > OUTPUT=PDF
> >  OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
> > SUPPORTS=ICO
> > NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
> > SUPPORTS=WFS_SERVER
> > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
> SUPPORTS=FASTCGI
> > SUP
> > PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS
> > INPUT=OGR
> >  INPUT=GDAL INPUT=SHAPEFILE
> > On Wed, Jun 1, 2011 at 2:24 PM, thomas bonfort [via OSGeo.org] <[hidden
> > email]> wrote:
> >>
> >> then make sure you are actually using 5.2.1 and not an older version
> >>
> >> On Wed, Jun 1, 2011 at 10:47, prab.raja <[hidden email]> wrote:
> >> > yes.
> >> > Below is the style copied from my Map file.
> >> > STYLE
> >> > COLOR 0 140 70
> >> > WIDTH [gid]
> >> >  END
> >> > On Wed, Jun 1, 2011 at 2:12 PM, thomas bonfort [via OSGeo.org]
> <[hidden
> >> > email]> wrote:
> >> >>
> >> >> are you using the exact syntax of your first example, i.e. "WIDTH
> >> >> [gid]" ?
> >> >>
> >> >> On Wed, Jun 1, 2011 at 10:27, prab.raja <[hidden email]> wrote:
> >> >> > 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]
> >> >> > <[hidden
> >> >> > email]> wrote:
> >> >> >>
> >> >> >> According to  >> >> >> href=" >> >> >> href="http://www.mapserver.org/mapfile/style.html ">
> http://www.mapserver.org/mapfile/style.html ">http://www.mapserver.org/mapfile/style.html ">
> http://www.mapserver.org/mapfile/style.html "> >> >> >> href="http://www.mapserver.org/mapfile/style.html ">
> http://www.mapserver.org/mapfile/style.html ">http://www.mapserver.org/mapfile/style.html ">
> 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://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://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.
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Regards,
> >> >> > Prabu Raja
> >> >> >
> >> >> >
> >>

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

2011-06-01 Thread thomas bonfort
are you using the exact syntax of your first example, i.e. "WIDTH [gid]" ?

On Wed, Jun 1, 2011 at 10:27, prab.raja  wrote:
> 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] <[hidden
> email]> wrote:
>>
>> According to 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://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://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.
>
>
> --
> Regards,
> Prabu Raja
>
>
> 
> View this message in context: Re: Is it posible to substitute a value from
> table for width of line
> Sent from the Mapserver - User mailing list archive at Nabble.com.
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


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

2011-06-01 Thread thomas bonfort
then make sure you are actually using 5.2.1 and not an older version

On Wed, Jun 1, 2011 at 10:47, prab.raja  wrote:
> yes.
> Below is the style copied from my Map file.
>         STYLE
>             COLOR 0 140 70
>             WIDTH [gid]
>          END
> On Wed, Jun 1, 2011 at 2:12 PM, thomas bonfort [via OSGeo.org] <[hidden
> email]> wrote:
>>
>> are you using the exact syntax of your first example, i.e. "WIDTH [gid]" ?
>>
>> On Wed, Jun 1, 2011 at 10:27, prab.raja <[hidden email]> wrote:
>> > 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] <[hidden
>> > email]> wrote:
>> >>
>> >> According to > >> href="http://www.mapserver.org/mapfile/style.html ";>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://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://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.
>> >
>> >
>> > --
>> > Regards,
>> > Prabu Raja
>> >
>> >
>> > 
>> > View this message in context: Re: Is it posible to substitute a value
>> > from
>> > table for width of line
>> > Sent from the Mapserver - User mailing list archive at Nabble.com.
>> >
>> > ___
>> > mapserver-users mailing list
>> > [hidden email]
>> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >
>> >
>> ___
>> mapserver-users mailing list
>> [hidden email]
>> 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-tp6425708p6426084.html
>> To unsubscribe from Is it posible to substitute a value from table for
>> width of line, click here.
>
>
> --
> Regards,
> Prabu Raja
>
>
> 
> View this message in context: Re: Is it posible to substitute a value from
> table for width of line
> Sent from the Mapserver - User mailing list archive at Nabble.com.
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


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

2011-06-01 Thread thomas bonfort
ok. the docs are wrong. WIDTH binding is available since mapserver 5.4.0.

On Wed, Jun 1, 2011 at 10:58, prab.raja  wrote:
> Below is the mapserv.exe -v output.
> It shows MapServer version 5.2.1 only.
> MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
> OUTPUT=PDF
>  OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
> SUPPORTS=ICO
> NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
> SUPPORTS=WFS_SERVER
> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI
> SUP
> PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS
> INPUT=OGR
>  INPUT=GDAL INPUT=SHAPEFILE
> On Wed, Jun 1, 2011 at 2:24 PM, thomas bonfort [via OSGeo.org] <[hidden
> email]> wrote:
>>
>> then make sure you are actually using 5.2.1 and not an older version
>>
>> On Wed, Jun 1, 2011 at 10:47, prab.raja <[hidden email]> wrote:
>> > yes.
>> > Below is the style copied from my Map file.
>> >         STYLE
>> >             COLOR 0 140 70
>> >             WIDTH [gid]
>> >          END
>> > On Wed, Jun 1, 2011 at 2:12 PM, thomas bonfort [via OSGeo.org] <[hidden
>> > email]> wrote:
>> >>
>> >> are you using the exact syntax of your first example, i.e. "WIDTH
>> >> [gid]" ?
>> >>
>> >> On Wed, Jun 1, 2011 at 10:27, prab.raja <[hidden email]> wrote:
>> >> > 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]
>> >> > <[hidden
>> >> > email]> wrote:
>> >> >>
>> >> >> According to > >> >> href="> >> >> href="http://www.mapserver.org/mapfile/style.html ";>http://www.mapserver.org/mapfile/style.html ";>> >> >> href="http://www.mapserver.org/mapfile/style.html ";>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://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://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.
>> >> >
>> >> >
>> >> > --
>> >> > Regards,
>> >> > Prabu Raja
>> >> >
>> >> >
>> >> > 
>> >> > View this message in context: Re: Is it posible to substitute a value
>> >> > from
>> >> > table for width of line
>> >> > Sent from the Mapserver - User mailing list archive at Nabble.com.
>> >> >
>> >> > ___
>> >> > mapserver-users mailing list
>> >> > [hidden email]
>> >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >> >
>> >> >
>> >> ___
>> >> mapserver-users mailing list
>> >> [hidden email]
>> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >>
>> >>
>> >> 

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

2011-06-01 Thread Brent Fraser

There's even a ticket:

http://trac.osgeo.org/mapserver/ticket/3448

Best Regards,
Brent Fraser


On 6/1/2011 3:18 AM, prab.raja wrote:

OK. Thanks!

On Wed, Jun 1, 2011 at 2:34 PM, thomas bonfort [via OSGeo.org] 
<[hidden email] > wrote:


ok. the docs are wrong. WIDTH binding is available since mapserver
5.4.0.

On Wed, Jun 1, 2011 at 10:58, prab.raja <[hidden email]
> wrote:

> Below is the mapserv.exe -v output.
> It shows MapServer version 5.2.1 only.
> MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
OUTPUT=WBMP
> OUTPUT=PDF
>  OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
> SUPPORTS=ICO
> NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
> SUPPORTS=WFS_SERVER
> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
SUPPORTS=FASTCGI
> SUP
> PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG
INPUT=POSTGIS
> INPUT=OGR
>  INPUT=GDAL INPUT=SHAPEFILE
> On Wed, Jun 1, 2011 at 2:24 PM, thomas bonfort [via OSGeo.org]
<[hidden

> email]> wrote:
>>
>> then make sure you are actually using 5.2.1 and not an older
version
>>
>> On Wed, Jun 1, 2011 at 10:47, prab.raja <[hidden email]> wrote:
>> > yes.
>> > Below is the style copied from my Map file.
>> > STYLE
>> > COLOR 0 140 70
>> > WIDTH [gid]
>> >  END
>> > On Wed, Jun 1, 2011 at 2:12 PM, thomas bonfort [via
OSGeo.org] <[hidden
>> > email]> wrote:
>> >>
>> >> are you using the exact syntax of your first example, i.e.
"WIDTH
>> >> [gid]" ?
>> >>
>> >> On Wed, Jun 1, 2011 at 10:27, prab.raja <[hidden email]> wrote:
>> >> > 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]
>> >> > <[hidden
>> >> > email]> wrote:
>> >> >>
>> >> >> According to > >> >> href="> >> >> href="http://www.mapserver.org/mapfile/style.html 
">http://www.mapserver.org/mapfile/style.html ">http://www.mapserver.org/mapfile/style.html 
">http://www.mapserver.org/mapfile/style.html ">> >> >> href="http://www.mapserver.org/mapfile/style.html 
">http://www.mapserver.org/mapfile/style.html ">http://www.mapserver.org/mapfile/style.html 
">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://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://lists.osgeo.org/mailman/listinfo/mapserver-users
>> >> >>
>> >> >>
>> >> >> 
>> >> >> If you reply to this email, your message will be added to
the
>> >> >> discussion
>> >> >> below:
>> >> >>
>> >> >>
>> >> >>
>> >> >