hi,
I have air image file with tif extention and 1036 mb size when i want to load this file using GdiPlusRasterLayer
error apper (error message "Parameter is not valid")
hi,
I have air image file with tif extention and 1036 mb size when i want to load this file using GdiPlusRasterLayer
error apper (error message "Parameter is not valid")
Wasim,
Thanks for the post. Can you compress the tiff file into ECW or JPEG2000 and have another try? As showing a tiff needs to load the entire file into memory while ECW or JPEG2000 has the optimization for displaying a map.
Ben.
I compress the file to JPEG put still not working
Wasim,
Can you convert it to ECW and open it with ECWRasterLayer? If you have difficulties on that you can send the data to us so we will do it for you. You can make the data accessible by Http or Ftp and let me know how to get in by sending the letter to support@thinkgeo.com and ask to forward to Ben.
Any queries just let us know.
Ben.
Thanks Mr.Ben for your replay .
I will try to convert it to ECW but how i can converted to ECW. Can u help me? I have arcgis desktop 9.2 but i don’t have program to convert to this format.
I know there are some free tiff compressor available on internet, but I’m not sure if they support huge tiff file more than 1g. Can you also look it up on internet and if there is no result, can you provide me a way to get your file so I can do the conversion here.
When I tried to load image using Map Suite Engine 2.0 it worked. But using Map Suite Services 3.0(BETA) it did not work and give me this error
"Out of Memeory" at mapEngine.OpenAllLayers(); line and those are the codes
Working code using Map Suite Engine(2.0)
//******************************************
private void Form1_Load(object sender, EventArgs e)
…
…
ImageLayer imageLayer = new ImageLayer(@"C:\1\san_81.jpg");
mMapEngine.ImageLayers.Add(imageLayer);
…
…
DrawMap();
//******************************************
not working code using Map Suite Services 3.0(BETA):
//*******************************************
private void Form1_Load(object sender, EventArgs e)
…
…
GdiPlusRasterLayer worldImageLayer = new GdiPlusRasterLayer(@"C:\1\san_81.jpg");
worldImageLayer.UpperThreshold = double.MaxValue;
worldImageLayer.LowerThreshold = 0;
mapEngine.StaticLayers.Add("WorldImageLayer", worldImageLayer);
DrawImage();
//****************************************************
I want to help me to do it by using Map Suite Services 3.0(BETA) because i want to be map suite 3.0 expert and buy it and when i work with map suite 3.0 every thing worked as i wanted except load air image.
Hi Ben,
I am also getting the same error with tiff files. I have .tif and tfw files in the same folder. They are relatively very small images. Do you want me to send them to you?
Thanks,
Suresh
Yes. It’s better if you can send it to me. Please also send the tfw file.