File: README

package info (click to toggle)
mapserver 5.0.3-3%2Blenny7
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 13,556 kB
  • ctags: 12,645
  • sloc: ansic: 168,024; cs: 8,534; python: 4,618; sh: 4,213; cpp: 4,059; perl: 2,781; makefile: 787; lex: 564; java: 415; yacc: 334; tcl: 158; ruby: 53
file content (90 lines) | stat: -rw-r--r-- 2,853 bytes parent folder | download | duplicates (5)
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
Java mapscript
==============

Before you begin, the JAVA_HOME environment variable must be properly set
and the Java programs "java" and "javac" must be on your path.

To generate the SWIG wrappers you need swig > 1.3.24.

+----------------------------------------------------------------------------+
| IMPORTANT API CHANGE: swig 1.3.24 introduced a new way of wrapping         |
| enumerations in Java which breaks compatibility with the mapscript         |
| generated by previous versions of swig.                                    |
| This will change again in the next major version of mapserver (version 5). |
+----------------------------------------------------------------------------+

MAPSCRIPT Reference
-------------------

The complete reference documentation is available on-line:

http://mapserver.gis.umn.edu/docs/reference/mapscript

or in the file:

../doc/mapscript.txt

SWIG wrappers
-------------

MapServer releases, beginning with 4.2.4, contain pre-generated wrapper code
(mapscript/java/mapscript_wrap.c) and class files (mapscript/java/edu).
Nevertheless it is recommended that you generate your own using the "interface"
target in the Java Makefile.

Requires swig > 1.3.24. Version 1.3.28 or 1.3.29 are recommended.

Installation
------------

After MapServer is configured and compiled, change directory to the Java
mapscript location and execute:

    $ cd mapscript/java
    $ make interface
    $ make
    $ make test (optional)
    $ make threadtests (optional)

The 'make interface' step is optional, but strongly recommended, see 'SWIG Wrappers'
above for the details.

Copy libmapscript.so and mapscript.jar to the appropriate location.

Windows
-------

Edit makefile.vc to match your environment.  You will need to set JAVA_HOME 
and SWIG_HOME to the appropriate variables.  You will likely need to copy 
all of the DLLs needed to run MapServer into the mapscript/java directory 
(including libmap.dll) so the mapscript.dll can see them to run.

cd mapscript/java
nmake /f makefile.vc
nmake /f makefile.vc test

International language support
------------------------------

Since May 2006 Java mapscript has complete support for international languages
usage in queries and mapscript internals. To document this improvement
we have created the examples/QueryByAttributeUnicode.java
test program which uses the ISO-8859-15 encoding.

http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1753
http://thread.gmane.org/gmane.comp.gis.mapserver.user/19298/focus=19298
http://thread.gmane.org/gmane.comp.gis.mapserver.user/19213/focus=19213

Onlice resources
----------------

Java mapscript related:

http://mapserver.gis.umn.edu/docs/howto/javamapscript
http://mapserver.gis.umn.edu/docs/howto/java_mapscript_Tomcat_55
http://mapserver.gis.umn.edu/docs/faq/thread_safety

General:

http://mapserver.gis.umn.edu/docs