Thanks for the information Ian. I was looking in the wrong place. I was looking to define the decoration as a separate GX parameter rather than part of the string name of the grid. Thank You.
 
----- Original Message -----
Sent: Monday, December 30, 2002 2:52 PM
Subject: RE: [gxnet]: grid types

Aaron,
When you open the grid, normally using CreateOutFile_IMG, name the grid as follows:

   my_new_grid.grd(GRD;Type=color)
 
The part in brackets is called the name "decoration", and it is used to specify certain grid characteristics, in this case to create a colour grid.  See .../etc/dat_xgd.doc for a full listing of the available decorations for different grid types.  You can also determine the correct decoration by selecting an output grid using any GX that writes grids.  When you browse for a grid name, choose the "Save as type" to be what you want. The correct decoration will be added to your grid name.
 
Regards,
_______________
Geosoft Inc.
Ian MacLeod
[EMAIL PROTECTED]
(416) 369 0111 x323

Knowledge From Data
Geosoft is a global software and services company that provides end-to-end data processing and analysis (DPA) solutions for high volume spatial data

Visit www.geosoft.com and www.geodap.com

-----Original Message-----
From: skyhunter [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 30, 2002 12:25 PM
To: GXNET
Subject: [gxnet]: grid types

Hi,
 
Does anyone know how one can specify a grid image in a GX to be created as a compressed colour grid?
 
I have a GX that I wrote where I am doing a Math expression with DoFormula_ IEXP() operation on two existing compressed colour grids. I want the output grid also to be a compressed colour grid. Near as I can figure out, the grid type is defined in CreateFile_IMG() but I do not know what define it as.
 
Trying to solve the problem, I went into look at PREDEF_ALL.GXH. I found DATA_TYPE_COLOUR so I tried this but it gave an invalid data type error. I also tried DATA_TYPE_DOUBLE(although it wouldn't solve my problem) and that did not work either. Can anyone help?
 
In case it's aversion compatibility problem, I am using version 5.1.5(OX) and I am up to date according to my software manager.
 
 
Aaron Balasch
Sky Hunter Technologies Inc.
Suite 101, 1725 10th Avenue S.W.
Calgary, Alberta T3C 0K1
email: [EMAIL PROTECTED]
phone: 403-228-2175
fax: 403-244-7955

Reply via email to