Aaron:
 
A quick survey of the existing GX functions left me without an easy solution to your problem.
To help in the future, I have exposed a couple of functions we use to change a grid's colour transform; their descriptions are:
 
//------------------------------------------------------------------------
// iGetDefITR_IMG Get default transform, if it exists
//
// Returns        0 - Okay
//                1 - No default possible/available
//
 
[geogx] int
iGetDefITR_IMG(IMG,   // image
               ITR);  // transform
 

//------------------------------------------------------------------------
// iSetDefITR_IMG Set default transform, if it exists
//
// Returns        0 - Okay
//                1 - No default possible/available
//
 
[geogx] int
iSetDefITR_IMG(IMG,   // image
               ITR);  // transform
Once you have the ITR, you can get and change the colours and ranges using the ITR class functions. You can also read a ZON file into an ITR object.
 
These should be available in SP2, probably 2 months or less away.
 

Dr. Stephen J. Cheesman
Research Geophysicist
Geosoft Inc.

Software and services for effective earth science decision-making. Free Oasis montaj interface now available at www.geosoft.com

Geosoft Inc.
8th Floor
85 Richmond St. W.
Toronto, Ontario
Canada M5H 2C9

Tel. (416) 369-0111
Fx. (416) 369-9599
Direct: (905)315-8207
E-mail. [EMAIL PROTECTED]

-----Original Message-----
From: Aaron Balasch [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 18, 2000 5:30 PM
To: [EMAIL PROTECTED]
Subject: [gxnet]: Grid zone files

I am writing a custom GX where I create a grid a grid within the GX. I've found the appropriate command to display the grid on an existing map but the problem comes when defining the zone file for the new grid. The new grid is required to have the same colour transform as the existing grid. In the past, I went to the image colour tool for the existing grid and saved it's colour transform as a *.zon file and then used this zon file in the LayerIMG_AGG command. What I want to do is eliminate this step so that the GX will not terminate in an error if the user forgets to manually save the *zon file. So what I'm looking for is a command that gets the colour table(or ideally the *.zon) file from an existing grid. Does anyone know how to do this or have any ideas on how to do this?
 
 
Aaron Balasch
Sky Hunter Technologies Inc.
Suite 101, 1725 10th Avenue S.W.
Calgary, Alberta T3C 0K1
Phone: (403)228-2175
Fax: (403)244-7955
email: [EMAIL PROTECTED]

Reply via email to