X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 25 Apr 2016 04:12 AM by  anon
image() not giving similar result as in PC, while displaying .png in ESE
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:16
New Member


--
25 Apr 2016 04: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

    Deleted User



    Basic Member


    Posts:143
    Basic Member


    --
    20 May 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)

    Deleted User



    New Member


    Posts:
    New Member


    --
    23 Jan 2017 03: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
    You are not authorized to post a reply.