portrait

Поиск



[software] [catdoc] [tcl] [geography] [old things]

fGIS installation instructions

Before compiling and installing fGIS you should have working installation of Tcl/Tk 8.0

Pre-alpha snapshots of fGIS source tree do not include correct install target in makefile.

So, you must install it by hand. Source tree is organized such way that fGIS can be loaded directly from compilation directory.

fGIS library directory should reside somewhere Tcl can find its packages i.e. as subdirectory of one of directories in tcl_pkgPath.

Directory tree should have following structure:

  fgis
    |
    +-pkgIndex.tcl
    +-fgis.so (fgis.dll)
    +-fgis.rc
    +-tcl/
    |   |
    |   +- various scripts
    |
    +--colors/
    |   |
    |   +-color palettes (*.clr)
    |
    +--symbols/
        |
	+-- symbol files (*.sym)

fGIS initialization code uses some heuristics to find where its support files are located, but sureest method is to set Tcl variable fGIS_HOME to the top of fGIS library directory before loading dynamic library.

your pkgIndex.tcl can look as

package ifneeded Fgis 1.0 {set fGIS_HOME /usr/local/lib/fgis; load /usr/local/lib/fgis/fgis.so}

Directory tcl in fgis source tree contain two executable scripts - mapview and hypermap. They are sample fGIS applications. In Unix they can be easily moved to any directory in your PATH - with correctly set up pkgIndex.tcl they'll find support files anywhere. On windows they should be renamed to mapview.tcl and hypermap.tcl so they could be started with double click.

More to follow soon..