Opened 16 years ago
Last modified 16 years ago
#2735 new defect
msConnectLayer should be exposed to the mapscript interface
Reported by: | tamas | Owned by: | jmckenna |
---|---|---|---|
Priority: | normal | Milestone: | 5.6 release |
Component: | MapScript | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: | dmorissette, jmckenna |
Description
By changing the connectiontype of the layer doesn't re-initialize vtable according to the new connectiontype, therefore the old vtable methods are called.
Change History (4)
comment:1 by , 16 years ago
Cc: | added |
---|
comment:2 by , 16 years ago
Component: | MapScript-SWIG → MapScript |
---|---|
Owner: | changed from | to
Changed the name to setConnectionType in r7847. Reassign to Daniel because of the PHP change.
comment:3 by , 16 years ago
Status: | new → assigned |
---|
comment:4 by , 16 years ago
Cc: | added |
---|---|
Owner: | changed from | to
Status: | assigned → new |
Added layer->setConnectionType() to PHP MapScript and made connectiontype read-only in SVN trunk r7853.
I also found out in doing this that msConnectLayer() requires that the caller close the layer correctly prior to calling it, so I've included a test to check if layer is open and close it before calling msConnectLayer() in both the PHP and SWIG cases.
Reassigning to Jeff for docs updates.
Adding myself to CC to port the change to PHP MapScript.