PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 25 Apr 2016 04:12 AM by  puneeth shankar
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

puneeth shankar



New Member


Posts:
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/ap...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

    David Starbuck



    Basic Member


    Posts:121
    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)

    Laura Fernandis



    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.


    MOST RECENT

    UAV Expo – A Growing Industry That’s Growing Up!

    11/14/2017

    This year’s UAV Expo had a strong agenda featuring a mix of sessions and speakers representing... more »

    What is a KMZ file?

    11/13/2017

    What is a KMZ file? A KMZ file is a placemark file used in Google Earth and Google Earth Pro. Since KMZ... more »

    SIGN UP & STAY INFORMED

    Sign up to receive the latest news, events, technologies and special offers.

    SIGN ME UP