[GRASS-dev] porting r.in.wms to python

Glynn Clements glynn at gclements.plus.com
Sun Oct 5 15:39:42 EDT 2008


Glynn Clements wrote:

> > before anyone spends any time porting r.in.wms/r.tileset to python,
> 
> I was planning on leaving those until last ;)

Well, I'm now planning on just leaving them, period ;)

Here's the current status on conversion of scripts to Python:

The following scripts are disabled, and haven't been converted:

	d.out.gpsdrive   (d.mon)
	d.rast.leg       (d.frame)
	d.vect.thematic  (d.mon)
	i.spectral       (d.mon, d.where)
	r.mapcalculator  (redundant)
	r3.mapcalculator (redundant)

We need to decide whether they are to be fixed or removed.

r.out.gdal.sh is still installed, but hasn't been converted. Is this
worth keeping around as a backup? If it is, I'll convert it, otherwise
it should be removed.

These:
	r.in.wms/r.in.wms
	r.tileset/r.tileset
	v.in.gpsbabel/v.in.gpsbabel
	v.in.garmin/v.in.garmin

are too complex to replace using "rote" conversion (i.e. simply
replacing each chunk of code with equivalent Python code).

The limitations of the Bourne shell mean that complex shell scripts
are invariably structured in a manner which doesn't make sense in any
other language.

The above scripts really need to be rewritten by someone who
understands the overall purpose of the script.

The remaining scripts have all been converted to Python (including
d.rast.edit, which was previously Tcl/Tk). The existing versions
remain for comparison, but are no longer installed.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list