1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
UMN MapServer Extension for Thuban
===================================
*** ATTENTION: ***
The installation instructions here are detailed, so I hope everybody
can install the extension. People who are experienced will know
most of the commands, but everybody should be able to use
this extension.
Summary
--------------------
This extension for Thuban allows you to handle UMN MapServer .map-files.
Requirements
--------------------
To use the UMN MapServer extension you need:
UMN MapServer python-mapscript
The extension was tested with UMN MapServer 4.0 and 4.2,
older versions may not work.
Installation
--------------------
1. You need to build and install python-mapscript if you haven't installed yet.
Download the UMN MapServer (http://mapserver.gis.umn.edu/dload.html)
or use one on your system. The mapscript is included in the source package.
Unpack and compile the UMN MapServer and use the following optional
parameters:
proj: include projection support
gdal: include raster support
tiff: include tiff support
In some cases gdal is not necessary and mapscript can install without
gdal support.
A detailed install instruction can be found on the UMN MapServer Homepage.
(http://mapserver.gis.umn.edu)
Go to the directory where the UMN MapServer source code tar-ball exists:
tar -zxf mapserver-4.2.0.tar.gz
Go to the new created directory:
cd mapserver-4.2.0
Configure an make the UMN MapServer
./configure --with-gdal --with-proj --with-tiff
make
Now we can compile and install the python mapscript
cd mapscript/python/
python setup.py build
Some warnings are ok during the build of python mapscript
At last we either install mapscript as root:
python setup.py install
or (if you don't want to pollute your system with circumventing
the package installation system) you may set something
like this (not that the exact path depends on your system and
where you place the mapserver sources) for testing the stuff
temporarily:
export PYTHONPATH=~/mapserver-4.2.0/mapscript/python/build/lib.linux-i686-2.3
2. Add the umn_mapserver extension import statements to ~/.thuban/thubanstart.py
if you run thuban directly from the source directory the statement is:
import Extensions.umn_mapserver.mf_import
import Extensions.umn_mapserver.mf_export
import Extensions.umn_mapserver.mf_handle
More about how to use an extension
see README in thuban/Examples/simple_extensions.
3. Start Thuban and use the extension.
Usage
--------------------
The usage of the extension is very intuitive, so you will see what you can do
while you are using the extension ;)
|