GRASS r.in.png,r.out.png

Alex,

I just tried compiling those GRASS modules. Apparently, there have been
some changes in the ppm,pnm,etc... libs and on my Debian Linux system,
the library is one all-inclusive libnetpbm.a, libnetpbm.so.

I modified the Gmakefiles and then the compile worked. Haven't tested
them yet, since the compile is still going...

<Here's an example from the Gmakefile for r.out.png>

PGM=r.out.png

LIST= r.out.png.o

#$(BIN_CONTRIB_CMD)/$(PGM): $(LIST) $(GISLIB)
# $(CC) $(LDFLAGS) -o $@ $(LIST) $(GISLIB) $(EXTRALIB) $(MATHLIB)\
# $(XDRLIB) -lpng -lppm -lpgm -lpbm -lpnm -lz

$(BIN_CONTRIB_CMD)/$(PGM): $(LIST) $(GISLIB)
  $(CC) $(LDFLAGS) -o $@ $(LIST) $(GISLIB) $(EXTRALIB) $(MATHLIB)\
  $(XDRLIB) -lpng -lnetpbm -lz

$(GISLIB): #

--
+----------------------------------------------------+
| Eric G. Miller egm2@jps.net |
| GnuPG public key: http://www.jps.net/egm2/gpg.asc |
+----------------------------------------------------+

Hi Eric,

...I haven't found a png image that r.in.png will import
yet -- always says "Not implemented yet" (It reports the type
correctly!). I guess it's mostly framework right now...

since a few minutes a new r.in.png is in CVS!

It reads files properly now, at least xv-converted images.

Thanks to Alex Shevlakov...

Cheers

Markus