From pierre@audiovu.com Wed May 3 17:01:14 2000 Return-Path: Received: from mgate.uni-hannover.de by hgeo02.geog.uni-hannover.de (SMI-8.6/SMI-SVR4) id RAA13768; Wed, 3 May 2000 17:01:14 +0100 Received: from postfix3.free.fr by mgate.uni-hannover.de (PP) with SMTP; Wed, 3 May 2000 17:06:39 +0200 Received: from saturne.audiovu.com (paris11-nas2-42-59.dial.proxad.net [212.27.42.59]) by postfix3.free.fr (Postfix) with ESMTP id A4F7186CC7 for ; Wed, 3 May 2000 17:06:33 +0200 (CEST) Received: from localhost (localhost [[UNIX: localhost]]) by saturne.audiovu.com (8.9.3/8.8.7) id RAA10907 for neteler@geog.uni-hannover.de; Wed, 3 May 2000 17:07:05 +0200 From: Pierre de Mouveaux Reply-To: pmx@audiovu.com To: Markus Neteler Subject: Layered driver Date: Wed, 3 May 2000 16:39:46 +0200 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <00050316555600.03437@saturne.audiovu.com> Content-Transfer-Encoding: quoted-printable Sender: pierre@audiovu.com Status: RO X-Status: A Content-Length: 1520 Lines: 67 Hello Makus, First, are you sure that the new layered driver has replaced the standar= d=20 driver?=20 If so, then here's a short tutorial ;)))) When opening a driver, you begin with layer '0' (the bottom). select an other layer: (layer 1, that is over layer 0).=20 d.layers -t l=3D1 At this point, the current target layer is '1'.=20 d.vect realnutz96=20 The vector map is drawn. Nothings special ... at first glance. then, add a raster in the bottom of the map: d.layers -t l=3D0 d.rast dgm25 =20 Magic there: it draws *under* the vector map! At this point, the "cuuent layer" is again layer '0' that we just selecte= d. Now, some exercises... to hide the vector map d.layers -h l=3D1 then, to "solo" the vector map d.layers -o l=3D1 to solo the raster map, that's the current map, we can ommit the layer=3D= option d.layers -o to redraw all layers: d.layers -a. To erase the current layer d.layers -x=20 ... ;) doesn't work! For security, you are required to supply the layer = id ! so=20 d.layers -x l=3D0 You have only the vector map. And to confirm that the currnt layer is the layer '0', you just type d.layers -g =20 I tried a "transparency" layer. I did it like a xxx (my english vocabular= y is not rich enough ;). It's very slow. But it works. The slow part is an incredible time I spent into one XLib function that lookup colors.=20 PS I'm reading the New grass programmers manual 5.0. I will send you my first impressions. Sure, it's a really needed work you= do!!! Bye, Pierre.