File: README

package info (click to toggle)
mapserver 4.10.0-5.1%2Betch4
  • links: PTS
  • area: main
  • in suites: etch
  • size: 12,264 kB
  • ctags: 15,165
  • sloc: ansic: 164,837; sh: 6,141; python: 5,770; java: 5,169; perl: 2,388; cpp: 1,603; makefile: 735; lex: 507; yacc: 317; tcl: 158; cs: 85; ruby: 53
file content (62 lines) | stat: -rw-r--r-- 1,207 bytes parent folder | download | duplicates (17)
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