File: README

package info (click to toggle)
mapserver 6.4.1-5%2Bdeb8u3
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 12,960 kB
  • ctags: 19,791
  • sloc: ansic: 119,501; cpp: 54,044; python: 3,055; xml: 1,676; cs: 875; lex: 741; yacc: 707; java: 588; perl: 428; makefile: 382; sh: 373; tcl: 158; ruby: 55
file content (62 lines) | stat: -rw-r--r-- 1,207 bytes parent folder | download | duplicates (18)
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