Changes between Version 1 and Version 2 of MGOSGdalProviderFor26And30


Ignore:
Timestamp:
04/24/15 06:26:32 (10 years ago)
Author:
jng
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MGOSGdalProviderFor26And30

    v1 v2  
    6868For more information about these formats, consult the respective [http://www.gdal.org/formats_list.html GDAL] and [http://gdal.org/ogr_formats.html OGR] driver format pages.
    6969
    70 '''NOTICE: Due to licensing terms that prohibit redistribution, the raster/vector format support in this custom build of GDAL is not the same as the GDAL binaries made available on GISInternals. In particular, the Development Kit does not contain the libraries needed to build GDAL with support for the following formats:'''
     70'''NOTICE: Due to licensing terms that prevent redistribution of development libraries, the raster/vector format support in this custom build of GDAL is not the same as the GDAL binaries made available on GISInternals. In particular, the Development Kit does not contain the libraries needed to build GDAL with support for the following formats:'''
    7171
    7272 * Raster
     
    8888'''NOTICE: Additional plugins and libraries included in this distribution may be under radically different licenses, you MUST obtain valid licenses for each of these dependent libraries. License information for such plugins and libraries can be found in RTF format on the GISInternals buildsystem repository on GitHub: https://github.com/gisinternals/buildsystem'''
    8989
     90== A note about environment variables ==
     91
     92GDAL has various configuration options which are driven through environment variables. For the GDAL FDO provider to properly incorporate these environment variables, you have to do one of the following:
     93
     94 * Set the environment variables in question through the Computer properties dialog. This will probably also require a reboot so that MapGuide can pick these environment variables up when running in service mode. These variables will stick until they are unset from the Computer properties dialog.
     95 * Set these environment variables from a command line and then run MapGuide afterwards from the same session in interactive mode ({{{mgserver run}}}). To simplify this, you could wrap the setting of the environment variables and the running of MapGuide in interactive mode as a batch file and run that. These variables will stick for the duration of the command-line session that you run MapGuide in.
     96
     97Wherever this guide refers to setting an environment variable, it is through one of these two methods.
     98
    9099== Installation ==
    91100
     
    100109Then set an environment named {{{GDAL_DRIVER_PATH}}} that points to the new {{{gdalplugins}}} under your FDO directory ('''NOTE: In previous versions of this guide, it told you to have the gdalplugins directory under the MapGuide Server's bin directory. The change of instructions here is to allow both FDO and the included set of GDAL/OGR console applications to be able to load these GDAL/OGR plugins)
    101110
    102 Make sure that mapguide is reading the correct co-ordinate system is being read from the source files, override it if necessary.
     111Make sure that mapguide is reading the correct co-ordinate system is being read from the source files, override it if necessary. You can use gdalinfo and ogrinfo to get the true extents and coordinate systems of your datasets should MapGuide and FDO fail to properly infer this information, though in such cases indicates a defect in the GDAL or OGR provider should it fail to return this information where gdalinfo or ogrinfo does.
    103112
    104113== Debugging ==
     114
     115The {{{CPL_DEBUG}}} environment variable controls whether GDAL and its plugins will output extra debug information when the MapGuide server process is running.
     116
     117GDAL debug output is written to the standard output stream (stdout), so its best to use {{{CPL_DEBUG}}} in conjunction with running MapGuide server in '''interactive mode''', as there is no visible stdout when MapGuide runs as a service.
     118
     119The moment the GDAL provider starts making GDAL API calls, you should see output like this start showing up in the console output^1.
     120
     121{{{
     122GDAL: Auto register C:\Program Files\OSGeo\MapGuide\Server\bin\gdalplugins\gdal_ECW.dll using GDALRegister_ECW.
     123GDAL: Auto register C:\Program Files\OSGeo\MapGuide\Server\bin\gdalplugins\gdal_ECW_JP2ECW.dll using GDALRegister_ECW_JP2ECW.
     124GDAL: Auto register C:\Program Files\OSGeo\MapGuide\Server\bin\gdalplugins\gdal_MrSID.dll using GDALRegister_MrSID.
     125GDAL: Auto register C:\Program Files\OSGeo\MapGuide\Server\bin\gdalplugins\gdal_ECW.dll using GDALRegister_ECW.
     126GDAL: Auto register C:\Program Files\OSGeo\MapGuide\Server\bin\gdalplugins\gdal_ECW_JP2ECW.dll using GDALRegister_ECW_JP2ECW.
     127GDAL: Auto register C:\Program Files\OSGeo\MapGuide\Server\bin\gdalplugins\gdal_MrSID.dll using GDALRegister_MrSID.
     128MrSID: Opened zoom level 1 with size 2500x2500.
     129MrSID: Opened zoom level 2 with size 1250x1250.
     130MrSID: Opened zoom level 3 with size 625x625.
     131MrSID: Opened zoom level 4 with size 313x313.
     132MrSID: Opened zoom level 5 with size 157x157.
     133MrSID: Opened zoom level 6 with size 79x79.
     134MrSID: Opened zoom level 7 with size 40x40.
     135MrSID: Opened zoom level 0 with size 5000x5000.
     136MrSID: Opened image: width 5000, height 5000, bands 3
     137GDAL: GDALOpen(D:\projects\Client\Data\SDF/DO_S03_9608_40.sid, this=0FB15438)  succeeds as MrSID.
     138GDAL: GDALClose(, this=0FB15D18)
     139GDAL: GDALClose(, this=0FB16088)
     140GDAL: GDALClose(, this=0FB16410)
     141GDAL: GDALClose(, this=0FB16798)
     142GDAL: GDALClose(, this=0FB16B20)
     143GDAL: GDALClose(, this=0FB16EA8)
     144GDAL: GDALClose(, this=0FB17230)
     145GDAL: GDALClose(D:\projects\Client\Data\SDF/DO_S03_9608_40.sid, this=0FB15438
     146}}}
     147
     148^1 This is just example output (copied from the GDAL provider guide for 2.2) showing the kind of output you would see. Just remember there's no MrSID driver support in this custom build of GDAL.
     149
     150Remember to unset CPL_DEBUG when finished as performance is significantly slower when GDAL debugging is turned on.
    105151
    106152== Configuration ==