Bug 800

Summary: [Chameleon-Widget]ExtractWFSData widget needs php_ogr.so
Product: Chameleon Reporter: Normand Savard <nsavard@mapgears.com>
Component: WidgetAssignee: William Bronsema <wbronsema@dmsolutions.ca>
Status: RESOLVED FIXED    
Severity: normal CC: chameleon-dev@lists.maptools.org
Priority: P2    
Version: 1.99   
Target Milestone: 1.99 beta 4   
Hardware: PC   
OS: Linux   
Whiteboard:

Description From 2004-10-29 14:53:10
The ExtractWFSData widget in the "sample_ogc.phtml" application is looking for
the php_ogr module.  Maybe this is just a documentation issue.  


Fedora Core 2
Mozilla 1.6
Chameleon beta 3 20041022
------------------
PHP warning:

[29-Oct-2004 14:36:32] PHP Warning:  dl(): Unable to load dynamic library
'/usr/local/php436/lib/php/extensions/php_ogr.so' -
/usr/local/php436/lib/php/extensions/php_ogr.so: cannot open shared object file:
No such file or directory in
/home/nsavard/proj/chameleon_beta/htdocs/common/ogr/ogr2ogr.php on line 42
[29-Oct-2004 14:36:32] PHP Fatal error:  Call to undefined function: 
ogrregisterall() in
/home/nsavard/proj/chameleon_beta/htdocs/common/ogr/ogr2ogr.php on line 47
------- Comment #1 From 2004-10-29 21:26:39 -------
Changed target to 1.99 RC 1.
------- Comment #2 From 2004-11-01 20:22:12 -------
we definitely need to document that the php_ogr module is required by this
widget.

The widget should detect the failure to load the module in its constructor or
InitDefaults and record an appropriate error in the session error manager.  The
widget should also disable itself in this case.
------- Comment #3 From 2004-12-02 09:06:00 -------
Looking at this one now.
------- Comment #4 From 2004-12-02 11:57:25 -------
Fixed in CVS.  In order to prevent unecessary loading of modules, the check for
the ogr support is in the popup window.  If the module is not loaded then the
application returns an error message in the window instead of the interface.