88 | | == Use of VRT derived bands with PHP MapScript == |
89 | | The above mentioned |
| 88 | == Use of VRT derived bands with PHP !MapScript == |
| 89 | The above mentioned configuration works well using !MapServer CGI. If you want to use them via PHP !MapScript the GDAL plugin directory is not identified. In order to get this working add the respective GDAL configuration variable in the PHP !MapScript code that calls the $map->draw() function or that calls the WxS/OWS functions that returns the WxS/OWS output, like |
| 90 | {{{ |
| 91 | putenv("GDAL_DRIVER_PATH=/usr/local/share/gdal/gdalplugins"); |
| 92 | $_ENV['GDAL_DRIVER_PATH'] = "/usr/local/share/gdal/gdalplugins"; |
| 93 | }}} |
| 94 | |
| 95 | (one of them might not be necessary...) |
| 96 | |
| 97 | Restart Apache and everything should work. |