Hi,
1) i am trying to run the sample mvcsample for loading raster file, which works fine with the World.tif. But when i change the .tif file i cant see it on the map. all i see is : PARAMETER IS INVALID , OBJECT REFERENCE NOT SET TO AN INSTANCE OF OBJECT.
GdiPlusRasterLayer gdiPlusImageLayer = new GdiPlusRasterLayer(Server.MapPath(@"~\App_Data\World.tif"));
2) is it required for raster data to have the associated world file if i am using the GdiPlusRasterLayer ? or we can still use it having the aux.xml
so if you can please provide some details on how your mvc suite treat and load raster files and if there is any prerequisite for it.
thanks
GdiPlusRasterLayer not loading raster
Hi hekllan,
Please try loading it using GeoTiffRasterLayer instead of GdiPlusRasterLayer, I guess the data you loaded may be a geoTiff file, but not sure, anyway, please try it.
Yes, the world file is used to locate the image file on the earth, thus world file is required. For aux.xml, Map suite doesn’t have the support of it, please do a change here.
Thanks,
Johnny
Hi,
I tried both GeoTiffRasterLayer, GdiPlusRasterLayer i am able to plot the tiff on the map but its black screen. I opened the Tiff file in ArcMap i can see its RGB .tiff and its working in ArcMap.
any workaround for the RGB .tiff with 3 bands ?
thanks
Hi Hekllan,
Would you please try to assign the LibararyType as the UnmanagedLibrary? like:
GeoTiffRasterLayer tifflayer = new GeoTiffRasterLayer();
tifflayer.LibraryType = GeoTiffLibraryType.UnmanagedLibTiff;
If the issue persists, would you please send us your tiff file so that we can recreate it in our end? The below is the link about how to upload data. If the file is too large, please contact to sales@thinkgeo.com to setup a ftp account for you.
wiki.thinkgeo.com/wiki/Map_Suite_Sending_Data_to_Support
Thanks,
Troy