[GRASSLIST:5675] Tiff import

Hello,

I imported different TIFF-layers of one
topographic map, using r.gdal.

Now I want to put the single layers in one map.
How can I do this quickly?

Thanks for any clues!

Grit

try r.composite

Marco

-----Ursprüngliche Nachricht-----
Von: owner-GRASSLIST@baylor.edu [mailto:owner-GRASSLIST@baylor.edu]Im
Auftrag von Grit Schuster
Gesendet: Dienstag, 8. Februar 2005 16:30
An: grasslist@baylor.edu
Betreff: [GRASSLIST:5675] Tiff import

Hello,

I imported different TIFF-layers of one
topographic map, using r.gdal.

Now I want to put the single layers in one map.
How can I do this quickly?

Thanks for any clues!

Grit

Hi GRASS users:

I'm trying to compiling GRASS(6.0.0beta2) in Scientific Linux
(http://linux.web.cern.ch/linux/scientific3/) and I don't have
any problem with the following ./configure options:
--with-blas
--with-lapack
--with-obdc
--with-motif
--with-glw
--with-nls
--with-cxx
But I got problems with
--with-mysql (And SL (Scientific Linux) has MySQL installed.
also with
--with-readline,--with-freetype
I verify with the synaptic application and apt-get that
ReadLine and FreeType are installed.
What am I missing?
Where to locate the Readline and the FreeType library?
From where can I download the appropiate .rpm file to install those
libraries?

When I use --with-readline option I got:
...
checking whether to use Readline... yes
checking for location of Readline includes...
checking for readline/readline.h... yes
checking for readline/history.h... yes
checking for location of Readline library...
checking for readline in -lreadline... no
configure: error: *** Unable to locate Readline library.

When I use --with-freetype option I got:
...
checking whether to use FreeType... yes
checking for location of FreeType includes...
checking for ft2build.h... no
configure: error: *** Unable to locate FreeType includes.

When I use --with-mysql option, I got:
...
checking whether to use PostgreSQL... yes
checking for location of PostgreSQL includes...
checking for libpq-fe.h... yes
checking for location of PostgreSQL library...
checking for PQsetdbLogin in -lpq... yes
checking for PQcmdTuples in -lpq... yes
checking whether to use MySQL... yes
checking for location of MySQL includes...
checking for mysql.h... no
configure: error: *** Unable to locate MySQL includes.

Thank you very much for your help.
Kenneth

For readline support, there are a few missing symbols (tgetnum, tgoto, etc.) in GNU's (linux's) libreadline.so implementation that can be had with other libraries including libncurses.so, (which you should have), libtinfo.so and libtermcap.so (which you may not have).

By forcing inclusion of libncurses.so as an LDFLAG configuration parameter...

env F77=g77 \
  CFLAGS='-mtune=athlon-tbird -O2 -Wall' \
  CXXFLAGS='-mtune=athlon-tbird -02' \
  LDFLAGS='-lncurses -s' \
    ./configure \
      --with-options...

...this should allow you to compile in readline support. This is fairly well documented in the GRASSLIST archive if you search for 'readline`

Regarding MySQL support, while I currently don't use it, I believe either the MySQL libs or includes are not in the standard location, but a subdirectory of that. You'll have to check...

$ ls -ld /usr/lib/mysql* /usr/include/mysql*

Once you've figured out their location include that in the appropriate configure argument...

--with-mysql-includes=/usr/include/mysql # for example

-jv

Kenneth Cabrera wrote:

Hi GRASS users:

I'm trying to compiling GRASS(6.0.0beta2) in Scientific Linux
(http://linux.web.cern.ch/linux/scientific3/) and I don't have
any problem with the following ./configure options:
--with-blas
--with-lapack
--with-obdc
--with-motif
--with-glw
--with-nls
--with-cxx
But I got problems with
--with-mysql (And SL (Scientific Linux) has MySQL installed.
also with
--with-readline,--with-freetype

I'm trying to compiling GRASS(6.0.0beta2) in Scientific Linux
(http://linux.web.cern.ch/linux/scientific3/) and I don't have
any problem with the following ./configure options:
--with-blas
--with-lapack
--with-obdc
--with-motif
--with-glw
--with-nls
--with-cxx
But I got problems with
--with-mysql (And SL (Scientific Linux) has MySQL installed.
also with
--with-readline,--with-freetype
I verify with the synaptic application and apt-get that
ReadLine and FreeType are installed.
What am I missing?
Where to locate the Readline and the FreeType library?
From where can I download the appropiate .rpm file to install those
libraries?

When I use --with-readline option I got:
...
checking whether to use Readline... yes
checking for location of Readline includes...
checking for readline/readline.h... yes
checking for readline/history.h... yes
checking for location of Readline library...
checking for readline in -lreadline... no
configure: error: *** Unable to locate Readline library.

When I use --with-freetype option I got:
...
checking whether to use FreeType... yes
checking for location of FreeType includes...
checking for ft2build.h... no
configure: error: *** Unable to locate FreeType includes.

When I use --with-mysql option, I got:
...
checking whether to use PostgreSQL... yes
checking for location of PostgreSQL includes...
checking for libpq-fe.h... yes
checking for location of PostgreSQL library...
checking for PQsetdbLogin in -lpq... yes
checking for PQcmdTuples in -lpq... yes
checking whether to use MySQL... yes
checking for location of MySQL includes...
checking for mysql.h... no
configure: error: *** Unable to locate MySQL includes.

you probably just have to add"--with-mysql-includes=",
"--with-freetype-includes=", and/or "--with-readline-libs="
parts to direct it where to look. I see SciLinux is based on Redhat.

Here's how I configure grass for that: (Redhat 9)

CFLAGS="-O3 -march=pentium4 -g -Wall" ./configure \
    --with-motif \
    --with-motif-includes=/usr/X11R6/LessTif/Motif1.2/include \
    --with-motif-libs=/usr/X11R6/LessTif/Motif1.2/lib \
    --with-glw --with-proj --with-gdal \
    --with-cxx \
    --with-freetype --with-freetype-includes=/usr/include/freetype2

You can get config options with:
./configure --help | less

find missing includes with "locate":
locate mysql.h

should tell you where the file lives. (sometimes leave off any trailing
/lib or /include as they are assumed)

You may need the -dev version of the packages installed...

Redhat 9 had problems with readline, it isn't critical to have though.

Hamish

Hi GRASS users:

I want to know which is the smallest hardware configuration that
a full GRASS is installed.

Which LINUX distribution is better to support GRASS on a small
and old hardware configuration for example a 486 procesor with 64 MB?

Thank you for your help.

Kenneth Cabrera

(attachments)

krcabrer.8218DEFANGED-vcf (194 Bytes)

For my money, hands down that would be Debian. Debian's package manager (apt-get) is much more effective (IMO) at controlling not installing what you don't specifically request, particularly all the fluff that the other distros load by default, (as I close my Tux Racer and Frozen Bubbles windows).

You should consider compiling your own kernel, removing kernel drivers you don't absolutely need and compiling kernel modules for what you do need (when you can). You'll likely want a small/compact kernel image (bzipped) so you can squeeze it into your available memory.

And as for Grass, same goes. Don't include anything you don't need. Doesn't take much to create race conditions with 64mb. Don't create too big a swap partition either. Also, I would recommend using a window manager (assuming you'll be running X) that doesn't eat up cpu cycles like KDE and/or Gnome.

Kenneth Cabrera wrote:

Hi GRASS users:

I want to know which is the smallest hardware configuration that
a full GRASS is installed.

Which LINUX distribution is better to support GRASS on a small
and old hardware configuration for example a 486 procesor with 64 MB?

Thank you for your help.

Kenneth Cabrera