[mapserver-users] binding color of polygons to a specific field in MSSQL Server 2008

2010-02-25 Thread Kiks

I have a table in MS SQL Server 2008 with many spatial records. They are
correctly visualized with a WMS call.
I woundered if it is possible for every polygon of that table to read the
fill color from a specific field of the same table, just like you can do
this with shape files as I read from the doc:

...[Attribute] was introduced in version 5.0, to specify the item name in
the attribute table to use for color values. The hard brackets [] are
required. For example, if your shapefile‘s DBF has a field named “MYCOLOR”
that holds color values for each record, your STYLE object for might
contain:

STYLE
  COLOR [MYCOLOR]
  OUTLINECOLOR 150 150 150
END ...

thanks to everybody,
Kiks
-- 
View this message in context: 
http://n2.nabble.com/binding-color-of-polygons-to-a-specific-field-in-MSSQL-Server-2008-tp4633357p4633357.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


Re: [mapserver-users] binding color of polygons to a specific field in MSSQL Server 2008

2010-02-25 Thread Tamas Szekeres
This feature is not data source specific, so I suspect it would work with
the MSSQL2008 driver as well.

Best regards,

Tamas


2010/2/25 Kiks enrico.o...@gmail.com


 I have a table in MS SQL Server 2008 with many spatial records. They are
 correctly visualized with a WMS call.
 I woundered if it is possible for every polygon of that table to read the
 fill color from a specific field of the same table, just like you can do
 this with shape files as I read from the doc:

 ...[Attribute] was introduced in version 5.0, to specify the item name in
 the attribute table to use for color values. The hard brackets [] are
 required. For example, if your shapefile‘s DBF has a field named “MYCOLOR”
 that holds color values for each record, your STYLE object for might
 contain:

 STYLE
  COLOR [MYCOLOR]
  OUTLINECOLOR 150 150 150
 END ...

 thanks to everybody,
 Kiks
 --
 View this message in context:
 http://n2.nabble.com/binding-color-of-polygons-to-a-specific-field-in-MSSQL-Server-2008-tp4633357p4633357.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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users