Forums » GAMMA Processing » DEM generation »
Maximum size of DEM (copied from Thorsten Seehaus, 12/19/2016)
Added by Julia Neelmeijer almost 8 years ago
Hi
does somebody know what is the max. size of a DEM, that can be displayed with disdem_par? (Max width)
Is there a kind of table of max. allowed file sizes (width, length) of .ras, .bmp, .tif, ....... files. Would be nice to have this information. I can not find it in the manual. Sometimes I just receive errors that are most likely cause by this issue.
e.g.:
DISP disdem_par: Display DEM with DEM/MAP parameter file as shaded relief *
Copyright 2015, Gamma Remote Sensing, v3.6 1-Nov-2015 clw/uw *
DEM projection: EQA
DEM width: 50401 lines: 43201
look vector x,y,z: -5.00000e-01 -5.00000e-01 7.07107e-01
lon. posting (deg.): 3.0922e+01 lat. posting (deg.): -3.0922e+01 theta0 (deg.): 45.000 phi0 (deg.): 135.000
number of lines in the DEM: 43201
display height scale factor: 1.0000
1000 display lines
-79.00010000 -7.99986000 385.000
The program 'disdem_par' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadDrawable (invalid Pixmap or Window parameter)'.
(Details: serial 169 error_code 9 request_code 72 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Cheers
Thorsten
Replies (2)
RE: Maximum size of DEM (answer from Charles Werner) - Added by Julia Neelmeijer almost 8 years ago
Hello,
The maximum size in disdem_par is 32767x32767 (this is true of all display
programs provided in the GAMMA software). This is caused by the limitation of
the X-Window system, and how we
X in the display programs.
A work around is to use the program rasshd to create a raster image (preferred
is TIFF) that can be to 4 gigapixels wide and high.
To display this program you can use for example GIMP (www.gimp.org). Support for
really large images is not always available for the
built in image viewers in Linux, Windows, or OSX.
One of our goals is a new display program that can display arbitrary sized
images in the next year.
Charles Werner
Maximum size of DEM (copied from Thorsten Seehaus, 12/19/2016) - Added by Charles Werner almost 8 years ago
Hello,
The largest DEM that can be displayed with the program is 32767x32767
This is a limitation of the X window system, and how the program was coded. The
program was coded to place the entire image in a single window.
Your video card (small video ram) may also limit the size to be smaller than
32767x32767, but I would guess this is no longer a limitation.
you can create a raster image (rasshd) in TIFF format and view it in another
viewer that can deal with large images (not many can).
Best regards,
Charles