Changes between Version 6 and Version 7 of FdoGdalNotes


Ignore:
Timestamp:
Jun 21, 2007, 1:10:10 AM (17 years ago)
Author:
jbirch
Comment:

Updated information, provided links to packages.

Legend:

Unmodified
Added
Removed
Modified
  • FdoGdalNotes

    v6 v7  
    5656=== Downloads ===
    5757
    58 (coming soon)
    59 
    6058These files are required to test the bounds functionality:
    6159
    62 * The new fdogdal package for Jason's site (for now), which includes the same gdal.dll as is in the 1.2.0 patch package
     60* The new fdogdal package from Jason's site [http://www.jasonbirch.com/fdogdal/fdogdal.zip fdogdal.zip (1.3MB)]
    6361
    64 * The ECW and MrSID packages from Frank's site if desired
    65 
    66 * Jason's really crude (to be refined) php script for generating a config document which includes image boundaries.
     62* Jason's php script for generating an image !FeatureSource and config file from images in a directory on the server [http://www.jasonbirch.com/fdogdal/configbuilder.phps Source] | [http://www.jasonbirch.com/fdogdal/configbuilder.txt TXT] [http://www.jasonbirch.com/fdogdal/configbuilder.zip ZIP]
    6763
    6864=== Usage ===
    6965
    70 1. Install the new fdogdal package into the C:\Program Files\!MapGuideOpenSource\Server\Bin\FDO directory
     661. Install the new fdogdal package into the C:\Program Files\!MapGuideOpenSource\Server\Bin directory (make a backup of the gdal.dll and GRFP*.dll in the FDO directory first)
    7167
    72 2. If desired install the ECW and MrSID packages according to the instructions on Frank's site
     682. Place Jason's script in the C:\Program Files\!MapGuideOpenSource\!WebServerExtensions\www directory.  Check the user-defined variables at the top of the script to ensure that they match your configuration
    7369
    74 3. Extend the setting for maximum_execution_time in the php.ini file to at least two minutes.  This file is located at C:\Program Files\!MapGuideOpenSource\!WebServerExtensions\Php\php.ini by default
    75 
    76 4. Place Jason's script in the C:\Program Files\!MapGuideOpenSource\!WebServerExtensions\www directory.  Edit the script to point the image path to your locally stored images.  Make sure to specify a trailing slash.
    77 
    78 5. Run this script in your web browser by pointing to your !MapGuide installation (e.g. http://localhost:8008/mapguide/rasterconfig.php ).  If all goes well, you should be prompted to download a config.xml file.
    79 
    80 6. Create an OSGeo Raster Provider !DataSource (following the instructions at the top of this page) that points to the same location for the images as the config file that you generated.
    81 
    82 7. Use the !MapAgent (http://localhost:8008/mapguide/mapagent/index.html) or Studio to download the existing !DataSource as an XML file, using the !GetResourceContent call.  Edit the file, inserting a !ConfigurationDocument line, so that it looks something like this:
    83 
    84 {{{
    85 
    86 <?xml version="1.0" encoding="utf-8"?>
    87 <FeatureSource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="FeatureSource-1.0.0.xsd">
    88   <Provider>OSGeo.Gdal</Provider>
    89   <Parameter>
    90     <Name>DefaultRasterFileLocation</Name>
    91     <Value>c:\RasterTest\nanaimo</Value>
    92   </Parameter>
    93   <ConfigurationDocument>config.xml</ConfigurationDocument> 
    94 </FeatureSource>
    95 
    96 }}}
    97 
    98 8. Use the !MapAgent SetResource call to upload the modified FeatureSource document into the same location that you downloaded it from.
    99 
    100 9. Again, using the !MapAgent use the !SetResourceData operation to upload the config.xml file as resource data for your modified !DataSource.  Make sure that you specify the same name for the file as you entered in the !ConfigurationDocument line above.  For simplicity, it's recommended to leave it as config.xml.
     703. Run this script in your web browser (e.g. http://localhost:8008/mapguide/configbuilder.php ).  Enter the path to your images and the location you want the new FeatureSource created.  If all goes well, you will be informed of the sucessful creation of the FeatureSource
    10171
    10272Please, let us know how this works on the !MapGuide users, or FDO users mailing lists.
     
    10474=== Source ===
    10575
    106 Currently, the source for these modifications is only available as a patch in Ticket #87.  Once stable, hopefully they will be integrated into the 3.2.x branch somehow.
    107 
    108 === Known Issues ===
    109 
    110 * Currently, !MapGuide no longer checks each image when first loading the map, but the first time it does fetch the layer, each image is still enumerated.  Subsequent fetches only address the images required for the area that the user is zoomed to.
     76Currently, these modifications have been applied to the FDO 3.2.x branch.  An official package has not yet been created.