Changes between Initial Version and Version 1 of MGOSGdalProviderFor26And30


Ignore:
Timestamp:
04/23/15 11:11:09 (10 years ago)
Author:
jng
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MGOSGdalProviderFor26And30

    v1 v1  
     1[[PageOutline]]
     2= GDAL Raster Provider for MapGuide 2.6 and 3.0 =
     3
     4This page provides installation and configuration tips for the !GDAL Raster Provider for MapGuide Open Source 2.6 and 3.0.  This document is a work in progress.  Please post any feedback on this document to the mapguide-users list.
     5
     6== Introduction ==
     7
     8The default GDAL FDO provider provided by MapGuide 2.6 and 3.0 is built using the standard driver profile of GDAL 1.10. That is to say of the drivers listed here:
     9
     10 * http://www.gdal.org/formats_list.html
     11 * http://gdal.org/ogr_formats.html
     12
     13The default GDAL FDO provider will only support the drivers where '''Compiled by default''' is unconditionally '''Yes'''
     14
     15To support additional raster/vector formats, you need to source an alternate binary build of GDAL/OGR. Usually the place to get such alternate GDAL/OGR binaries is at [http://www.gisinternals.com/ GISInternals]
     16
     17Unfortunately, due to the nature of C++ code (MapGuide, FDO and GDAL all being written in it), you must make sure to download the GDAL/OGR package that is built with the same MSVC compiler used to build MapGuide Open Source 2.6 and 3.0 which is MSVC 2012.
     18
     19Sadly, GISInternals does not offer a binary of '''GDAL 1.10''' built with '''MSVC 2012''', meaning this option of using custom GDAL binaries not possible.
     20
     21Fortunately, GISInternals offers a [http://www.gisinternals.com/sdk.php Development Kit] that allows us to build our own custom GDAL binaries using MSVC 2012.
     22
     23Jackie Ng has made available a custom build of GDAL 1.10 with additional raster and vector format support thanks to the availability of this GISInternals Development Kit:
     24
     25 * [http://download.osgeo.org/mapguide/releases/3.0.0/Beta1/windows/extras/gdal-1.10-msvc2012-x86.zip GDAL 1.10 for MapGuide Open Source 2.6/3.0 32-bit]
     26 * [http://download.osgeo.org/mapguide/releases/3.0.0/Beta1/windows/extras/gdal-1.10-msvc2012-x64.zip GDAL 1.10 for MapGuide Open Source 2.6/3.0 64-bit]
     27
     28The custom build of GDAL 1.10 required some modifications to the DevKit to support compilation against GDAL 1.10. These modifications can be found on [https://github.com/jumpinjackie/gdal4fdo Jackie's GitHub repository]
     29
     30== Additional Driver Support ==
     31
     32This custom build of GDAL 1.10 offers support for the following additional raster formats:
     33
     34{{{
     35  ECW (rw): ERDAS Compressed Wavelets (SDK 3.x)
     36  JP2ECW (rw+v): ERDAS JPEG2000 (SDK 3.x)
     37  FITS (rw+): Flexible Image Transport System
     38  GMT (rw): GMT NetCDF Grid Format
     39  netCDF (rw+s): Network Common Data Format
     40  WCS (rovs): OGC Web Coverage Service
     41  WMS (rwvs): OGC Web Map Service
     42  HTTP (ro): HTTP Fetching Wrapper
     43  Rasterlite (rws): Rasterlite
     44  PostGISRaster (rws): PostGIS Raster driver
     45  MBTiles (rov): MBTiles
     46}}}
     47
     48And support for the following additional vector formats:
     49
     50{{{
     51-> "PostgreSQL" (read/write)
     52-> "NAS" (readonly)
     53-> "LIBKML" (read/write)
     54-> "Interlis 1" (read/write)
     55-> "Interlis 2" (read/write)
     56-> "SQLite" (read/write)
     57-> "VFK" (readonly)
     58-> "OSM" (readonly)
     59-> "WFS" (readonly)
     60-> "GFT" (read/write)
     61-> "CouchDB" (read/write)
     62-> "ODS" (read/write)
     63-> "XLSX" (read/write)
     64-> "ElasticSearch" (read/write)
     65-> "PDF" (read/write)
     66}}}
     67
     68For 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.
     69
     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:'''
     71
     72 * Raster
     73   * MrSID
     74 * Vector
     75   * Oracle OCI
     76
     77'''Also, the Development Kit targets GDAL 1.11 instead of GDAL 1.10. As a result, certain build configuration parameters are not applicable or invalid when using the DevKit to build against GDAL 1.10, meaning support for the following formats have been omitted as well:'''
     78
     79 * Raster
     80   * JP2OpenJPEG (GDAL 1.10 requires OpenJPEG 2.0, the DevKit bundles OpenJPEG 2.1 that GDAL 1.11 requires)
     81 * Vector
     82   * MySQL (assorted compiler/linker errors when building against GDAL 1.10)
     83
     84== Licensing ==
     85
     86'''NOTICE: ECW Technology must be licensed from ERDAS if it used in a server application like !MapGuide.  Please see the following link for information on the licensing.  http://iws.erdas.com/gis/can-i-use-ecw-technology-in-my-third-party-server.aspx'''
     87
     88'''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'''
     89
     90== Installation ==
     91
     92Unzip the zip distribution to the FDO directory of your MapGuide installation, which by default is:
     93
     94{{{
     95C:\Program Files\OSGeo\MapGuide\Server\FDO
     96}}}
     97
     98If prompted, overwrite any existing files.
     99
     100Then 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)
     101
     102Make sure that mapguide is reading the correct co-ordinate system is being read from the source files, override it if necessary.
     103
     104== Debugging ==
     105
     106== Configuration ==
     107
     108The default serverconfig.ini settings set by the installer should be sufficient.  No additional serverconfig.ini modifications are required.
     109
     110In addition to {{{CPL_DEBUG}}}, GDAL offers many other runtime configuration options via environment variables. [https://trac.osgeo.org/gdal/wiki/ConfigOptions See here for the full list]
     111
     112== Previous notes ==
     113
     114 * [wiki:MGOS22GdalProvider GDAL Provider tips for MapGuide 2.2]