gvsig-gdal / trunk / org.gvsig.gdal2 / org.gvsig.gdal2.app / org.gvsig.gdal2.app.mainplugin / org.gvsig.gdal2.app.mainplugin.win.x86_64 / src / main / resources-plugin / autorun.sh @ 368
History | View | Annotate | Download (2.06 KB)
1 | 368 | jjdelcerro | #!/bin/sh |
---|---|---|---|
2 | # |
||
3 | # gvSIG. Desktop Geographic Information System. |
||
4 | # |
||
5 | # Copyright (C) 2007-2013 gvSIG Association. |
||
6 | # |
||
7 | # This program is free software; you can redistribute it and/or |
||
8 | # modify it under the terms of the GNU General Public License |
||
9 | # as published by the Free Software Foundation; either version 3 |
||
10 | # of the License, or (at your option) any later version. |
||
11 | # |
||
12 | # This program is distributed in the hope that it will be useful, |
||
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
15 | # GNU General Public License for more details. |
||
16 | # |
||
17 | # You should have received a copy of the GNU General Public License |
||
18 | # along with this program; if not, write to the Free Software |
||
19 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
||
20 | # MA 02110-1301, USA. |
||
21 | # |
||
22 | # For any additional information, do not hesitate to contact us |
||
23 | # at info AT gvsig.com, or visit our website www.gvsig.com. |
||
24 | # |
||
25 | |||
26 | |||
27 | # |
||
28 | # Plugin autorun |
||
29 | # |
||
30 | |||
31 | PLUGIN_NAME=$(basename "$PLUGIN_FOLDER") |
||
32 | |||
33 | gdal_init() { |
||
34 | logger_info "Using gdal from release-1800-x64-gdal-1-11-3-mapserver-6-4-2" |
||
35 | logger_info "http://www.gisinternals.com/query.html?content=filelist&file=release-1800-x64-gdal-1-11-3-mapserver-6-4-2.zip" |
||
36 | |||
37 | SDK_ROOT="$PLUGIN_FOLDER/gdal" |
||
38 | add_library_path "$SDK_ROOT/bin" |
||
39 | add_library_path "$SDK_ROOT/bin/gdal/java" |
||
40 | |||
41 | add_classpath "$SDK_ROOT/bin/gdal/java/gdal.jar" |
||
42 | |||
43 | #export GDAL_DATA="$SDK_ROOT/bin/gdal-data-1.11.3" |
||
44 | export GDAL_DATA="$SDK_ROOT/bin/gdal-data-2.2.1" |
||
45 | |||
46 | export GDAL_DRIVER_PATH="$SDK_ROOT/bin/gdal/plugins;$SDK_ROOT/bin/gdal/plugins-optional" |
||
47 | export PYTHONPATH="$SDK_ROOT/bin/gdal/python;$SDK_ROOT/bin/ms/python" |
||
48 | export PROJ_LIB="$SDK_ROOT/bin/gdal/proj/SHARE" |
||
49 | |||
50 | list_shared_library_dependencies "$SDK_ROOT/bin/gdal/java/gdaljni.dll" |
||
51 | list_shared_library_dependencies "$SDK_ROOT/bin/gdal/java/gdalconstjni.dll" |
||
52 | list_shared_library_dependencies "$SDK_ROOT/bin/gdal/java/ogrjni.dll" |
||
53 | list_shared_library_dependencies "$SDK_ROOT/bin/gdal/java/osrjni.dll" |
||
54 | list_shared_library_dependencies "$SDK_ROOT/bin/proj.dll" |
||
55 | } |
||
56 | |||
57 | gdal_init |