[GRASS-dev] Wingrass and TclTk

Hamish hamish_nospam at yahoo.com
Thu Nov 1 08:02:03 EDT 2007


Hamish:
> > > we should make a list of the minimal set of needed commands, eg
..
Benjamin:
> > Yes, that's definitely a good idea.
> > Maybe I could just make a minimal MSYS install from scratch,
> > check that the tools you listed (additions, anyone?) are in
> > there and then try and remove more "bloat" until we are left
> > with the minimum of what's needed.
> > 
> > That should severely cut down on the size of the MSYS package
> > we'd need to provide.
> > 
> > Let's just all try and put together a complete list of what's
> > needed first, then I'll have a go at it.
Glynn:
> I see the following:
> 
> 1. Standard utilities from coreutils:
> 
> [
> basename
> cat
> cp
> cut
> date
> dirname
> echo
> expr
> head
> ls
> mkdir
> mv
> paste
> pwd
> rm
> rmdir
> sleep
> sort
> tac
> tail
> tee
> tr
> uniq
> wc
> 
> Of those, [, echo and pwd exist both as bash built-ins and external
> utilities.
> 
> 2. Standard utilities not part of coreutils:
> 
> awk
> bc
> diff
> file
> find
> grep
> sed
> which
> 
> [Note that "file" needs to locate /etc/magic.]
> 
> 3. Additional utilities:
> 
> avcimport		v.in.e00
> cs2cs			m.proj, r.tileset, v.in.garmin, v.in.gpsbabel
> curl			r.in.wms
> e00conv		v.in.e00
> fc-list		mkftcap
> gardump		v.in.garmin
> gdal_translate	d.out.file, r.out.gdal.sh
> gdalinfo		i.in.spotvgt, r.out.gdal.sh
> gdalwarp		r.in.aster, r.in.wms
> gnuplot		i.spectral
> gpsbabel		v.in.gpsbabel
> gpstrans		v.in.garmin
> ldd			v.in.wfs
> lynx			v.in.wfs
> man			g.manual
> ogrinfo		v.in.wfs
> perl			d.monsize
> pngtopnm		d.out.gpsdrive
> pnmtojpeg		d.out.gpsdrive
> sqlite3		v.db.join
> sync			d.out.gpsdrive
> unzip			r.in.srtm
> wget			r.in.wms
> wms.download		r.in.wms
> wms.request		r.in.wms
> xgraph		d.polar
> xml2			r.in.wms


wms.download and wms.request are internal from scripts/r.in.wms/

missing:
  mpeg_encode or ppmtompeg for r.out.mpeg

some of the above are optional
 (d.polar will work without xgraph, r.in.wms will work without xml2)

curl & wget are either/or
gardump & gpstrans are either/or and probably UNIX,Linux specific, respectively
GpsDrive is not ported to MS Windows so d.out.gpsdrive deps are low priority

All the C system() calls need to be searched too I guess.



> BTW, the use of "ldd" by v.in.wfs is entirely bogus:
> 
> 	# xerces support compiled in?
> 	OGRINFO=`which ogrinfo`
> 	if [ -z "`ldd $OGRINFO | grep xerces`" ] ; then
> 	  g.message -e "OGR needs to be compiled with xerces-c support"
> 	  exit 1
> 	fi
> 
> This needs to be changed to something which will work on other
> platforms. Does "gdalinfo --formats" suffice?

Nope.
$ ogrinfo --formats | grep -ic xer
0
$ ldd `which ogrinfo` | grep xer
        libxerces-c.so.27 => /usr/lib/libxerces-c.so.27 (0xb76c0000)

as Xerces is apparently a XML parser not a vector format :)

You could try
$ gdal-config --dep-libs | tr ' ' '\n' | grep -ci xerces
1

but then gdal-config isn't always around. e.g. on Debian gdal-config comes with
the libgdal1-dev package and not the gdal-bin package. (and the libgdal1-dev
package depends on 18 other dev packages, which in turn depend on enough stuff
to make it a 20-50mb download just to run gdal-config. :-/ )


> Also, we don't really need all three of lynx, wget and curl; any one
> of those would suffice.

IIRC lynx is used to strip off HTML tags, ie to convert .html to .txt.

r.in.wms (wms.download) checks for wget. If it can't find it it then looks for
curl. (Apparently curl comes with MacOSX but wget doesn't)
So we wouldn't want to supply both.


Hamish


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the grass-dev mailing list