map.LoadLayerOptions not working with database

Description

As mentioned here: https://github.com/MapWindow/MapWinGIS/issues/109

I have a PostgreSQL layer successfully loaded into the OLE map control but can't load the style data stored from the mw_styles database table. The table exists and has a style record. I have turned on PostgreSQL statement logging and no mw_styles select SQL statement is being run.

My Powerbuilder code looks like this:

1 2 li_handle = ole_mapwindow.Object.AddLayerFromDatabase(ls_conn, "SELECT * FROM nz_primary_parcels_nztm limit 500", true) ole_mapwindow.Object.LoadLayerOptions(li_handle, "nz_primary_parcels_nztm", "")

But LoadLayerOptions returns false.

Environment

None

Status

Assignee

Paul Meems

Reporter

Paul Meems

Labels

None

Fix versions

Priority

Medium
Configure