Revision 2786
org.gvsig.raster.gdal/tags/v2.2.2/org.gvsig.raster.gdal.app/unpack-dependencies.sh | ||
---|---|---|
1 |
#!/bin/bash |
|
2 |
|
|
3 |
#set -x |
|
4 |
|
|
5 |
dep_dir=$1; |
|
6 |
dest_dir=$2; |
|
7 |
|
|
8 |
if [ ! -d $dest_dir ]; then mkdir $dest_dir; fi; |
|
9 |
if [ ! -d $dep_dir ]; then exit 0; fi |
|
10 |
|
|
11 |
if [ ! -d $dest_dir/unpacked ]; then |
|
12 |
mkdir $dest_dir/unpacked; |
|
13 |
fi |
|
14 |
|
|
15 |
# Get all natives sdk bundle files |
|
16 |
files=$(find $dep_dir -type f -name *.tar.gz) |
|
17 |
|
|
18 |
for i in $files; do |
|
19 |
filename=`basename $i` |
|
20 |
filedest="$dest_dir/unpacked/$filename" |
|
21 |
|
|
22 |
#echo FileName: "$filename" |
|
23 |
#echo FileDest: "$filedest" |
|
24 |
|
|
25 |
# Overwrite only if the file is newer than the one stored as unpacked |
|
26 |
if [ ! -f "$filedest" ] || [ "$i" -nt "$filedest" ]; then |
|
27 |
echo "Expanding $i in $dest_dir" |
|
28 |
cp "$i" "$dest_dir/unpacked" |
|
29 |
tar xzf "$i" -C "$dest_dir" |
|
30 |
else |
|
31 |
echo "$i not newer than the one available in $dest_dir/unpacked, not expanding it" |
|
32 |
fi |
|
33 |
done |
org.gvsig.raster.gdal/tags/v2.2.2/org.gvsig.raster.gdal.app/buildNumber.properties | ||
---|---|---|
1 |
#Fri Mar 28 14:00:07 CET 2014 |
|
2 |
buildNumber=57 |
|
0 | 3 |
org.gvsig.raster.gdal/tags/v2.2.2/org.gvsig.raster.gdal.app/src/main/assembly/gvsig-plugin-package-fedora11.xml | ||
---|---|---|
1 |
<assembly> |
|
2 |
<id>gvsig-plugin-package</id> |
|
3 |
<formats> |
|
4 |
<format>zip</format> |
|
5 |
</formats> |
|
6 |
<baseDirectory>${project.artifactId}</baseDirectory> |
|
7 |
<includeBaseDirectory>true</includeBaseDirectory> |
|
8 |
<files> |
|
9 |
<file> |
|
10 |
<source>target/${project.artifactId}-${project.version}.jar</source> |
|
11 |
<outputDirectory>lib</outputDirectory> |
|
12 |
</file> |
|
13 |
<file> |
|
14 |
<source>target/package.info</source> |
|
15 |
</file> |
|
16 |
<file> |
|
17 |
<source>${user.home}/.depman/lib/libxerces-c.so.28</source> |
|
18 |
<outputDirectory>install/files/native</outputDirectory> |
|
19 |
</file> |
|
20 |
<file> |
|
21 |
<source>${user.home}/.depman/lib/libsqlite3.so.0</source> |
|
22 |
<outputDirectory>install/files/native</outputDirectory> |
|
23 |
</file> |
|
24 |
<file> |
|
25 |
<source>${user.home}/.depman/lib/libproj.so.0</source> |
|
26 |
<outputDirectory>install/files/native</outputDirectory> |
|
27 |
</file> |
|
28 |
<file> |
|
29 |
<source>${user.home}/.depman/lib/libpq.so.5</source> |
|
30 |
<outputDirectory>install/files/native</outputDirectory> |
|
31 |
</file> |
|
32 |
<file> |
|
33 |
<source>${user.home}/.depman/lib/libogdi.so.3</source> |
|
34 |
<outputDirectory>install/files/native</outputDirectory> |
|
35 |
</file> |
|
36 |
<file> |
|
37 |
<source>${user.home}/.depman/lib/libodbcinst.so.2</source> |
|
38 |
<outputDirectory>install/files/native</outputDirectory> |
|
39 |
</file> |
|
40 |
<file> |
|
41 |
<source>${user.home}/.depman/lib/libodbc.so.2</source> |
|
42 |
<outputDirectory>install/files/native</outputDirectory> |
|
43 |
</file> |
|
44 |
<file> |
|
45 |
<source>${user.home}/.depman/lib/libnetcdf.so.4</source> |
|
46 |
<outputDirectory>install/files/native</outputDirectory> |
|
47 |
</file> |
|
48 |
<file> |
|
49 |
<source>${user.home}/.depman/lib/libmysqlclient.so.16</source> |
|
50 |
<outputDirectory>install/files/native</outputDirectory> |
|
51 |
</file> |
|
52 |
<file> |
|
53 |
<source>${user.home}/.depman/lib/libjgdal2.0.4.so</source> |
|
54 |
<outputDirectory>install/files/native</outputDirectory> |
|
55 |
</file> |
|
56 |
<file> |
|
57 |
<source>${user.home}/.depman/lib/libhdf5.so.6</source> |
|
58 |
<outputDirectory>install/files/native</outputDirectory> |
|
59 |
</file> |
|
60 |
<file> |
|
61 |
<source>${user.home}/.depman/lib/libgeos_c.so.1</source> |
|
62 |
<outputDirectory>install/files/native</outputDirectory> |
|
63 |
</file> |
|
64 |
<file> |
|
65 |
<source>${user.home}/.depman/lib/libgeos-3.0.3.so</source> |
|
66 |
<outputDirectory>install/files/native</outputDirectory> |
|
67 |
</file> |
|
68 |
<file> |
|
69 |
<!-- Acordarse de actualizar el install.xml cuando se cambie esto. --> |
|
70 |
<source>${user.home}/.depman/lib/libgdal.so.1.13.0</source> |
|
71 |
<outputDirectory>install/files/native</outputDirectory> |
|
72 |
</file> |
|
73 |
<file> |
|
74 |
<source>${user.home}/.depman/lib/libblas.so.3</source> |
|
75 |
<outputDirectory>install/files/native</outputDirectory> |
|
76 |
</file> |
|
77 |
<file> |
|
78 |
<source>${user.home}/.depman/lib/libcfitsio.so.0</source> |
|
79 |
<outputDirectory>install/files/native</outputDirectory> |
|
80 |
</file> |
|
81 |
<file> |
|
82 |
<source>${user.home}/.depman/lib/libcurl.so.4</source> |
|
83 |
<outputDirectory>install/files/native</outputDirectory> |
|
84 |
</file> |
|
85 |
<file> |
|
86 |
<source>${user.home}/.depman/lib/libdapclient.so.3</source> |
|
87 |
<outputDirectory>install/files/native</outputDirectory> |
|
88 |
</file> |
|
89 |
<file> |
|
90 |
<source>${user.home}/.depman/lib/libdapserver.so.6</source> |
|
91 |
<outputDirectory>install/files/native</outputDirectory> |
|
92 |
</file> |
|
93 |
<file> |
|
94 |
<source>${user.home}/.depman/lib/libdap.so.9</source> |
|
95 |
<outputDirectory>install/files/native</outputDirectory> |
|
96 |
</file> |
|
97 |
<file> |
|
98 |
<source>${user.home}/.depman/lib/libfftw.so.2</source> |
|
99 |
<outputDirectory>install/files/native</outputDirectory> |
|
100 |
</file> |
|
101 |
<file> |
|
102 |
<source>${user.home}/.depman/lib/libgeotiff.so.1.2</source> |
|
103 |
<outputDirectory>install/files/native</outputDirectory> |
|
104 |
</file> |
|
105 |
|
|
106 |
<file> |
|
107 |
<source>${user.home}/.depman/lib/libgrass_datetime.so.6.3</source> |
|
108 |
<outputDirectory>install/files/native</outputDirectory> |
|
109 |
</file> |
|
110 |
<file> |
|
111 |
<source>${user.home}/.depman/lib/libgrass_dbmibase.so.6.3</source> |
|
112 |
<outputDirectory>install/files/native</outputDirectory> |
|
113 |
</file> |
|
114 |
<file> |
|
115 |
<source>${user.home}/.depman/lib/libgrass_dbmiclient.so.6.3</source> |
|
116 |
<outputDirectory>install/files/native</outputDirectory> |
|
117 |
</file> |
|
118 |
<file> |
|
119 |
<source>${user.home}/.depman/lib/libgrass_dgl.so.6.3</source> |
|
120 |
<outputDirectory>install/files/native</outputDirectory> |
|
121 |
</file> |
|
122 |
<file> |
|
123 |
<source>${user.home}/.depman/lib/libgrass_dig2.so.6.3</source> |
|
124 |
<outputDirectory>install/files/native</outputDirectory> |
|
125 |
</file> |
|
126 |
<file> |
|
127 |
<source>${user.home}/.depman/lib/libgrass_gis.so.6.3</source> |
|
128 |
<outputDirectory>install/files/native</outputDirectory> |
|
129 |
</file> |
|
130 |
<file> |
|
131 |
<source>${user.home}/.depman/lib/libgrass_gmath.so.6.3</source> |
|
132 |
<outputDirectory>install/files/native</outputDirectory> |
|
133 |
</file> |
|
134 |
<file> |
|
135 |
<source>${user.home}/.depman/lib/libgrass_gproj.so.6.3</source> |
|
136 |
<outputDirectory>install/files/native</outputDirectory> |
|
137 |
</file> |
|
138 |
<file> |
|
139 |
<source>${user.home}/.depman/lib/libgrass_I.so.6.3</source> |
|
140 |
<outputDirectory>install/files/native</outputDirectory> |
|
141 |
</file> |
|
142 |
<file> |
|
143 |
<source>${user.home}/.depman/lib/libgrass_linkm.so.6.3</source> |
|
144 |
<outputDirectory>install/files/native</outputDirectory> |
|
145 |
</file> |
|
146 |
<file> |
|
147 |
<source>${user.home}/.depman/lib/libgrass_rtree.so.6.3</source> |
|
148 |
<outputDirectory>install/files/native</outputDirectory> |
|
149 |
</file> |
|
150 |
<file> |
|
151 |
<source>${user.home}/.depman/lib/libgrass_vask.so.6.3</source> |
|
152 |
<outputDirectory>install/files/native</outputDirectory> |
|
153 |
</file> |
|
154 |
<file> |
|
155 |
<source>${user.home}/.depman/lib/libgrass_vect.so.6.3</source> |
|
156 |
<outputDirectory>install/files/native</outputDirectory> |
|
157 |
</file> |
|
158 |
|
|
159 |
<file> |
|
160 |
<source>${user.home}/.depman/lib/librx.so.0</source> |
|
161 |
<outputDirectory>install/files/native</outputDirectory> |
|
162 |
</file> |
|
163 |
<file> |
|
164 |
<source>${user.home}/.depman/lib/libtiff.so.3</source> |
|
165 |
<outputDirectory>install/files/native</outputDirectory> |
|
166 |
</file> |
|
167 |
</files> |
|
168 |
|
|
169 |
<fileSets> |
|
170 |
<fileSet> |
|
171 |
<directory>src/main/resources-plugin</directory> |
|
172 |
<outputDirectory>.</outputDirectory> |
|
173 |
</fileSet> |
|
174 |
<fileSet> |
|
175 |
<directory>${user.home}/.depman/data/gdal</directory> |
|
176 |
<outputDirectory>install/files/data/gdal</outputDirectory> |
|
177 |
</fileSet> |
|
178 |
</fileSets> |
|
179 |
|
|
180 |
|
|
181 |
<dependencySets> |
|
182 |
<dependencySet> |
|
183 |
<useProjectArtifact>false</useProjectArtifact> |
|
184 |
<useTransitiveDependencies>false</useTransitiveDependencies> |
|
185 |
<outputDirectory>lib</outputDirectory> |
|
186 |
<includes> |
|
187 |
<include>org.gvsig:org.gvsig.raster.gdal.app:jar</include> |
|
188 |
<include>org.gvsig:org.gvsig.raster.gdal.io:jar</include> |
|
189 |
<include>org.gvsig:org.gvsig.jgdal:jar</include> |
|
190 |
</includes> |
|
191 |
</dependencySet> |
|
192 |
</dependencySets> |
|
193 |
</assembly> |
|
0 | 194 |
org.gvsig.raster.gdal/tags/v2.2.2/org.gvsig.raster.gdal.app/src/main/assembly/gvsig-plugin-package-lin.xml | ||
---|---|---|
1 |
<assembly> |
|
2 |
<id>gvsig-plugin-package</id> |
|
3 |
<formats> |
|
4 |
<format>zip</format> |
|
5 |
</formats> |
|
6 |
<baseDirectory>${project.artifactId}</baseDirectory> |
|
7 |
<includeBaseDirectory>true</includeBaseDirectory> |
|
8 |
<files> |
|
9 |
<file> |
|
10 |
<source>target/${project.artifactId}-${project.version}.jar</source> |
|
11 |
<outputDirectory>lib</outputDirectory> |
|
12 |
</file> |
|
13 |
<file> |
|
14 |
<source>target/package.info</source> |
|
15 |
</file> |
|
16 |
<file> |
|
17 |
<source>${user.home}/.depman/lib/libssl.so.0.9.8</source> |
|
18 |
<outputDirectory>install/files/native</outputDirectory> |
|
19 |
</file> |
|
20 |
<file> |
|
21 |
<source>${user.home}/.depman/lib/libcrypto.so.0.9.8</source> |
|
22 |
<outputDirectory>install/files/native</outputDirectory> |
|
23 |
</file> |
|
24 |
<file> |
|
25 |
<source>${user.home}/.depman/lib/libz.so.1</source> |
|
26 |
<outputDirectory>install/files/native</outputDirectory> |
|
27 |
</file> |
|
28 |
<file> |
|
29 |
<source>${user.home}/.depman/lib/libz.so.1</source> |
|
30 |
<outputDirectory>install/files/native</outputDirectory> |
|
31 |
</file> |
|
32 |
<file> |
|
33 |
<source>${user.home}/.depman/lib/libxerces-c.so.28</source> |
|
34 |
<outputDirectory>install/files/native</outputDirectory> |
|
35 |
</file> |
|
36 |
<file> |
|
37 |
<source>${user.home}/.depman/lib/libtasn1.so.3</source> |
|
38 |
<outputDirectory>install/files/native</outputDirectory> |
|
39 |
</file> |
|
40 |
<file> |
|
41 |
<source>${user.home}/.depman/lib/libsqlite3.so.0</source> |
|
42 |
<outputDirectory>install/files/native</outputDirectory> |
|
43 |
</file> |
|
44 |
<file> |
|
45 |
<source>${user.home}/.depman/lib/libsasl2.so.2</source> |
|
46 |
<outputDirectory>install/files/native</outputDirectory> |
|
47 |
</file> |
|
48 |
<file> |
|
49 |
<source>${user.home}/.depman/lib/libproj.so.0</source> |
|
50 |
<outputDirectory>install/files/native</outputDirectory> |
|
51 |
</file> |
|
52 |
<file> |
|
53 |
<source>${user.home}/.depman/lib/libpq.so.5</source> |
|
54 |
<outputDirectory>install/files/native</outputDirectory> |
|
55 |
</file> |
|
56 |
<file> |
|
57 |
<source>${user.home}/.depman/lib/libpng12.so.0</source> |
|
58 |
<outputDirectory>install/files/native</outputDirectory> |
|
59 |
</file> |
|
60 |
<file> |
|
61 |
<source>${user.home}/.depman/lib/libogdi.so.3.2</source> |
|
62 |
<outputDirectory>install/files/native</outputDirectory> |
|
63 |
</file> |
|
64 |
<file> |
|
65 |
<source>${user.home}/.depman/lib/libodbcinst.so.1</source> |
|
66 |
<outputDirectory>install/files/native</outputDirectory> |
|
67 |
</file> |
|
68 |
<file> |
|
69 |
<source>${user.home}/.depman/lib/libodbc.so.1</source> |
|
70 |
<outputDirectory>install/files/native</outputDirectory> |
|
71 |
</file> |
|
72 |
<file> |
|
73 |
<source>${user.home}/.depman/lib/libnetcdf.so.4</source> |
|
74 |
<outputDirectory>install/files/native</outputDirectory> |
|
75 |
</file> |
|
76 |
<file> |
|
77 |
<source>${user.home}/.depman/lib/libmysqlclient.so.16</source> |
|
78 |
<outputDirectory>install/files/native</outputDirectory> |
|
79 |
</file> |
|
80 |
<file> |
|
81 |
<source>${user.home}/.depman/lib/libmfhdfalt.so.0</source> |
|
82 |
<outputDirectory>install/files/native</outputDirectory> |
|
83 |
</file> |
|
84 |
<file> |
|
85 |
<source>${user.home}/.depman/lib/libltdl.so.7</source> |
|
86 |
<outputDirectory>install/files/native</outputDirectory> |
|
87 |
</file> |
|
88 |
<file> |
|
89 |
<source>${user.home}/.depman/lib/liblber-2.4.so.2</source> |
|
90 |
<outputDirectory>install/files/native</outputDirectory> |
|
91 |
</file> |
|
92 |
<file> |
|
93 |
<source>${user.home}/.depman/lib/libjpeg.so.62</source> |
|
94 |
<outputDirectory>install/files/native</outputDirectory> |
|
95 |
</file> |
|
96 |
<!--<file> |
|
97 |
<source>${user.home}/.depman/lib/libjgdal2.0.1.so</source> |
|
98 |
<outputDirectory>install/files/native</outputDirectory> |
|
99 |
</file>--> |
|
100 |
<file> |
|
101 |
<source>${user.home}/.depman/lib/libjgdal2.0.4.so</source> |
|
102 |
<outputDirectory>install/files/native</outputDirectory> |
|
103 |
</file> |
|
104 |
<file> |
|
105 |
<source>${user.home}/.depman/lib/libjasper.so.1</source> |
|
106 |
<outputDirectory>install/files/native</outputDirectory> |
|
107 |
</file> |
|
108 |
<file> |
|
109 |
<source>${user.home}/.depman/lib/libidn.so.11</source> |
|
110 |
<outputDirectory>install/files/native</outputDirectory> |
|
111 |
</file> |
|
112 |
<file> |
|
113 |
<source>${user.home}/.depman/lib/libicuuc.so.42</source> |
|
114 |
<outputDirectory>install/files/native</outputDirectory> |
|
115 |
</file> |
|
116 |
<file> |
|
117 |
<source>${user.home}/.depman/lib/libicudata.so.42</source> |
|
118 |
<outputDirectory>install/files/native</outputDirectory> |
|
119 |
</file> |
|
120 |
<file> |
|
121 |
<source>${user.home}/.depman/lib/libhdf5.so.6</source> |
|
122 |
<outputDirectory>install/files/native</outputDirectory> |
|
123 |
</file> |
|
124 |
<file> |
|
125 |
<source>${user.home}/.depman/lib/libgssapi_krb5.so.2</source> |
|
126 |
<outputDirectory>install/files/native</outputDirectory> |
|
127 |
</file> |
|
128 |
<file> |
|
129 |
<source>${user.home}/.depman/lib/libgpg-error.so.0</source> |
|
130 |
<outputDirectory>install/files/native</outputDirectory> |
|
131 |
</file> |
|
132 |
<file> |
|
133 |
<source>${user.home}/.depman/lib/libgnutls.so.26</source> |
|
134 |
<outputDirectory>install/files/native</outputDirectory> |
|
135 |
</file> |
|
136 |
<file> |
|
137 |
<source>${user.home}/.depman/lib/libgif.so.4</source> |
|
138 |
<outputDirectory>install/files/native</outputDirectory> |
|
139 |
</file> |
|
140 |
<file> |
|
141 |
<source>${user.home}/.depman/lib/libgeos_c.so.1</source> |
|
142 |
<outputDirectory>install/files/native</outputDirectory> |
|
143 |
</file> |
|
144 |
<file> |
|
145 |
<source>${user.home}/.depman/lib/libgeos-3.1.0.so</source> |
|
146 |
<outputDirectory>install/files/native</outputDirectory> |
|
147 |
</file> |
|
148 |
<!--<file> |
|
149 |
<source>${user.home}/.depman/lib/libgdal1.6.0.so.1.13.3</source> |
|
150 |
<outputDirectory>install/files/native</outputDirectory> |
|
151 |
</file>--> |
|
152 |
<file> |
|
153 |
<!-- Acordarse de actualizar el install.xml cuando se cambie esto. --> |
|
154 |
<source>${user.home}/.depman/lib/libgdal.so.1.15.1</source> |
|
155 |
<outputDirectory>install/files/native</outputDirectory> |
|
156 |
</file> |
|
157 |
<file> |
|
158 |
<source>${user.home}/.depman/lib/libgcrypt.so.11</source> |
|
159 |
<outputDirectory>install/files/native</outputDirectory> |
|
160 |
</file> |
|
161 |
<file> |
|
162 |
<source>${user.home}/.depman/lib/libexpat.so.1</source> |
|
163 |
<outputDirectory>install/files/native</outputDirectory> |
|
164 |
</file> |
|
165 |
<file> |
|
166 |
<source>${user.home}/.depman/lib/libdfalt.so.0</source> |
|
167 |
<outputDirectory>install/files/native</outputDirectory> |
|
168 |
</file> |
|
169 |
<file> |
|
170 |
<source>${user.home}/.depman/lib/libcurl-gnutls.so.4</source> |
|
171 |
<outputDirectory>install/files/native</outputDirectory> |
|
172 |
</file> |
|
173 |
<file> |
|
174 |
<source>${user.home}/.depman/lib/libcom_err.so.2</source> |
|
175 |
<outputDirectory>install/files/native</outputDirectory> |
|
176 |
</file> |
|
177 |
</files> |
|
178 |
|
|
179 |
<fileSets> |
|
180 |
<fileSet> |
|
181 |
<directory>src/main/resources-plugin</directory> |
|
182 |
<outputDirectory>.</outputDirectory> |
|
183 |
</fileSet> |
|
184 |
<fileSet> |
|
185 |
<directory>${user.home}/.depman/data/gdal</directory> |
|
186 |
<outputDirectory>install/files/data/gdal</outputDirectory> |
|
187 |
</fileSet> |
|
188 |
</fileSets> |
|
189 |
|
|
190 |
|
|
191 |
<dependencySets> |
|
192 |
<dependencySet> |
|
193 |
<useProjectArtifact>false</useProjectArtifact> |
|
194 |
<useTransitiveDependencies>true</useTransitiveDependencies> |
|
195 |
<outputDirectory>lib</outputDirectory> |
|
196 |
<includes> |
|
197 |
<include>org.gvsig:org.gvsig.raster.gdal.app:jar</include> |
|
198 |
<include>org.gvsig:org.gvsig.raster.gdal.io:jar</include> |
|
199 |
<include>org.gvsig:org.gvsig.jgdal:jar</include> |
|
200 |
</includes> |
|
201 |
</dependencySet> |
|
202 |
</dependencySets> |
|
203 |
</assembly> |
|
0 | 204 |
org.gvsig.raster.gdal/tags/v2.2.2/org.gvsig.raster.gdal.app/src/main/assembly/gvsig-plugin-package-lin64.xml | ||
---|---|---|
1 |
<assembly> |
|
2 |
<id>gvsig-plugin-package</id> |
|
3 |
<formats> |
|
4 |
<format>zip</format> |
|
5 |
</formats> |
|
6 |
<baseDirectory>${project.artifactId}</baseDirectory> |
|
7 |
<includeBaseDirectory>true</includeBaseDirectory> |
|
8 |
<files> |
|
9 |
<file> |
|
10 |
<source>target/${project.artifactId}-${project.version}.jar</source> |
|
11 |
<outputDirectory>lib</outputDirectory> |
|
12 |
</file> |
|
13 |
<file> |
|
14 |
<source>target/package.info</source> |
|
15 |
</file> |
|
16 |
<file> |
|
17 |
<source>${user.home}/.depman/lib64/libjgdal2.0.4.so</source> |
|
18 |
<outputDirectory>install/files/native</outputDirectory> |
|
19 |
</file> |
|
20 |
<file> |
|
21 |
<!-- Acordarse de actualizar el install.xml cuando se cambie esto. --> |
|
22 |
<source>${user.home}/.depman/lib64/libgdal.so.1.17.1</source> |
|
23 |
<outputDirectory>install/files/native</outputDirectory> |
|
24 |
</file> |
|
25 |
</files> |
|
26 |
|
|
27 |
<fileSets> |
|
28 |
<fileSet> |
|
29 |
<directory>src/main/resources-plugin</directory> |
|
30 |
<outputDirectory>.</outputDirectory> |
|
31 |
</fileSet> |
|
32 |
<fileSet> |
|
33 |
<directory>${user.home}/.depman/data/gdal</directory> |
|
34 |
<outputDirectory>install/files/data/gdal</outputDirectory> |
|
35 |
</fileSet> |
|
36 |
</fileSets> |
|
37 |
|
|
38 |
|
|
39 |
<dependencySets> |
|
40 |
<dependencySet> |
|
41 |
<useProjectArtifact>false</useProjectArtifact> |
|
42 |
<useTransitiveDependencies>true</useTransitiveDependencies> |
|
43 |
<outputDirectory>lib</outputDirectory> |
|
44 |
<includes> |
|
45 |
<include>org.gvsig:org.gvsig.raster.gdal.app:jar</include> |
|
46 |
<include>org.gvsig:org.gvsig.raster.gdal.io:jar</include> |
|
47 |
<include>org.gvsig:org.gvsig.jgdal:jar</include> |
|
48 |
</includes> |
|
49 |
</dependencySet> |
|
50 |
</dependencySets> |
|
51 |
</assembly> |
|
0 | 52 |
org.gvsig.raster.gdal/tags/v2.2.2/org.gvsig.raster.gdal.app/src/main/assembly/gvsig-plugin-package-win.xml | ||
---|---|---|
1 |
<assembly> |
|
2 |
<id>gvsig-plugin-package</id> |
|
3 |
<formats> |
|
4 |
<format>zip</format> |
|
5 |
</formats> |
|
6 |
<baseDirectory>${project.artifactId}</baseDirectory> |
|
7 |
<includeBaseDirectory>true</includeBaseDirectory> |
|
8 |
<files> |
|
9 |
<file> |
|
10 |
<source>target/package.info</source> |
|
11 |
</file> |
|
12 |
<file> |
|
13 |
<source>target/${project.artifactId}-${project.version}.jar</source> |
|
14 |
<outputDirectory>lib</outputDirectory> |
|
15 |
</file> |
|
16 |
<file> |
|
17 |
<source>target/package.info</source> |
|
18 |
</file> |
|
19 |
<file> |
|
20 |
<source>${user.home}/.depman/bin/jgdal2.0.4.dll</source> |
|
21 |
<outputDirectory>install/files</outputDirectory> |
|
22 |
</file> |
|
23 |
<file> |
|
24 |
<source>${user.home}/.depman/bin/gdal18.dll</source> |
|
25 |
<outputDirectory>install/files</outputDirectory> |
|
26 |
</file> |
|
27 |
<file> |
|
28 |
<source>${user.home}/.depman/bin/gdal18.dll.manifest</source> |
|
29 |
<outputDirectory>install/files</outputDirectory> |
|
30 |
</file> |
|
31 |
<file> |
|
32 |
<source>${user.home}/.depman/bin/Microsoft.VC80.CRT.manifest</source> |
|
33 |
<outputDirectory>install/files</outputDirectory> |
|
34 |
</file> |
|
35 |
<file> |
|
36 |
<source>${user.home}/.depman/bin/msvcr80.dll</source> |
|
37 |
<outputDirectory>install/files</outputDirectory> |
|
38 |
</file> |
|
39 |
<file> |
|
40 |
<source>${user.home}/.depman/bin/msvcr71.dll</source> |
|
41 |
<outputDirectory>install/files</outputDirectory> |
|
42 |
</file> |
|
43 |
<file> |
|
44 |
<source>${user.home}/.depman/bin/msvcp80.dll</source> |
|
45 |
<outputDirectory>install/files</outputDirectory> |
|
46 |
</file> |
|
47 |
<file> |
|
48 |
<source>${user.home}/.depman/bin/msvcp71.dll</source> |
|
49 |
<outputDirectory>install/files</outputDirectory> |
|
50 |
</file> |
|
51 |
<file> |
|
52 |
<source>${user.home}/.depman/bin/msvcm80.dll</source> |
|
53 |
<outputDirectory>install/files</outputDirectory> |
|
54 |
</file> |
|
55 |
<file> |
|
56 |
<source>${user.home}/.depman/bin/libeay32.dll</source> |
|
57 |
<outputDirectory>install/files</outputDirectory> |
|
58 |
</file> |
|
59 |
<file> |
|
60 |
<source>${user.home}/.depman/bin/libiconv-2.dll</source> |
|
61 |
<outputDirectory>install/files</outputDirectory> |
|
62 |
</file> |
|
63 |
<file> |
|
64 |
<source>${user.home}/.depman/bin/libintl-8.dll</source> |
|
65 |
<outputDirectory>install/files</outputDirectory> |
|
66 |
</file> |
|
67 |
<file> |
|
68 |
<source>${user.home}/.depman/bin/libpq.dll</source> |
|
69 |
<outputDirectory>install/files</outputDirectory> |
|
70 |
</file> |
|
71 |
<file> |
|
72 |
<source>${user.home}/.depman/bin/ssleay32.dll</source> |
|
73 |
<outputDirectory>install/files</outputDirectory> |
|
74 |
</file> |
|
75 |
<file> |
|
76 |
<source>${user.home}/.depman/bin/krb5_32.dll</source> |
|
77 |
<outputDirectory>install/files</outputDirectory> |
|
78 |
</file> |
|
79 |
<file> |
|
80 |
<source>${user.home}/.depman/bin/gssapi32.dll</source> |
|
81 |
<outputDirectory>install/files</outputDirectory> |
|
82 |
</file> |
|
83 |
<file> |
|
84 |
<source>${user.home}/.depman/bin/comerr32.dll</source> |
|
85 |
<outputDirectory>install/files</outputDirectory> |
|
86 |
</file> |
|
87 |
|
|
88 |
<!-- |
|
89 |
sin migrar la vectorizaciรณn de momento |
|
90 |
<file> |
|
91 |
<source>${user.home}/.depman/bin/jpotrace001.dll</source> |
|
92 |
<outputDirectory>install/files</outputDirectory> |
|
93 |
</file> |
|
94 |
<file> |
|
95 |
<source>${user.home}/.depman/bin/libpotrace.dll</source> |
|
96 |
<outputDirectory>install/files</outputDirectory> |
|
97 |
</file> |
|
98 |
|
|
99 |
<file> |
|
100 |
<source>${user.home}/.depman/bin/jpeg62.dll</source> |
|
101 |
<outputDirectory>install/files</outputDirectory> |
|
102 |
</file> |
|
103 |
<file> |
|
104 |
<source>${user.home}/.depman/bin/hm422m.dll</source> |
|
105 |
<outputDirectory>install/files</outputDirectory> |
|
106 |
</file> |
|
107 |
<file> |
|
108 |
<source>${user.home}/.depman/bin/hm422m.dll</source> |
|
109 |
<outputDirectory>install/files</outputDirectory> |
|
110 |
</file> |
|
111 |
<file> |
|
112 |
<source>${user.home}/.depman/bin/hdf5dll.dll</source> |
|
113 |
<outputDirectory>install/files</outputDirectory> |
|
114 |
</file> |
|
115 |
<file> |
|
116 |
<source>${user.home}/.depman/bin/hd422m.dll</source> |
|
117 |
<outputDirectory>install/files</outputDirectory> |
|
118 |
</file> |
|
119 |
<file> |
|
120 |
<source>${user.home}/.depman/bin/glut32.dll</source> |
|
121 |
<outputDirectory>install/files</outputDirectory> |
|
122 |
</file>--> |
|
123 |
</files> |
|
124 |
|
|
125 |
<fileSets> |
|
126 |
<fileSet> |
|
127 |
<directory>src/main/resources-plugin</directory> |
|
128 |
<outputDirectory>.</outputDirectory> |
|
129 |
</fileSet> |
|
130 |
<fileSet> |
|
131 |
<directory>${user.home}/.depman/data/gdal</directory> |
|
132 |
<outputDirectory>install/files/data/gdal</outputDirectory> |
|
133 |
</fileSet> |
|
134 |
</fileSets> |
|
135 |
|
|
136 |
|
|
137 |
<dependencySets> |
|
138 |
<dependencySet> |
|
139 |
<useProjectArtifact>false</useProjectArtifact> |
|
140 |
<useTransitiveDependencies>true</useTransitiveDependencies> |
|
141 |
<outputDirectory>lib</outputDirectory> |
|
142 |
<includes> |
|
143 |
<include>org.gvsig:org.gvsig.raster.gdal.app:jar</include> |
|
144 |
<include>org.gvsig:org.gvsig.raster.gdal.io:jar</include> |
|
145 |
<include>org.gvsig:org.gvsig.jgdal:jar</include> |
|
146 |
</includes> |
|
147 |
</dependencySet> |
|
148 |
</dependencySets> |
|
149 |
</assembly> |
|
0 | 150 |
org.gvsig.raster.gdal/tags/v2.2.2/org.gvsig.raster.gdal.app/src/main/java/org/gvsig/raster/gdal/app/GdalExtension.java | ||
---|---|---|
1 |
/* gvSIG. Geographic Information System of the Valencian Government |
|
2 |
* |
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department |
|
4 |
* of the Valencian Government (CIT) |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU General Public License |
|
8 |
* as published by the Free Software Foundation; either version 2 |
|
9 |
* of the License, or (at your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
19 |
* MA 02110-1301, USA. |
|
20 |
* |
|
21 |
*/ |
|
22 |
package org.gvsig.raster.gdal.app; |
|
23 |
|
|
24 |
import org.gvsig.andami.plugins.Extension; |
|
25 |
|
|
26 |
/** |
|
27 |
* Extension to add Gdal library support |
|
28 |
* |
|
29 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
|
30 |
*/ |
|
31 |
public class GdalExtension extends Extension { |
|
32 |
|
|
33 |
public void execute(String actionCommand) { |
|
34 |
} |
|
35 |
|
|
36 |
public void initialize() { |
|
37 |
} |
|
38 |
|
|
39 |
public boolean isEnabled() { |
|
40 |
return false; |
|
41 |
} |
|
42 |
|
|
43 |
public boolean isVisible() { |
|
44 |
return false; |
|
45 |
} |
|
46 |
|
|
47 |
} |
|
0 | 48 |
org.gvsig.raster.gdal/tags/v2.2.2/org.gvsig.raster.gdal.app/src/main/resources-plugin/config.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<plugin-config> |
|
3 |
<depends plugin-name="org.gvsig.raster.mainplugin" /> |
|
4 |
<depends plugin-name="org.gvsig.raster.tilecache.app" optional="true" /> |
|
5 |
<libraries library-dir="lib"/> |
|
6 |
<resourceBundle name="text"/> |
|
7 |
<extensions> |
|
8 |
<extension class-name="org.gvsig.raster.gdal.app.GdalExtension" |
|
9 |
description="" |
|
10 |
active="true" |
|
11 |
priority="1"> |
|
12 |
</extension> |
|
13 |
</extensions> |
|
14 |
</plugin-config> |
|
0 | 15 |
org.gvsig.raster.gdal/tags/v2.2.2/org.gvsig.raster.gdal.app/src/main/resources-plugin/install/install.xml | ||
---|---|---|
1 |
<project name="org.gvsig.plugin1" default="main" basedir="."> |
|
2 |
<target name="main" depends="copy_files, link1, link2"/> |
|
3 |
<target name="copy_files"> |
|
4 |
<copy todir="${gvsig_dir}"> |
|
5 |
<fileset dir="./files" includes="**"/> |
|
6 |
</copy> |
|
7 |
</target> |
|
8 |
<target name="link1" depends="gdal-properties" if="gdal.link1"> |
|
9 |
<exec executable="ln" > |
|
10 |
<arg value="-s"/> |
|
11 |
<arg value="${gdal.so}"/> |
|
12 |
<arg value="${gdal.link1}"/> |
|
13 |
</exec> |
|
14 |
</target> |
|
15 |
<target name="link2" depends="gdal-properties" if="gdal.link2"> |
|
16 |
<exec executable="ln" > |
|
17 |
<arg value="-s"/> |
|
18 |
<arg value="${gdal.so}"/> |
|
19 |
<arg value="${gdal.link2}"/> |
|
20 |
</exec> |
|
21 |
</target> |
|
22 |
<target name="gdal-properties" depends="checkgdal, gdal-properties.1.15.1, gdal-properties.1.13.0, gdal-properties.1.17.0, gdal-properties.1.17.1"/> |
|
23 |
<target name="gdal-properties.1.15.1" if="gdal.1.15.1"> |
|
24 |
<property name="gdal.so" value="${gvsig_dir}/native/libgdal.so.1.15.1"/> |
|
25 |
<property name="gdal.link1" value="${gvsig_dir}/native/libgdal.so.1"/> |
|
26 |
<property name="gdal.link2" value="${gvsig_dir}/native/libgdal.so"/> |
|
27 |
</target> |
|
28 |
<target name="gdal-properties.1.13.0" if="gdal.1.13.0"> |
|
29 |
<property name="gdal.so" value="${gvsig_dir}/native/libgdal.so.1.13.0"/> |
|
30 |
<property name="gdal.link1" value="${gvsig_dir}/native/libgdal.so.1"/> |
|
31 |
<property name="gdal.link2" value="${gvsig_dir}/native/libgdal.so"/> |
|
32 |
</target> |
|
33 |
<target name="gdal-properties.1.17.0" if="gdal.1.17.0"> |
|
34 |
<property name="gdal.so" value="${gvsig_dir}/native/libgdal.so.1.17.0"/> |
|
35 |
<property name="gdal.link1" value="${gvsig_dir}/native/libgdal.so.1"/> |
|
36 |
<property name="gdal.link2" value="${gvsig_dir}/native/libgdal.so"/> |
|
37 |
</target> |
|
38 |
<target name="gdal-properties.1.17.1" if="gdal.1.17.1"> |
|
39 |
<property name="gdal.so" value="./libgdal.so.1.17.1"/> |
|
40 |
<property name="gdal.link1" value="${gvsig_dir}/native/libgdal.so.1"/> |
|
41 |
<property name="gdal.link2" value="${gvsig_dir}/native/libgdal.so"/> |
|
42 |
</target> |
|
43 |
<target name="checkgdal"> |
|
44 |
<available file="${gvsig_dir}/native/libgdal.so.1.15.1" property="gdal.1.15.1"/> |
|
45 |
<available file="${gvsig_dir}/native/libgdal.so.1.13.0" property="gdal.1.13.0"/> |
|
46 |
<available file="${gvsig_dir}/native/libgdal.so.1.17.0" property="gdal.1.17.0"/> |
|
47 |
<available file="${gvsig_dir}/native/libgdal.so.1.17.1" property="gdal.1.17.1"/> |
|
48 |
</target> |
|
49 |
|
|
50 |
<!-- To add a new gdal so version: |
|
51 |
* add a new available in "checkgdal" target |
|
52 |
* create a new "gdal-properties.x.xx.x" target with right property values |
|
53 |
* add the new "gda-properties.x.xx.x" into "gdal-properties" target depends list |
|
54 |
--> |
|
55 |
</project> |
|
0 | 56 |
org.gvsig.raster.gdal/tags/v2.2.2/org.gvsig.raster.gdal.app/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
|
|
3 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
|
4 |
<modelVersion>4.0.0</modelVersion> |
|
5 |
<artifactId>org.gvsig.raster.gdal.app</artifactId> |
|
6 |
<packaging>jar</packaging> |
|
7 |
<name>Formats: Gdal file formats support</name> |
|
8 |
<description>Gdal data provider for gvSIG: jpeg, tiff, png, gif.</description> |
|
9 |
<parent> |
|
10 |
<groupId>org.gvsig</groupId> |
|
11 |
<artifactId>org.gvsig.raster.gdal</artifactId> |
|
12 |
<version>2.2.2</version> |
|
13 |
</parent> |
|
14 |
<scm> |
|
15 |
<connection>scm:svn:https://devel.gvsig.org/svn/gvsig-raster/org.gvsig.raster.gdal/tags/v2.2.2/org.gvsig.raster.gdal.app</connection> |
|
16 |
<developerConnection>scm:svn:https://devel.gvsig.org/svn/gvsig-raster/org.gvsig.raster.gdal/tags/v2.2.2/org.gvsig.raster.gdal.app</developerConnection> |
|
17 |
<url>https://devel.gvsig.org/redmine/projects/gvsig-raster/repository/show/org.gvsig.raster.gdal/tags/v2.2.2/org.gvsig.raster.gdal.app</url> |
|
18 |
</scm> |
|
19 |
<dependencies> |
|
20 |
<dependency> |
|
21 |
<groupId>org.gvsig</groupId> |
|
22 |
<artifactId>org.gvsig.andami</artifactId> |
|
23 |
<scope>compile</scope> |
|
24 |
</dependency> |
|
25 |
<dependency> |
|
26 |
<groupId>org.gvsig</groupId> |
|
27 |
<artifactId>org.gvsig.raster.gdal.io</artifactId> |
|
28 |
<scope>runtime</scope> |
|
29 |
</dependency> |
|
30 |
<dependency> |
|
31 |
<groupId>org.gvsig</groupId> |
|
32 |
<artifactId>org.gvsig.jgdal</artifactId> |
|
33 |
<scope>runtime</scope> |
|
34 |
</dependency> |
|
35 |
<dependency> |
|
36 |
<groupId>org.gvsig</groupId> |
|
37 |
<artifactId>org.gvsig.jgdal</artifactId> |
|
38 |
<classifier>${native-classifier}</classifier> |
|
39 |
<type>tar.gz</type> |
|
40 |
<scope>runtime</scope> |
|
41 |
</dependency> |
|
42 |
<dependency> |
|
43 |
<groupId>org.gdal</groupId> |
|
44 |
<artifactId>gdal</artifactId> |
|
45 |
<version>${gdal.version}</version> |
|
46 |
<classifier>${native-classifier}</classifier> |
|
47 |
<scope>runtime</scope> |
|
48 |
<type>tar.gz</type> |
|
49 |
</dependency> |
|
50 |
</dependencies> |
|
51 |
|
|
52 |
<profiles> |
|
53 |
|
|
54 |
<!-- *************** --> |
|
55 |
<!-- LINUX PROFILE --> |
|
56 |
<!-- *************** --> |
|
57 |
|
|
58 |
<profile> |
|
59 |
<id>linux-profile</id> |
|
60 |
<activation> |
|
61 |
<property> |
|
62 |
<name>native-platform</name> |
|
63 |
<value>linux</value> |
|
64 |
</property> |
|
65 |
</activation> |
|
66 |
<properties> |
|
67 |
<gvsig.package.info.operatingSystem>lin</gvsig.package.info.operatingSystem> |
|
68 |
<gvsig.package.info.architecture>x86</gvsig.package.info.architecture> |
|
69 |
</properties> |
|
70 |
<build> |
|
71 |
<plugins> |
|
72 |
<plugin> |
|
73 |
<artifactId>maven-assembly-plugin</artifactId> |
|
74 |
<configuration> |
|
75 |
<ignoreDirFormatExtensions>true</ignoreDirFormatExtensions> |
|
76 |
<appendAssemblyId>false</appendAssemblyId> |
|
77 |
</configuration> |
|
78 |
<executions> |
|
79 |
<execution> |
|
80 |
<id>gvsig-plugin-package</id> |
|
81 |
<phase>package</phase> |
|
82 |
<goals> |
|
83 |
<goal>single</goal> |
|
84 |
</goals> |
|
85 |
<configuration> |
|
86 |
<finalName>gvSIG-desktop-${gvsig.package.info.gvSIGVersion}-${project.artifactId}-${gvsig.package.info.version}-${buildNumber}-${gvsig.package.info.state}-${gvsig.package.info.operatingSystem}-${gvsig.package.info.architecture}-${gvsig.package.info.javaVM}.gvspkg</finalName> |
|
87 |
<descriptors> |
|
88 |
<descriptor>src/main/assembly/gvsig-plugin-package-lin.xml</descriptor> |
|
89 |
</descriptors> |
|
90 |
</configuration> |
|
91 |
</execution> |
|
92 |
</executions> |
|
93 |
</plugin> |
|
94 |
|
|
95 |
<plugin> |
|
96 |
<groupId>org.codehaus.mojo</groupId> |
|
97 |
<artifactId>exec-maven-plugin</artifactId> |
|
98 |
<executions> |
|
99 |
<execution> |
|
100 |
<id>unpack-jgdal</id> |
|
101 |
<phase>generate-sources</phase> |
|
102 |
<goals> |
|
103 |
<goal>exec</goal> |
|
104 |
</goals> |
|
105 |
<configuration> |
|
106 |
<executable>sh</executable> |
|
107 |
<arguments> |
|
108 |
<argument>${basedir}/unpack-dependencies.sh</argument> |
|
109 |
<argument>${user.home}/.m2/repository/org/gvsig/org.gvsig.jgdal/${jgdal.version}</argument> |
|
110 |
<argument>${depman.dir}</argument> |
|
111 |
</arguments> |
|
112 |
</configuration> |
|
113 |
</execution> |
|
114 |
<execution> |
|
115 |
<id>unpack-gdal</id> |
|
116 |
<phase>generate-sources</phase> |
|
117 |
<goals> |
|
118 |
<goal>exec</goal> |
|
119 |
</goals> |
|
120 |
<configuration> |
|
121 |
<executable>sh</executable> |
|
122 |
<arguments> |
|
123 |
<argument>${basedir}/unpack-dependencies.sh</argument> |
|
124 |
<argument>${user.home}/.m2/repository/org/gdal/gdal/${gdal.version}</argument> |
|
125 |
<argument>${depman.dir}</argument> |
|
126 |
</arguments> |
|
127 |
</configuration> |
|
128 |
</execution> |
|
129 |
</executions> |
|
130 |
</plugin> |
|
131 |
|
|
132 |
</plugins> |
|
133 |
</build> |
|
134 |
</profile> |
|
135 |
|
|
136 |
<!-- ***************** --> |
|
137 |
<!-- LINUX 64 PROFILE --> |
|
138 |
<!-- ***************** --> |
|
139 |
|
|
140 |
<profile> |
|
141 |
<id>linux64-profile</id> |
|
142 |
<activation> |
|
143 |
<property> |
|
144 |
<name>native-platform</name> |
|
145 |
<value>linux64</value> |
|
146 |
</property> |
|
147 |
</activation> |
|
148 |
<properties> |
|
149 |
<gvsig.package.info.operatingSystem>lin</gvsig.package.info.operatingSystem> |
|
150 |
<gvsig.package.info.architecture>x86_64</gvsig.package.info.architecture> |
|
151 |
</properties> |
|
152 |
<build> |
|
153 |
<plugins> |
|
154 |
<plugin> |
|
155 |
<artifactId>maven-assembly-plugin</artifactId> |
|
156 |
<configuration> |
|
157 |
<ignoreDirFormatExtensions>true</ignoreDirFormatExtensions> |
|
158 |
<appendAssemblyId>false</appendAssemblyId> |
|
159 |
</configuration> |
|
160 |
<executions> |
|
161 |
<execution> |
|
162 |
<id>gvsig-plugin-package</id> |
|
163 |
<phase>package</phase> |
|
164 |
<goals> |
|
165 |
<goal>single</goal> |
|
166 |
</goals> |
|
167 |
<configuration> |
|
168 |
<finalName>gvSIG-desktop-${gvsig.package.info.gvSIGVersion}-${project.artifactId}-${gvsig.package.info.version}-${buildNumber}-${gvsig.package.info.state}-${gvsig.package.info.operatingSystem}-${gvsig.package.info.architecture}-${gvsig.package.info.javaVM}.gvspkg</finalName> |
|
169 |
<descriptors> |
|
170 |
<descriptor>src/main/assembly/gvsig-plugin-package-lin64.xml</descriptor> |
|
171 |
</descriptors> |
|
172 |
</configuration> |
|
173 |
</execution> |
|
174 |
</executions> |
|
175 |
</plugin> |
|
176 |
|
|
177 |
<plugin> |
|
178 |
<groupId>org.codehaus.mojo</groupId> |
|
179 |
<artifactId>exec-maven-plugin</artifactId> |
|
180 |
<executions> |
|
181 |
<execution> |
|
182 |
<id>unpack-jgdal</id> |
|
183 |
<phase>generate-sources</phase> |
|
184 |
<goals> |
|
185 |
<goal>exec</goal> |
|
186 |
</goals> |
|
187 |
<configuration> |
|
188 |
<executable>sh</executable> |
|
189 |
<arguments> |
|
190 |
<argument>${basedir}/unpack-dependencies.sh</argument> |
|
191 |
<argument>${user.home}/.m2/repository/org/gvsig/org.gvsig.jgdal/${jgdal.version}</argument> |
|
192 |
<argument>${depman.dir}</argument> |
|
193 |
</arguments> |
|
194 |
</configuration> |
|
195 |
</execution> |
|
196 |
<execution> |
|
197 |
<id>unpack-gdal</id> |
|
198 |
<phase>generate-sources</phase> |
|
199 |
<goals> |
|
200 |
<goal>exec</goal> |
|
201 |
</goals> |
|
202 |
<configuration> |
|
203 |
<executable>sh</executable> |
|
204 |
<arguments> |
|
205 |
<argument>${basedir}/unpack-dependencies.sh</argument> |
|
206 |
<argument>${user.home}/.m2/repository/org/gdal/gdal/${gdal.version}</argument> |
|
207 |
<argument>${depman.dir}</argument> |
|
208 |
</arguments> |
|
209 |
</configuration> |
|
210 |
</execution> |
|
211 |
</executions> |
|
212 |
</plugin> |
|
213 |
|
|
214 |
</plugins> |
|
215 |
</build> |
|
216 |
</profile> |
|
217 |
|
|
218 |
<!-- *************** --> |
|
219 |
<!-- FEDORA PROFILE --> |
|
220 |
<!-- *************** --> |
|
221 |
|
|
222 |
<profile> |
|
223 |
<id>fedora11-profile</id> |
|
224 |
<activation> |
|
225 |
<property> |
|
226 |
<name>native-platform</name> |
|
227 |
<value>fedora11</value> |
|
228 |
</property> |
|
229 |
</activation> |
|
230 |
<properties> |
|
231 |
<gvsig.package.info.categories>Raster</gvsig.package.info.categories> |
|
232 |
<gvsig.package.info.operatingSystem>fedora11</gvsig.package.info.operatingSystem> |
|
233 |
<gvsig.package.info.architecture>x86</gvsig.package.info.architecture> |
|
234 |
</properties> |
|
235 |
<build> |
|
236 |
<plugins> |
|
237 |
<plugin> |
|
238 |
<artifactId>maven-assembly-plugin</artifactId> |
|
239 |
<configuration> |
|
240 |
<ignoreDirFormatExtensions>true</ignoreDirFormatExtensions> |
|
241 |
<appendAssemblyId>false</appendAssemblyId> |
|
242 |
</configuration> |
|
243 |
<executions> |
|
244 |
<execution> |
|
245 |
<id>gvsig-plugin-package</id> |
|
246 |
<phase>package</phase> |
|
247 |
<goals> |
|
248 |
<goal>single</goal> |
|
249 |
</goals> |
|
250 |
<configuration> |
|
251 |
<finalName>gvSIG-desktop-${gvsig.package.info.gvSIGVersion}-${project.artifactId}-${gvsig.package.info.version}-${buildNumber}-${gvsig.package.info.state}-${gvsig.package.info.operatingSystem}-${gvsig.package.info.architecture}-${gvsig.package.info.javaVM}.gvspkg</finalName> |
|
252 |
<descriptors> |
|
253 |
<descriptor>src/main/assembly/gvsig-plugin-package-fedora11.xml</descriptor> |
|
254 |
</descriptors> |
|
255 |
</configuration> |
|
256 |
</execution> |
|
257 |
</executions> |
|
258 |
</plugin> |
|
259 |
</plugins> |
|
260 |
</build> |
|
261 |
</profile> |
|
262 |
|
|
263 |
<!-- *************** --> |
|
264 |
<!-- WINDOWS PROFILE --> |
|
265 |
<!-- *************** --> |
|
266 |
|
|
267 |
<profile> |
|
268 |
<id>windows-profile</id> |
|
269 |
<activation> |
|
270 |
<property> |
|
271 |
<name>native-platform</name> |
|
272 |
<value>win</value> |
|
273 |
</property> |
|
274 |
</activation> |
|
275 |
<properties> |
|
276 |
<gvsig.package.info.operatingSystem>win</gvsig.package.info.operatingSystem> |
|
277 |
<gvsig.package.info.architecture>x86</gvsig.package.info.architecture> |
|
278 |
</properties> |
|
279 |
<build> |
|
280 |
<plugins> |
|
281 |
<plugin> |
|
282 |
<artifactId>maven-assembly-plugin</artifactId> |
|
283 |
<configuration> |
|
284 |
<ignoreDirFormatExtensions>true</ignoreDirFormatExtensions> |
|
285 |
<appendAssemblyId>false</appendAssemblyId> |
|
286 |
</configuration> |
|
287 |
<executions> |
|
288 |
<execution> |
|
289 |
<id>gvsig-plugin-package</id> |
|
290 |
<phase>package</phase> |
|
291 |
<goals> |
|
292 |
<goal>single</goal> |
|
293 |
</goals> |
|
294 |
<configuration> |
|
295 |
<finalName>gvSIG-desktop-${gvsig.package.info.gvSIGVersion}-${project.artifactId}-${gvsig.package.info.version}-${buildNumber}-${gvsig.package.info.state}-${gvsig.package.info.operatingSystem}-${gvsig.package.info.architecture}-${gvsig.package.info.javaVM}.gvspkg</finalName> |
|
296 |
<descriptors> |
|
297 |
<descriptor>src/main/assembly/gvsig-plugin-package-win.xml</descriptor> |
|
298 |
</descriptors> |
|
299 |
</configuration> |
|
300 |
</execution> |
|
301 |
</executions> |
|
302 |
</plugin> |
|
303 |
|
|
304 |
<plugin> |
|
305 |
<groupId>org.codehaus.mojo</groupId> |
|
306 |
<artifactId>exec-maven-plugin</artifactId> |
|
307 |
<executions> |
|
308 |
<execution> |
|
309 |
<id>unpack-jgdal</id> |
|
310 |
<phase>generate-sources</phase> |
|
311 |
<goals> |
|
312 |
<goal>exec</goal> |
|
313 |
</goals> |
|
314 |
<configuration> |
|
315 |
<executable>sh</executable> |
|
316 |
<arguments> |
|
317 |
<argument>${basedir}/unpack-dependencies.sh</argument> |
|
318 |
<argument>${user.home}/.m2/repository/org/gvsig/org.gvsig.jgdal/${jgdal.version}</argument> |
|
319 |
<argument>${depman.dir}</argument> |
|
320 |
</arguments> |
|
321 |
</configuration> |
|
322 |
</execution> |
|
323 |
|
|
324 |
<execution> |
|
325 |
<id>unpack-gdal</id> |
|
326 |
<phase>generate-sources</phase> |
|
327 |
<goals> |
|
328 |
<goal>exec</goal> |
|
329 |
</goals> |
|
330 |
<configuration> |
|
331 |
<executable>sh</executable> |
|
332 |
<arguments> |
|
333 |
<argument>${basedir}/unpack-dependencies.sh</argument> |
|
334 |
<argument>${user.home}/.m2/repository/org/gdal/gdal/${gdal.version}</argument> |
|
335 |
<argument>${depman.dir}</argument> |
|
336 |
</arguments> |
|
337 |
</configuration> |
|
338 |
</execution> |
|
339 |
|
|
340 |
</executions> |
|
341 |
</plugin> |
|
342 |
</plugins> |
|
343 |
</build> |
|
344 |
</profile> |
|
345 |
</profiles> |
|
346 |
|
|
347 |
<properties> |
|
348 |
<gvsig.package.info.categories>Raster, Formats</gvsig.package.info.categories> |
|
349 |
<gvsig.package.info.state>final</gvsig.package.info.state> |
|
350 |
<gvsig.package.info.poolURL>http://devel.gvsig.org/download/projects/Raster/pool</gvsig.package.info.poolURL> |
|
351 |
<gvsig.package.info.dependencies>required: org.gvsig.raster.tilecache.app -ge 2</gvsig.package.info.dependencies> |
|
352 |
<gvsig.package.info.official>true</gvsig.package.info.official> |
|
353 |
</properties> |
|
354 |
</project> |
|
0 | 355 |
org.gvsig.raster.gdal/tags/v2.2.2/org.gvsig.raster.gdal.jni/CMakeLists.txt | ||
---|---|---|
1 |
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE) |
|
2 |
|
|
3 |
IF(WIN32) |
|
4 |
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.6 FATAL_ERROR) |
|
5 |
ELSE(WIN32) |
|
6 |
IF(APPLE) |
|
7 |
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0 FATAL_ERROR) |
|
8 |
ELSE(APPLE) |
|
9 |
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.4 FATAL_ERROR) |
|
10 |
ENDIF(APPLE) |
|
11 |
ENDIF(WIN32) |
|
12 |
|
|
13 |
if(COMMAND cmake_policy) |
|
14 |
# Works around warnings libraries linked against that don't |
|
15 |
# have absolute paths (e.g. -lpthreads) |
|
16 |
cmake_policy(SET CMP0003 NEW) |
|
17 |
|
|
18 |
# Works around warnings about escaped quotes in ADD_DEFINITIONS |
|
19 |
# statements. |
|
20 |
cmake_policy(SET CMP0005 NEW) |
|
21 |
|
|
22 |
# cmake-2.6.1 introduces policy cmp0008 decide how to treat full path libraries that do not appear to be valid library file names |
|
23 |
# quote from cvslog "Such libraries worked by accident in the VS IDE and Xcode generators in CMake 2.4 and below." |
|
24 |
if(${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4 AND ${CMAKE_PATCH_VERSION} GREATER 0) |
|
25 |
cmake_policy(SET CMP0008 OLD) |
|
26 |
endif() |
|
27 |
endif() |
|
28 |
|
|
29 |
PROJECT(org.gvsig.jgdal) |
|
30 |
|
|
31 |
SET(JGDAL_VERSION_MAJOR "2") |
|
32 |
SET(JGDAL_VERSION_MINOR "0") |
|
33 |
SET(JGDAL_VERSION_PATCH "4") |
|
34 |
|
|
35 |
SET(VERSION "${JGDAL_VERSION_MAJOR}.${JGDAL_VERSION_MINOR}.${JGDAL_VERSION_PATCH}") |
|
36 |
|
|
37 |
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeModules;${CMAKE_MODULE_PATH}") |
|
38 |
|
|
39 |
FIND_PACKAGE(DepMan REQUIRED) |
|
40 |
INCLUDE(GeneralMacros) |
|
41 |
|
|
42 |
CONFIGURE_DEFAULTS() |
|
43 |
|
|
44 |
IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) |
|
45 |
SET(CMAKE_INSTALL_PREFIX |
|
46 |
${DEPMAN_PATH} CACHE PATH "depman path install prefix" FORCE |
|
47 |
) |
|
48 |
ENDIF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) |
|
49 |
|
|
50 |
FIND_PACKAGE(JNI REQUIRED) |
|
51 |
FIND_PACKAGE(GDAL REQUIRED) |
|
52 |
|
|
53 |
ADD_SUBDIRECTORY(src/main/native) |
|
54 |
|
|
55 |
CONFIGURE_END() |
|
56 |
|
|
57 |
|
|
0 | 58 |
org.gvsig.raster.gdal/tags/v2.2.2/org.gvsig.raster.gdal.jni/.project | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<projectDescription> |
|
3 |
<name>org.gvsig.jgdal</name> |
|
4 |
<comment></comment> |
|
5 |
<projects> |
|
6 |
</projects> |
|
7 |
<buildSpec> |
|
8 |
</buildSpec> |
|
9 |
<natures> |
|
10 |
</natures> |
|
11 |
</projectDescription> |
|
0 | 12 |
org.gvsig.raster.gdal/tags/v2.2.2/org.gvsig.raster.gdal.jni/src/test/java/TestReadBand.java | ||
---|---|---|
1 |
|
|
2 |
import java.io.IOException; |
|
3 |
import org.gvsig.jgdal.*; |
|
4 |
|
|
5 |
/** |
|
6 |
* Test de acceso a datos de las bandas de una imagen. |
|
7 |
* javac -classpath ./:/.../org.gvsig.jgdal/target/org.gvsig.jgdal-2.0.3-SNAPSHOT.jar TestReadBand.java |
|
8 |
* |
|
9 |
* java -classpath ./:/.../org.gvsig.jgdal/target/org.gvsig.jgdal-2.0.3-SNAPSHOT.jar -Djava.library.path=/... TestReadBand |
|
10 |
* @author Nacho Brodin <nachobrodin@gmail.com> |
|
11 |
* |
|
12 |
*/ |
|
13 |
public class TestReadBand { |
|
14 |
private Gdal gdal = null; |
|
15 |
private GdalRasterBand band = null; |
|
16 |
private String baseDir = "../../../test-images/"; |
|
17 |
private String file1 = baseDir + "testGdal.tif"; |
|
18 |
|
|
19 |
|
|
20 |
public static void main(String[] args) { |
|
21 |
TestReadBand t = new TestReadBand(); |
|
22 |
try { |
|
23 |
t.testStack(); |
|
24 |
} catch(Exception e) { |
|
25 |
} |
|
26 |
} |
|
27 |
public void testStack() throws GdalException, IOException { |
|
28 |
|
|
29 |
gdal = new Gdal(); |
|
30 |
gdal.open(file1, Gdal.GA_Update); |
|
31 |
//Llamada sin dominio |
|
32 |
String[] metadata = gdal.getMetadata(); |
|
33 |
|
|
34 |
for (int i = 0 ; i < metadata.length; i++) { |
|
35 |
System.out.println("Metadato: " + metadata[i]); |
|
36 |
} |
|
37 |
|
|
38 |
//Llamada con dominio "Image Structure Metadata" |
|
39 |
metadata = gdal.getMetadata("Image Structure Metadata"); |
|
40 |
for (int i = 0 ; i < metadata.length; i++) { |
|
41 |
System.out.println("Metadato: " + metadata[i]); |
|
42 |
} |
|
43 |
|
|
44 |
//Comprobaci?n del tama?o de la imagen |
|
45 |
System.out.println(gdal.getRasterXSize()); |
|
46 |
System.out.println(gdal.getRasterYSize()); |
|
47 |
|
|
48 |
//Comprobaci?n del n?mero de bandas |
|
49 |
System.out.println("Bands: " + gdal.getRasterCount()); |
|
50 |
|
|
51 |
//Comprobaci?n del driver de la imagen |
|
52 |
System.out.println("Driver: " + gdal.getDriverShortName()); |
|
53 |
|
|
54 |
//Comprobaci?n del acceso a las bandas |
|
55 |
for (int i = 0 ; i < gdal.getRasterCount() ; i++) { |
|
56 |
GdalRasterBand b = gdal.getRasterBand(i+1); |
|
57 |
System.out.println("Band:" + i + " X:" + b.getRasterBandXSize()); |
|
58 |
System.out.println("Band:" + i + " Y:" + b.getRasterBandYSize()); |
|
59 |
System.out.println("Overviews Band:" + i + " " + b.getOverviewCount()); |
|
60 |
for (int j = 0 ; j < b.getOverviewCount() ; j++) { |
|
61 |
GdalRasterBand ov = b.getOverview(j); |
|
62 |
System.out.println(" " + ov.getRasterBandXSize() + " x " + ov.getRasterBandYSize()); |
|
63 |
} |
|
64 |
} |
|
65 |
} |
|
66 |
} |
|
0 | 67 |
org.gvsig.raster.gdal/tags/v2.2.2/org.gvsig.raster.gdal.jni/src/test/java/org/gvsig/jgdal/TestReadData.java | ||
---|---|---|
1 |
package org.gvsig.jgdal; |
|
2 |
|
|
3 |
import java.io.IOException; |
|
4 |
|
|
5 |
import junit.framework.TestCase; |
|
6 |
|
|
7 |
/** |
|
8 |
* Test de acceso a datos de la imagen. |
|
9 |
* @author Miguel ?ngel Qierol Carratal? <miguelangel.querol@iver.es> |
|
10 |
* |
|
11 |
*/ |
|
12 |
public class TestReadData extends TestCase{ |
|
13 |
|
|
14 |
private Gdal gdal = null; |
|
15 |
private String baseDir = "./test-images/"; |
|
16 |
private String file1 = baseDir + "testGdal.tif"; |
|
17 |
private String[] metadata = null; |
|
18 |
|
|
19 |
public void start(){ |
|
20 |
try { |
|
21 |
setUp(); |
|
22 |
testStack(); |
|
23 |
} catch (GdalException e) { |
|
24 |
e.printStackTrace(); |
|
25 |
} catch (IOException e) { |
|
26 |
e.printStackTrace(); |
|
27 |
} |
|
28 |
|
|
29 |
} |
|
30 |
|
|
31 |
public void setUp() throws GdalException, IOException{ |
|
32 |
gdal = new Gdal(); |
|
33 |
gdal.open(file1, Gdal.GA_Update); |
|
34 |
} |
|
35 |
|
|
36 |
public void testStack() throws GdalException, IOException{ |
|
37 |
//Llamada sin dominio |
|
38 |
metadata = gdal.getMetadata(); |
|
39 |
assertNotNull("No se han devuelto metadatos", metadata); |
|
40 |
for (int i = 0 ; i<metadata.length ; i++){ |
|
41 |
System.out.println("Metadato: " + metadata[i]); |
|
42 |
} |
|
43 |
|
|
44 |
//Llamada con dominio "Image Structure Metadata" |
|
45 |
metadata = gdal.getMetadata("Image Structure Metadata"); |
|
46 |
assertNotNull("No se han devuelto metadatos", metadata); |
|
47 |
for (int i = 0 ; i<metadata.length ; i++){ |
|
48 |
System.out.println("Metadato: " + metadata[i]); |
|
49 |
} |
|
50 |
|
|
51 |
//Comprobaci?n del tama?o de la imagen |
|
52 |
assertEquals(842, gdal.getRasterXSize()); |
|
53 |
assertEquals(1023, gdal.getRasterYSize()); |
|
54 |
|
|
55 |
//Comprobaci?n del n?mero de bandas |
|
56 |
assertEquals(4, gdal.getRasterCount()); |
|
57 |
|
|
58 |
//Comprobaci?n del driver de la imagen |
|
59 |
assertEquals("GTiff", gdal.getDriverShortName()); |
|
60 |
|
|
61 |
//Comprobaci?n del acceso a las bandas |
|
62 |
for (int i = 0 ; i < gdal.getRasterCount() ; i++){ |
|
63 |
assertNotNull(gdal.getRasterBand(i+1)); |
|
64 |
} |
|
65 |
|
|
66 |
gdal.close(); |
|
67 |
gdal = null; |
|
68 |
System.gc(); |
|
69 |
} |
|
70 |
} |
|
0 | 71 |
org.gvsig.raster.gdal/tags/v2.2.2/org.gvsig.raster.gdal.jni/src/test/java/org/gvsig/jgdal/TestReadBandData.java | ||
---|---|---|
1 |
package org.gvsig.jgdal; |
|
2 |
|
|
3 |
import java.io.IOException; |
|
4 |
|
|
5 |
import junit.framework.TestCase; |
|
6 |
|
|
7 |
/** |
|
8 |
* Test de acceso a datos de las bandas de una imagen. |
|
9 |
* @author Miguel ?ngel Querol Carratal? <miguelangel.querol@iver.es> |
|
10 |
* |
|
11 |
*/ |
|
12 |
public class TestReadBandData extends TestCase{ |
|
13 |
private Gdal gdal = null; |
|
14 |
private GdalRasterBand band = null; |
|
15 |
private String baseDir = "./test-images/"; |
|
16 |
private String file1 = baseDir + "testGdal.tif"; |
|
17 |
|
|
18 |
public void start(){ |
|
19 |
try { |
Also available in: Unified diff