LTPlus import ?

Hi LTPlus users,

I have found a simpler method for importing images in LTPlus. I have made
a program called pnmtoltp, it is a modification of pnmnoraw, the only
difference is that pnmtoltp does not write the ppm header to the top of
the file. You could also strip the header off using the unix cmd tail.
Since pnmnoraw writes lines of 70 characters, you will have to calculate
the number lines per scanline as follows: (#columns / 70) + 1.
This way, importing in GRASS is no longer necessary.

Ronald Wiemer
ARCHIS, Amersfoort
The Netherlands

Ronald Wiemer

Could you put your version of "pnmtoltp" in the incoming directory on moon?

thanks

bill...
21-JUL-1993 12:45:03

The only things you have to do to create pnmtoltp, is copying the file
pnmnoraw.c to pnmtoltp.c and editing the line:

pnm_writepnminit( stdout, cols, rows, maxval, format, 1 );

to become

pnm_writepnminit( stderr, cols, rows, maxval, format, 1 );

To compile, add the pnmtoltp program in the Makefile.

Ronald Wiemer

ARCHIS, Amersfoort
The Netherlands