[GRASS5] XML fun with --interface-description's...

FYI,
  Been making a little progress using XSL Transforms on the output of
  
  $ <grass-cmd> --interface-description 1> <grass-cmd>.xml

  Anyway, if you're interested http://www.jps.net/egm2/grass/xml

  Note: The "task" thingies uses a little bit of CSS for formatting.
  Apparently Netscrape doesn't handle it well, so you might want to turn
  off stylesheets (looks much better in Mozilla, or any text browser!).

  When I figure out a more usable "package", I'll see about adding it to
  CVS.

--
Eric G. Miller <egm2@jps.net>

Eric,
the output looks quite nice under galeon. :slight_smile:
Maybe the red stars and the attributes of the parameters can
be displayed a little bit more compact.

  Bernhard
On Sun, Jun 24, 2001 at 02:25:54AM -0700, Eric G. Miller wrote:

  Been making a little progress using XSL Transforms on the output of
  $ <grass-cmd> --interface-description 1> <grass-cmd>.xml

  Anyway, if you're interested http://www.jps.net/egm2/grass/xml

  Note: The "task" thingies uses a little bit of CSS for formatting.
  Apparently Netscrape doesn't handle it well, so you might want to turn
  off stylesheets (looks much better in Mozilla, or any text browser!).

  When I figure out a more usable "package", I'll see about adding it to
  CVS.

--
Eric G. Miller <egm2@jps.net>
_______________________________________________
grass5 mailing list
grass5@geog.uni-hannover.de
http://www.geog.uni-hannover.de/mailman/listinfo/grass5

--
Professional Service around Free Software (intevation.net)
The FreeGIS Project (freegis.org)
Association for a Free Informational Infrastructure (ffii.org)
FSF Europe (fsfeurope.org)

On Sun, Jun 24, 2001 at 05:43:38PM +0200, Bernhard Reiter wrote:

Eric,
the output looks quite nice under galeon. :slight_smile:
Maybe the red stars and the attributes of the parameters can
be displayed a little bit more compact.

I'm open to suggestions. Maybe little icons for each of "type",
"required", and "multiple"? I might be able to combine the "default"
and "options" a little too (getting rid of the list altogether). I had
it in tables before which was more compact, but I had left out the
"default" and "options". Having them as table cells was too much, but
maybe I can just squeeze them under the description? I've spent most of
the time fighting with the weird constructs of XSLT and XPATH
languages...

--
Eric G. Miller <egm2@jps.net>

On Sun, Jun 24, 2001 at 10:45:27AM -0700, Eric G. Miller wrote:

On Sun, Jun 24, 2001 at 05:43:38PM +0200, Bernhard Reiter wrote:

> the output looks quite nice under galeon. :slight_smile:
> Maybe the red stars and the attributes of the parameters can
> be displayed a little bit more compact.

I'm open to suggestions. Maybe little icons for each of "type",
"required", and "multiple"?

Nah, icons are hard to understand. Maybe colors.

I might be able to combine the "default"
and "options" a little too (getting rid of the list altogether). I had
it in tables before which was more compact, but I had left out the
"default" and "options". Having them as table cells was too much, but
maybe I can just squeeze them under the description? I've spent most of
the time fighting with the weird constructs of XSLT and XPATH
languages...

Some table and color options probably help.
I know that XSLT and XPATH are well complicated.
That is why I am still not sure if they are under- or overrated in
the public eye.

  Bernhard

--
Professional Service around Free Software (intevation.net)
The FreeGIS Project (freegis.org)
Association for a Free Informational Infrastructure (ffii.org)
FSF Europe (fsfeurope.org)

On Sun, Jun 24, 2001 at 08:25:01PM +0200, Bernhard Reiter wrote:

On Sun, Jun 24, 2001 at 10:45:27AM -0700, Eric G. Miller wrote:
> I'm open to suggestions. Maybe little icons for each of "type",
> "required", and "multiple"?

Nah, icons are hard to understand. Maybe colors.

Okay, I'm not big on icons either. They're rarely intuitive.

Some table and color options probably help.
I know that XSLT and XPATH are well complicated.
That is why I am still not sure if they are under- or overrated in
the public eye.

Okay, I've updated to use tables. Finally I found a way to
conditionally separate "flags" vs. parameters with arguments. I kept
having problems with order dependencies... <*sigh*>. I'm in total
agreement about all this XML stuff being way overrated. It'll be useful
in some contexts, but just look how badly something like gnumeric
performs with large spreadsheets. XML wants to be able to load
everything into memory for parsing, but what if your "document" is
256MB? Perhaps the libraries will get better about this...

Anyway, have a look at the new output (baby blue and light grey
colorings...).

--
Eric G. Miller <egm2@jps.net>

From neteler Mon Jun 25 11:41:55 2001
Return-Path: <neteler>
Received: by hgeo02.geog.uni-hannover.de (SMI-8.6/SMI-SVR4)
  id LAA16991; Mon, 25 Jun 2001 11:41:55 +0100
Date: Mon, 25 Jun 2001 11:41:55 +0100
From: Markus Neteler <neteler@geog.uni-hannover.de>
To: grass5 developers list <grass5@geog.uni-hannover.de>
Subject: Re: [GRASS5] grass font
Message-ID: <20010625114155.L29754@hgeo02.geog.uni-hannover.de>
Mail-Followup-To: grass5 developers list <grass5@geog.uni-hannover.de>
References: <3B1A28B4.23A2D723@yahoo.com> <01061508473500.05007@blazek> <15146.9407.317716.902092@cerise.nosuchdomain.co.uk> <01062410503401.01009@localhost.localdomain> <3B35B25B.CAE51ECA@yahoo.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3B35B25B.CAE51ECA@yahoo.com>; from agarwal_somesh@yahoo.com on Sun, Jun 24, 2001 at 02:56:51PM +0530
Sender: grass5-admin@geog.uni-hannover.de
Errors-To: grass5-admin@geog.uni-hannover.de
X-BeenThere: grass5@geog.uni-hannover.de
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:grass5-request@geog.uni-hannover.de?subject=help>
List-Post: <mailto:grass5@geog.uni-hannover.de>
List-Subscribe: <http://www.geog.uni-hannover.de/mailman/listinfo/grass5&gt;,
  <mailto:grass5-request@geog.uni-hannover.de?subject=subscribe>
List-Id: GRASS 5 Developers mailing list <grass5.geog.uni-hannover.de>
List-Unsubscribe: <http://www.geog.uni-hannover.de/mailman/listinfo/grass5&gt;,
  <mailto:grass5-request@geog.uni-hannover.de?subject=unsubscribe>
List-Archive: <http://www.geog.uni-hannover.de/pipermail/grass5/&gt;
Status: O
Content-Length: 487
Lines: 18

On Sun, Jun 24, 2001 at 02:56:51PM +0530, Somesh Agarwal wrote:
...

looking at this picture , I have being working on this for quite sometime ,
I have being able to use freetype font rendering engine to generate
bitmaps which then i can throw on the screen using raster methods.
More enhancements can be done on this .What say people.

Hi Somesh,

as freetype support is on the wish list for a long time, it would
be excellent to have it in GRASS!

Regards

Markus Neteler

From neteler Mon Jun 25 17:12:04 2001
Return-Path: <neteler>
Received: by hgeo02.geog.uni-hannover.de (SMI-8.6/SMI-SVR4)
  id RAA19035; Mon, 25 Jun 2001 17:12:04 +0100
Date: Mon, 25 Jun 2001 17:12:04 +0100
From: Markus Neteler <neteler@geog.uni-hannover.de>
To: grass5 developers list <grass5@geog.uni-hannover.de>
Subject: Re: [GRASS5] Driver Update
Message-ID: <20010625171204.G18370@hgeo02.geog.uni-hannover.de>
Mail-Followup-To: grass5 developers list <grass5@geog.uni-hannover.de>
References: <20010511172543.A29624@hgeo02.geog.uni-hannover.de> <15100.33453.372858.117251@cerise.nosuchdomain.co.uk> <20010527104025.I12157@hgeo02.geog.uni-hannover.de> <15121.14708.979191.289876@cerise.nosuchdomain.co.uk> <20010613171316.K10125@hgeo02.geog.uni-hannover.de> <15143.56498.53250.288145@cerise.nosuchdomain.co.uk> <20010614114747.C11308@hgeo02.geog.uni-hannover.de> <15144.45297.673435.379639@cerise.nosuchdomain.co.uk> <20010614161829.B18856@hgeo02.geog.uni-hannover.de> <15145.8392.320239.598657@cerise.nosuchdomain.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <15145.8392.320239.598657@cerise.nosuchdomain.co.uk>; from glynn.clements@virgin.net on Thu, Jun 14, 2001 at 09:38:32PM +0100
Sender: grass5-admin@geog.uni-hannover.de
Errors-To: grass5-admin@geog.uni-hannover.de
X-BeenThere: grass5@geog.uni-hannover.de
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:grass5-request@geog.uni-hannover.de?subject=help>
List-Post: <mailto:grass5@geog.uni-hannover.de>
List-Subscribe: <http://www.geog.uni-hannover.de/mailman/listinfo/grass5&gt;,
  <mailto:grass5-request@geog.uni-hannover.de?subject=subscribe>
List-Id: GRASS 5 Developers mailing list <grass5.geog.uni-hannover.de>
List-Unsubscribe: <http://www.geog.uni-hannover.de/mailman/listinfo/grass5&gt;,
  <mailto:grass5-request@geog.uni-hannover.de?subject=unsubscribe>
List-Archive: <http://www.geog.uni-hannover.de/pipermail/grass5/&gt;
Status: O
Content-Length: 616
Lines: 22

Hi all,

I have found a display/color problem in d.his:

Today I have done some calculation in northern Italy DEM (GLOBE DEM) and
created an aspect map using r.slope.aspect. Unfortunately moire appears at
Garda lake: all pixels have 0.0 aspect as the lake is flat in DEM, but
appear in different gray values in GRASS monitor.

A screenshot is here:
http://www.geog.uni-hannover.de/users/neteler/tmp/monitor

I have made the map using the command:

d.his i=aspect h=red_map

The red_map doesn't cover the entire area, so the lake area is only affected
by "i=aspect".

Any help would be welcome to fix d.his,

Markus

From neteler Mon Jun 25 17:56:54 2001
Return-Path: <neteler>
Received: by hgeo02.geog.uni-hannover.de (SMI-8.6/SMI-SVR4)
  id RAA19276; Mon, 25 Jun 2001 17:56:54 +0100
Date: Mon, 25 Jun 2001 17:56:54 +0100
From: Markus Neteler <neteler@geog.uni-hannover.de>
To: Bob Covill <bcovill@tekmap.ns.ca>
Cc: grass5 developers list <grass5@geog.uni-hannover.de>
Message-ID: <20010625175654.B19099@hgeo02.geog.uni-hannover.de>
Mail-Followup-To: Bob Covill <bcovill@tekmap.ns.ca>,
  grass5 developers list <grass5@geog.uni-hannover.de>
References: <3B375E43.DBAB7E03@tekmap.ns.ca>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3B375E43.DBAB7E03@tekmap.ns.ca>; from bcovill@tekmap.ns.ca on Mon, Jun 25, 2001 at 12:52:35PM -0300
Subject: [GRASS5] Re: d.his
Sender: grass5-admin@geog.uni-hannover.de
Errors-To: grass5-admin@geog.uni-hannover.de
X-BeenThere: grass5@geog.uni-hannover.de
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:grass5-request@geog.uni-hannover.de?subject=help>
List-Post: <mailto:grass5@geog.uni-hannover.de>
List-Subscribe: <http://www.geog.uni-hannover.de/mailman/listinfo/grass5&gt;,
  <mailto:grass5-request@geog.uni-hannover.de?subject=subscribe>
List-Id: GRASS 5 Developers mailing list <grass5.geog.uni-hannover.de>
List-Unsubscribe: <http://www.geog.uni-hannover.de/mailman/listinfo/grass5&gt;,
  <mailto:grass5-request@geog.uni-hannover.de?subject=unsubscribe>
List-Archive: <http://www.geog.uni-hannover.de/pipermail/grass5/&gt;
Status: O
Content-Length: 827
Lines: 24

Bob,

On Mon, Jun 25, 2001 at 12:52:35PM -0300, Bob Covill wrote:

Markus,

I have attached a version of d.his that I modified a while back. I found
that color tables from floating point rasters were reduced to integers,
giving undesirable results.

The version that I have attached has a couple of extra flags (-o) to
overwrite output file if it exists, and bit= to set the bit depth in the
output (i.e. 8=255, 12=4096, etc).

You will have to edit the makefile and change BIN_AGC to BIN_CMD.

that's nearly real-time response! A suggestion: perhaps the "bit" parameter
can be controled by the Xserver color depth? There fill be such a function.

Unfortunately the moire in identical aspect areas is still there.

Anyway, you update will be improving the existing module, will you update
in CVS?

Markus

From neteler Mon Jun 25 18:14:05 2001
Return-Path: <neteler>
Received: by hgeo02.geog.uni-hannover.de (SMI-8.6/SMI-SVR4)
  id SAA19390; Mon, 25 Jun 2001 18:14:05 +0100
Date: Mon, 25 Jun 2001 18:14:05 +0100
From: Markus Neteler <neteler@geog.uni-hannover.de>
To: Bob Covill <bcovill@tekmap.ns.ca>
Cc: grass5 developers list <grass5@geog.uni-hannover.de>
Message-ID: <20010625181404.C19099@hgeo02.geog.uni-hannover.de>
Mail-Followup-To: Bob Covill <bcovill@tekmap.ns.ca>,
  grass5 developers list <grass5@geog.uni-hannover.de>
References: <3B375E43.DBAB7E03@tekmap.ns.ca>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3B375E43.DBAB7E03@tekmap.ns.ca>; from bcovill@tekmap.ns.ca on Mon, Jun 25, 2001 at 12:52:35PM -0300
Subject: [GRASS5] Re: d.his
Sender: grass5-admin@geog.uni-hannover.de
Errors-To: grass5-admin@geog.uni-hannover.de
X-BeenThere: grass5@geog.uni-hannover.de
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:grass5-request@geog.uni-hannover.de?subject=help>
List-Post: <mailto:grass5@geog.uni-hannover.de>
List-Subscribe: <http://www.geog.uni-hannover.de/mailman/listinfo/grass5&gt;,
  <mailto:grass5-request@geog.uni-hannover.de?subject=subscribe>
List-Id: GRASS 5 Developers mailing list <grass5.geog.uni-hannover.de>
List-Unsubscribe: <http://www.geog.uni-hannover.de/mailman/listinfo/grass5&gt;,
  <mailto:grass5-request@geog.uni-hannover.de?subject=unsubscribe>
List-Archive: <http://www.geog.uni-hannover.de/pipermail/grass5/&gt;
Status: O
Content-Length: 391
Lines: 19

Hi again on d.his,

there is a simple test to see what I mean with "moire patterns":

r.mapcalc map1=44
r.mapcalc map2=100
d.his i=map1 h=map2

I would expect a homogenous color, but there are irregular patterns.

If you use:

d.his i=map1 h=map2 out=his
r.univar his

you will find a range of values although it should be one value overall.
It looks like a precision problem to me.

Markus