[mapguide-users] How do i load raster in MGOS 2?

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Fri Jul 25 08:50:40 EDT 2008


That seems to work out correctly.

You should try to add a vector layer with data that displays correctly, 
in the same area.
Then make a new map, and add both the raster layer as well as the vector 
layer.
Make sure that the raster layer featuresource projection is the same as 
the map's.
Manually enter or verify that the center coordinates are correct.
Then preview the map.

If you can see one layer but not the other, the log file usually has a hint:
C:\program files\mapguideopensource2.0\server\logs\error.log

Regards, Kenneth Skovhede, GEOGRAF A/S



jamesdudden skrev:
> Kenneth,
>
> I di das you instructed and this is what i got:
>
> (460) Server starting...
> (460) PROJ4 Coordinate System Library
> (460) Server started.
> GDAL: Auto register C:\Program
> Files\MapGuideOpenSource2.0\Server\Bin\gdalplugin
> s\gdal_ECW.dll using GDALRegister_ECW.
> GDAL: Auto register C:\Program
> Files\MapGuideOpenSource2.0\Server\Bin\gdalplugin
> s\gdal_MrSID.dll using GDALRegister_MrSID.
> JPEG: Magic: 0x4949 <little-endian> Version: 0x2a
>
> GDAL: GDALOpen(C:\Program
> Files\Autodesk\MapGuideStudio2009\SampleData\Raster/RA
> STER.jpg) succeeds as JPEG.
> GDAL: GDALOpen(C:\Program
> Files\Autodesk\MapGuideStudio2009\SampleData\Raster/Sh
> eboygan_000_000.tif) succeeds as GTiff.
> GDAL: GDALOpen(C:\Program
> Files\Autodesk\MapGuideStudio2009\SampleData\Raster/Sh
> eboygan_000_001.tif) succeeds as GTiff.
> GDAL: GDALOpen(C:\Program
> Files\Autodesk\MapGuideStudio2009\SampleData\Raster/Sh
> eboygan_001_000.png) succeeds as PNG.
> GDAL: GDALClose(C:\Program
> Files\Autodesk\MapGuideStudio2009\SampleData\Raster/S
> heboygan_000_001.tif)
> GDAL: GDALOpen(C:\Program
> Files\Autodesk\MapGuideStudio2009\SampleData\Raster/Sh
> eboygan_001_000.tif) succeeds as GTiff.
> GDAL: GDALClose(C:\Program
> Files\Autodesk\MapGuideStudio2009\SampleData\Raster/S
> heboygan_001_000.png)
> GDAL: GDALOpen(C:\Program
> Files\Autodesk\MapGuideStudio2009\SampleData\Raster/Sh
> eboygan_001_001.tif) succeeds as GTiff.
> GDAL: GDALClose(C:\Program
> Files\Autodesk\MapGuideStudio2009\SampleData\Raster/S
> heboygan_001_000.tif)
>
> There doesn't seem to be any obvious errors - can you suggest anything else?
>
> Thank you for your help
>
> james Dudden
>
>
>
> In that case, you should follow the instructions for debugging rasters:
> http://trac.osgeo.org/fdo/wiki/FdoGdalNotes#DebuggingRastersinMapGuide
>
> Regards, Kenneth Skovhede, GEOGRAF A/S
>
>
>   


More information about the mapguide-users mailing list