[mapserver-users] STYLEITEM AUTO or similar for other connection types?

2013-05-23 Thread Jackey Cheung
Hi all,

Just a short question, does the STYLEITEM supported only for OGR?

Say I have a column that stores OGR style definitions in Oracle. Must I use
OGR connection type to utilize those styles? I've tried use ORACLESPATIAL,
but can't seem to use those styles.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] STYLEITEM AUTO or similar for other connection types?

2013-05-23 Thread Tamas Szekeres
Hi,

Assuming the style definition exists in OGR style format or in MapServer
STYLE or CLASS definitions, you can use STYLEITEM attributename which
should work with all drivers (not just with OGR)

When using the OGR driver (and not using the MapInfo driver), you should
use OGR_STYLE as the attribute name to have the feature style set up by OGR
automatically. In this case the style attribute should contain OGR style
strings.


Best regards,

Tamas



2013/5/23 Jackey Cheung cheung.jac...@gmail.com

 Hi all,

 Just a short question, does the STYLEITEM supported only for OGR?

 Say I have a column that stores OGR style definitions in Oracle. Must I
 use OGR connection type to utilize those styles? I've tried use
 ORACLESPATIAL, but can't seem to use those styles.

 ___
 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] STYLEITEM AUTO or similar for other connection types?

2013-05-23 Thread Jackey Cheung
Hi Tamas,

Thanks for your reply. I've made the OGR part right, and can generate maps.

However, the work I have on hand is not satisfied yet. Basically, the
project uses MapInfo+Oracle. So in order to make it work on both MapInfo
and MapServer, I have to populate two style columns, MI_STYLE populated by
MapInfo automatically, and the OGR_STYLE populated by hand or extra program
(or script). I have used ogr2ogr to convert data originally. But ogr2ogr
can only populate the OGR_STYLE column. Whilst MapInfo can only populate
the MI_STYLE column. I still figuring out a solution to this.


On Thu, May 23, 2013 at 4:39 PM, Tamas Szekeres szeker...@gmail.com wrote:

 Hi,

 Assuming the style definition exists in OGR style format or in MapServer
 STYLE or CLASS definitions, you can use STYLEITEM attributename which
 should work with all drivers (not just with OGR)

 When using the OGR driver (and not using the MapInfo driver), you should
 use OGR_STYLE as the attribute name to have the feature style set up by OGR
 automatically. In this case the style attribute should contain OGR style
 strings.


 Best regards,

 Tamas



 2013/5/23 Jackey Cheung cheung.jac...@gmail.com

 Hi all,

 Just a short question, does the STYLEITEM supported only for OGR?

 Say I have a column that stores OGR style definitions in Oracle. Must I
 use OGR connection type to utilize those styles? I've tried use
 ORACLESPATIAL, but can't seem to use those styles.

 ___
 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