/usr/share/doc/ruby-mapscript/README is in ruby-mapscript 6.4.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | Ruby MapScript Interface
------------------------
BUILD
-----
The files that are required to create the library 'mapscript.so' :
mapscript.i
extconf.rb
Be sure that you have installed SWIG version 1.3a5 or greater.
The installation is tested with ruby version 1.6 and 1.8.
To build type :
# ruby extconf.rb
# make
INSTALL
-------
If you don't want to install the library, you have to add the library
path as argument to the command (ruby -I[path/to/the/library] ...).
To install type as 'root' user :
# make install
EXAMPLES
--------
To run the examples:
Go to the directory of the examples
# cd examples
Run the example to receive information about a shape file
# ruby shpinfo.rb [path/shapefile.shp]
or if you don't have executed 'make install'
# ruby -I[path/to/mapscript.so] shpinfo.rb [path/shapefile.shp]
e.g.: # ruby -I.. shpinfo.rb lake2spy.shp
Run the example to create a PNG file from a shape file. The output
will be in the file [shapefile].png.
# ruby shp2img.rb [path/shapefile.shp]
or
# ruby -I[path/to/mapscript.so] shp2img.rb [path/shapefile.shp]
e.g.: # ruby -I.. shp2img.rb lake2spy.shp
AUTHOR
------
Markus Schnider
msr@sourcepole.ch
http://www.sourcepole.com
|