| 1 | This page provides installation and configuration tips for the MapGuide 2.1 GDAL Raster Provider. Most of the information has been compiled from individuals in the user community. This document is a work in progress and incomplete. |
| 2 | |
| 3 | == Installation == |
| 4 | |
| 5 | Jason Birch posted an [http://www.mail-archive.com/mapguide-users@lists.osgeo.org/msg10886.html excellent article] |
| 6 | to the news group on where to find the vendor libraries for ECW and SID. |
| 7 | |
| 8 | The location of the installation files is not obvious. Jonathan !McIntyre has provided the following directory layout for the various libraries: |
| 9 | {{{ |
| 10 | C:\Program Files\OSGeo\MapGuide\Server\Fdo |
| 11 | Gdal16.dll - Version 1.6.0.4 |
| 12 | |
| 13 | C:\Program Files\OSGeo\MapGuide\Server\bin |
| 14 | Lti_dsdk_cdll.dll - Version 6.0.7.1407 |
| 15 | Lti_dsdk_dll.dll - Version 6.0.7.1407 |
| 16 | NCScnet.dll |
| 17 | NCSEcw.dll |
| 18 | NCSEcwC.dll |
| 19 | NCSUtil.dll |
| 20 | |
| 21 | C:\Program Files\OSGeo\MapGuide\Server\bin\gdalplugins |
| 22 | Gdal_ecw_jp2ecw.dll (01/12/2009) |
| 23 | Gdal_MrSID.dll (11/28/2008) |
| 24 | |
| 25 | }}} |
| 26 | In addition, please ensure that the GDAL Provider is listed in provider.xml |
| 27 | |
| 28 | == Debugging == |
| 29 | Jonathan has also supplied some debugging steps for the GDAL Provider: |
| 30 | |
| 31 | 1. Starting MG in debug mode |
| 32 | a. Open cmd window |
| 33 | a. Cd to C:\Program Files\OSGeo\!MapGuide\Server\bin |
| 34 | a. Type ‘set cpl_debug=on’ (no quotes needed) |
| 35 | a. Type ‘mgserver run’ (no quotes needed) |
| 36 | a. You should see: |
| 37 | {{{ |
| 38 | (1392) Server starting... |
| 39 | (1392) Mentor Coordinate System Library |
| 40 | (1392) Server started. |
| 41 | }}} |
| 42 | 1. Setting up image in MG site |
| 43 | a. Use Maestro to create Feature Source for image |
| 44 | i. Create New GDAL Feature Source |
| 45 | i. Add file(s) to list-you should see something like the following show up in the console: |
| 46 | {{{ |
| 47 | GDAL: Auto register C:\Program Files\OSGeo\MapGuide\Server\bin\gdalplugins\gdal_ECW.dll using GDALRegister_ECW. |
| 48 | GDAL: Auto register C:\Program Files\OSGeo\MapGuide\Server\bin\gdalplugins\gdal_ECW_JP2ECW.dll using GDALRegister_ECW_JP2ECW. |
| 49 | GDAL: Auto register C:\Program Files\OSGeo\MapGuide\Server\bin\gdalplugins\gdal_MrSID.dll using GDALRegister_MrSID. |
| 50 | GDAL: Auto register C:\Program Files\OSGeo\MapGuide\Server\bin\gdalplugins\gdal_ECW.dll using GDALRegister_ECW. |
| 51 | GDAL: Auto register C:\Program Files\OSGeo\MapGuide\Server\bin\gdalplugins\gdal_ECW_JP2ECW.dll using GDALRegister_ECW_JP2ECW. |
| 52 | GDAL: Auto register C:\Program Files\OSGeo\MapGuide\Server\bin\gdalplugins\gdal_MrSID.dll using GDALRegister_MrSID. |
| 53 | MrSID: Opened zoom level 1 with size 2500x2500. |
| 54 | MrSID: Opened zoom level 2 with size 1250x1250. |
| 55 | MrSID: Opened zoom level 3 with size 625x625. |
| 56 | MrSID: Opened zoom level 4 with size 313x313. |
| 57 | MrSID: Opened zoom level 5 with size 157x157. |
| 58 | MrSID: Opened zoom level 6 with size 79x79. |
| 59 | MrSID: Opened zoom level 7 with size 40x40. |
| 60 | MrSID: Opened zoom level 0 with size 5000x5000. |
| 61 | MrSID: Opened image: width 5000, height 5000, bands 3 |
| 62 | GDAL: GDALOpen(D:\projects\Client\Data\SDF/DO_S03_9608_40.sid, this=0FB15438) succeeds as MrSID. |
| 63 | GDAL: GDALClose(, this=0FB15D18) |
| 64 | GDAL: GDALClose(, this=0FB16088) |
| 65 | GDAL: GDALClose(, this=0FB16410) |
| 66 | GDAL: GDALClose(, this=0FB16798) |
| 67 | GDAL: GDALClose(, this=0FB16B20) |
| 68 | GDAL: GDALClose(, this=0FB16EA8) |
| 69 | GDAL: GDALClose(, this=0FB17230) |
| 70 | GDAL: GDALClose(D:\projects\Client\Data\SDF/DO_S03_9608_40.sid, this=0FB15438 |
| 71 | }}} |
| 72 | |
| 73 | |
| 74 | == Configuration Parameters == |