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

Jackey Cheung cheung.jackey at gmail.com
Thu May 23 18:15:34 PDT 2013


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 <szekerest at 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.jackey at 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 at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130524/f91574ec/attachment.html>


More information about the mapserver-users mailing list