HomeHomeProductsProductsEnterpriseEnterpriseENVI Services E...ENVI Services E...image() not giving similar result as in PC, while displaying .png in ESEimage() not giving similar result as in PC, while displaying .png in ESE
Previous
 
Next
New Post
4/25/2016 4:12 AM
 

Hi,

I'm displaying a google static map image (in .png) using IMAGE() function on my local machine which seems to work as expected. But when the same is tried on ESE it displays a grayscale image. To correct this I have tried giving the rgb color vectors as below: 

gmap_SIZE_INFO = QUERY_PNG(gmap_file_name, gmap_info_png)
gmap_array =READ_PNG(gmap_file_name,rpal,gpal,bpal)
a =image(gmap_file_name,RGB_TABLE=[rpal,gpal,bpal])

The above snippet again works fine on PC but gives an error on ESE as :

Mon Apr 25 09:20:52 AM IMAGE: The selected file is in an unknown format. Unable to read file: C:\Exelis\se53\docroot\ese\data\resources\graphics\gmap.png


IMAGE used is : 

https://maps.googleapis.com/maps/api/staticmap?zoom=13&size=250x190&maptype=terrain&scale=1&path=color:0xff0000ff|weight:2|fillcolor:0xFFFF0033|35.727569,-78.699317|35.727569,-78.693872|35.725039,-78.693872|35.725039,-78.699317|35.727569,-78.699317  

 
New Post
5/20/2016 10:55 AM
 

I'm not exactly sure why image isn't properly when you run this code with ESE. However, I do have a couple of suggestions:

1) Use the BUFFER keyword so that the IMAGE window does not need to pop up. 
2) Use the data array instead of the data file when making the call to IMAGE. 

gmap_SIZE_INFO = QUERY_PNG(gmap_file_name, gmap_info_png)
gmap_array =READ_PNG(gmap_file_name,rpal,gpal,bpal)
a =image(gmap_array,RGB_TABLE=[rpal,gpal,bpal], /BUFFER)

 
New Post
1/23/2017 2:25 AM
 

Actually, I didn't get it but will definitely study on it. I decided that I consider it my assignment and will do my assignment properly and will let you know after completing it

 
Previous
 
Next
HomeHomeProductsProductsEnterpriseEnterpriseENVI Services E...ENVI Services E...image() not giving similar result as in PC, while displaying .png in ESEimage() not giving similar result as in PC, while displaying .png in ESE




© 2017 Exelis Visual Information Solutions, Inc., a subsidiary of Harris Corporation