[mapguide-users] Raster problem

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Sat Feb 14 06:23:07 EST 2009


Does the "Failed to read schema" error produce entries in the MapGuide 
error.log?

On this page:
http://localhost/mapguide/mapagent/index.html

Click "Feature", then "DescribeSchema".
Fill out the "ResourceID" field with the path of your FeatureSource,
then click "Submit".

The resulting xml should tell you what went wrong, and if not, please
create a trac ticket, and attach the output xml to the ticket.

Regards, Kenneth Skovhede, GEOGRAF A/S



Peter Filip skrev:
> Hello, 
>
> I am having no success in loading my 2 tiff files.
>
> I am using the Maestro tool. So i followed instruction in this guide
> http://trac.osgeo.org/mapguide/wiki/maestro/UserGuides/RasterFeatureSource
>
> So i created a featuresource and i also set coordinate system overrides.
>
> Then I wanted to create a layerdefinition. I picked out my created
> featuresource and then a i got this error:
>
> Failed to read schema from data source.
> The operation gave the error message: Value cannot be null.
> Parameter name: input 
>
> Byt anyway I could save the featuresource so I did.
> I added this layer to a map but in the browser no raster show up. Just the
> icon in the layer box.
>
> This is the featuresource schema:
>
> <?xml version="1.0" encoding="utf-8"?>
> <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">
>   <Provider>OSGeo.Gdal</Provider>
>   <Parameter>
>     <Name>DefaultRasterFileLocation</Name>
>     <Value>D:\neroztriedene\raster\</Value>
>   </Parameter>
>   <SupplementalSpatialContextInfo>
>     <Name>Default</Name>
>    
> <CoordinateSystem>PROJCS["S-JTSK_Krovak",GEOGCS["GCS_S_JTSK",DATUM["Jednotne_Trigonometricke_Site_Katastralni",SPHEROID["Bessel_1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Krovak"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Pseudo_Standard_Parallel_1",78.5],PARAMETER["Scale_Factor",0.9999],PARAMETER["Azimuth",30.28813975277778],PARAMETER["Longitude_Of_Center",24.83333333333333],PARAMETER["Latitude_Of_Center",49.5],PARAMETER["X_Scale",1],PARAMETER["Y_Scale",1],PARAMETER["XY_Plane_Rotation",0],UNIT["Meter",1],AUTHORITY["EPSG","102065"]]</CoordinateSystem>
>   </SupplementalSpatialContextInfo>
> </FeatureSource>
>
> And i also ran the interactive mode with CPL_DEBUG=ON
>
> GDAL: GDALOpen(D:\neroztriedene\raster\/bero48.aux) succeeds as HFA.
> GDAL: GDALOpen(D:\neroztriedene\raster\/bero48.tif) succeeds as GTiff.
> GDAL: GDALOpen(D:\neroztriedene\raster\/bero49.aux) succeeds as HFA.
> GDAL: GDALOpen(D:\neroztriedene\raster\/bero49.tif) succeeds as GTiff.
> GDAL: GDALClose(D:\neroztriedene\raster\/bero49.aux)
> GDAL: GDALClose(D:\neroztriedene\raster\/bero49.tif)
> RfpDatasetCache::CloseAll(): Forcing closure of
> D:\neroztriedene\raster\/bero49.
> aux even though there
> are still references against it.
> RfpDatasetCache::CloseAll(): Forcing closure of
> D:\neroztriedene\raster\/bero48.
> aux even though there
> are still references against it.
> GDAL: GDALClose(D:\neroztriedene\raster\/bero49.tif)
> GDAL: GDALClose(D:\neroztriedene\raster\/bero49.aux)
> GDAL: GDALClose(D:\neroztriedene\raster\/bero48.tif)
> GDAL: GDALClose(D:\neroztriedene\raster\/bero48.aux)
> GDAL: GDALClose(D:\neroztriedene\raster\/bero48.aux)
>
>
> And my config is: Windows 2003, MGOS 2.0.2 .NET, Maestro 1.0.9.15910
>
>
> I Hope somebody can help me.
>
> Thanks!
>
>
>
>
>
>
>   


More information about the mapguide-users mailing list