Revision 3491
org.gvsig.raster.gdal/tags/pre-remove-jgdal/tagdate_29082013_14_01/org.gvsig.raster.gdal/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>false</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/pre-remove-jgdal/tagdate_29082013_14_01/org.gvsig.raster.gdal/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/pre-remove-jgdal/tagdate_29082013_14_01/org.gvsig.raster.gdal/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/pre-remove-jgdal/tagdate_29082013_14_01/org.gvsig.raster.gdal/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/pre-remove-jgdal/tagdate_29082013_14_01/org.gvsig.raster.gdal/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.app" /> |
|
4 |
<depends plugin-name="org.gvsig.raster.tilecache.app" /> |
|
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/pre-remove-jgdal/tagdate_29082013_14_01/org.gvsig.raster.gdal/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.1.0-SNAPSHOT</version> |
|
13 |
</parent> |
|
14 |
<scm> |
|
15 |
<connection>scm:svn:https://devel.gvsig.org/svn/gvsig-raster/org.gvsig.raster.gdal/trunk/org.gvsig.raster.gdal/org.gvsig.raster.gdal.app</connection> |
|
16 |
<developerConnection>scm:svn:https://devel.gvsig.org/svn/gvsig-raster/org.gvsig.raster.gdal/trunk/org.gvsig.raster.gdal/org.gvsig.raster.gdal.app</developerConnection> |
|
17 |
<url>https://devel.gvsig.org/redmine/projects/gvsig-raster/repository/show/org.gvsig.raster.gdal/trunk/org.gvsig.raster.gdal/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 |
</dependencies> |
|
31 |
|
|
32 |
<profiles> |
|
33 |
|
|
34 |
<!-- *************** --> |
|
35 |
<!-- LINUX PROFILE --> |
|
36 |
<!-- *************** --> |
|
37 |
|
|
38 |
<profile> |
|
39 |
<id>linux-profile</id> |
|
40 |
<activation> |
|
41 |
<property> |
|
42 |
<name>native-platform</name> |
|
43 |
<value>linux</value> |
|
44 |
</property> |
|
45 |
</activation> |
|
46 |
<properties> |
|
47 |
<gvsig.package.info.operatingSystem>lin</gvsig.package.info.operatingSystem> |
|
48 |
<gvsig.package.info.architecture>x86</gvsig.package.info.architecture> |
|
49 |
<gvsig.package.info.poolURL>http://devel.gvsig.org/download/projects/Raster/pool/org.gvsig.raster.gdal.app</gvsig.package.info.poolURL> |
|
50 |
</properties> |
|
51 |
<build> |
|
52 |
<plugins> |
|
53 |
<plugin> |
|
54 |
<artifactId>maven-assembly-plugin</artifactId> |
|
55 |
<configuration> |
|
56 |
<ignoreDirFormatExtensions>true</ignoreDirFormatExtensions> |
|
57 |
<appendAssemblyId>false</appendAssemblyId> |
|
58 |
</configuration> |
|
59 |
<executions> |
|
60 |
<execution> |
|
61 |
<id>gvsig-plugin-package</id> |
|
62 |
<phase>package</phase> |
|
63 |
<goals> |
|
64 |
<goal>single</goal> |
|
65 |
</goals> |
|
66 |
<configuration> |
|
67 |
<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> |
|
68 |
<descriptors> |
|
69 |
<descriptor>src/main/assembly/gvsig-plugin-package-lin.xml</descriptor> |
|
70 |
</descriptors> |
|
71 |
</configuration> |
|
72 |
</execution> |
|
73 |
</executions> |
|
74 |
</plugin> |
|
75 |
</plugins> |
|
76 |
</build> |
|
77 |
</profile> |
|
78 |
|
|
79 |
<!-- *************** --> |
|
80 |
<!-- FEDORA PROFILE --> |
|
81 |
<!-- *************** --> |
|
82 |
|
|
83 |
<profile> |
|
84 |
<id>fedora11-profile</id> |
|
85 |
<activation> |
|
86 |
<property> |
|
87 |
<name>native-platform</name> |
|
88 |
<value>fedora11</value> |
|
89 |
</property> |
|
90 |
</activation> |
|
91 |
<properties> |
|
92 |
<gvsig.package.info.categories>Raster</gvsig.package.info.categories> |
|
93 |
<gvsig.package.info.operatingSystem>fedora11</gvsig.package.info.operatingSystem> |
|
94 |
<gvsig.package.info.architecture>x86</gvsig.package.info.architecture> |
|
95 |
</properties> |
|
96 |
<build> |
|
97 |
<plugins> |
|
98 |
<plugin> |
|
99 |
<artifactId>maven-assembly-plugin</artifactId> |
|
100 |
<configuration> |
|
101 |
<ignoreDirFormatExtensions>true</ignoreDirFormatExtensions> |
|
102 |
<appendAssemblyId>false</appendAssemblyId> |
|
103 |
</configuration> |
|
104 |
<executions> |
|
105 |
<execution> |
|
106 |
<id>gvsig-plugin-package</id> |
|
107 |
<phase>package</phase> |
|
108 |
<goals> |
|
109 |
<goal>single</goal> |
|
110 |
</goals> |
|
111 |
<configuration> |
|
112 |
<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> |
|
113 |
<descriptors> |
|
114 |
<descriptor>src/main/assembly/gvsig-plugin-package-fedora11.xml</descriptor> |
|
115 |
</descriptors> |
|
116 |
</configuration> |
|
117 |
</execution> |
|
118 |
</executions> |
|
119 |
</plugin> |
|
120 |
</plugins> |
|
121 |
</build> |
|
122 |
</profile> |
|
123 |
|
|
124 |
<!-- *************** --> |
|
125 |
<!-- WINDOWS PROFILE --> |
|
126 |
<!-- *************** --> |
|
127 |
|
|
128 |
<profile> |
|
129 |
<id>windows-profile</id> |
|
130 |
<activation> |
|
131 |
<property> |
|
132 |
<name>native-platform</name> |
|
133 |
<value>win</value> |
|
134 |
</property> |
|
135 |
</activation> |
|
136 |
<properties> |
|
137 |
<gvsig.package.info.operatingSystem>win</gvsig.package.info.operatingSystem> |
|
138 |
<gvsig.package.info.architecture>x86</gvsig.package.info.architecture> |
|
139 |
<gvsig.package.info.poolURL>http://devel.gvsig.org/download/projects/Raster/pool/org.gvsig.raster.gdal.app</gvsig.package.info.poolURL> |
|
140 |
</properties> |
|
141 |
<build> |
|
142 |
<plugins> |
|
143 |
<plugin> |
|
144 |
<artifactId>maven-assembly-plugin</artifactId> |
|
145 |
<configuration> |
|
146 |
<ignoreDirFormatExtensions>true</ignoreDirFormatExtensions> |
|
147 |
<appendAssemblyId>false</appendAssemblyId> |
|
148 |
</configuration> |
|
149 |
<executions> |
|
150 |
<execution> |
|
151 |
<id>gvsig-plugin-package</id> |
|
152 |
<phase>package</phase> |
|
153 |
<goals> |
|
154 |
<goal>single</goal> |
|
155 |
</goals> |
|
156 |
<configuration> |
|
157 |
<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> |
|
158 |
<descriptors> |
|
159 |
<descriptor>src/main/assembly/gvsig-plugin-package-win.xml</descriptor> |
|
160 |
</descriptors> |
|
161 |
</configuration> |
|
162 |
</execution> |
|
163 |
</executions> |
|
164 |
</plugin> |
|
165 |
</plugins> |
|
166 |
</build> |
|
167 |
</profile> |
|
168 |
</profiles> |
|
169 |
|
|
170 |
<properties> |
|
171 |
<gvsig.package.info.categories>Raster, Formats</gvsig.package.info.categories> |
|
172 |
<gvsig.package.info.state>testing</gvsig.package.info.state> |
|
173 |
<gvsig.package.info.poolURL>http://devel.gvsig.org/download/projects/Raster/pool</gvsig.package.info.poolURL> |
|
174 |
<gvsig.package.info.dependencies>required: org.gvsig.raster.tilecache.app -ge 2</gvsig.package.info.dependencies> |
|
175 |
<gvsig.package.info.official>true</gvsig.package.info.official> |
|
176 |
</properties> |
|
177 |
</project> |
|
0 | 178 |
org.gvsig.raster.gdal/tags/pre-remove-jgdal/tagdate_29082013_14_01/org.gvsig.raster.gdal/org.gvsig.raster.gdal.app/buildNumber.properties | ||
---|---|---|
1 |
#maven.buildNumber.plugin properties file |
|
2 |
#Wed May 15 12:23:54 CEST 2013 |
|
3 |
buildNumber=43 |
|
0 | 4 |
org.gvsig.raster.gdal/tags/pre-remove-jgdal/tagdate_29082013_14_01/org.gvsig.raster.gdal/org.gvsig.raster.gdal.jni/src/test/java/org/gvsig/addo/TestBuildOverviews.java | ||
---|---|---|
1 |
package org.gvsig.addo; |
|
2 |
|
|
3 |
import java.io.IOException; |
|
4 |
|
|
5 |
import junit.framework.TestCase; |
|
6 |
import org.gvsig.jgdal.Gdal; |
|
7 |
import org.gvsig.jgdal.GdalException; |
|
8 |
|
|
9 |
/** |
|
10 |
* Test para la generacion de overviews sobre una imagen raster. |
|
11 |
* Registra un listener para mostrar el incremento de la tarea. |
|
12 |
* |
|
13 |
* 18-nov-2007 |
|
14 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
|
15 |
*/ |
|
16 |
public class TestBuildOverviews extends TestCase implements IOverviewIncrement { |
|
17 |
private int value = 0; |
|
18 |
|
|
19 |
private Jaddo addo = null; |
|
20 |
private Gdal gdal = null; |
|
21 |
private String path = "./test-images/testGdalWarp.tif"; |
|
22 |
|
|
23 |
public void start(){ |
|
24 |
setUp(); |
|
25 |
testStack(); |
|
26 |
} |
|
27 |
|
|
28 |
|
|
29 |
public void setUp(){ |
|
30 |
addo = new Jaddo(); |
|
31 |
addo.setIncrementListener(this); |
|
32 |
gdal = new Gdal(); |
|
33 |
} |
|
34 |
|
|
35 |
|
|
36 |
public void testStack(){ |
|
37 |
try { |
|
38 |
addo.buildOverviews(Jaddo.AVERAGE, path, new int[]{2, 4, 8, 16}); |
|
39 |
gdal.open(path, Gdal.GA_ReadOnly); |
|
40 |
assertTrue("No hay overviews!!", gdal.getRasterBand(1).getOverviewCount()>0); |
|
41 |
} catch (BuildingOverviewsException e) { |
|
42 |
System.err.println(e); |
|
43 |
} catch (WritingException e) { |
|
44 |
System.err.println(e); |
|
45 |
} catch (GdalException e) { |
|
46 |
e.printStackTrace(); |
|
47 |
} catch (IOException e) { |
|
48 |
e.printStackTrace(); |
|
49 |
} |
|
50 |
|
|
51 |
} |
|
52 |
|
|
53 |
public int getPercent() { |
|
54 |
return value; |
|
55 |
} |
|
56 |
|
|
57 |
public void setPercent(int value) { |
|
58 |
this.value = value; |
|
59 |
System.out.println("Increment:" + value); |
|
60 |
} |
|
61 |
} |
|
0 | 62 |
org.gvsig.raster.gdal/tags/pre-remove-jgdal/tagdate_29082013_14_01/org.gvsig.raster.gdal/org.gvsig.raster.gdal.jni/src/test/java/org/gvsig/jgdal/TestWarpDataset.java | ||
---|---|---|
1 |
package org.gvsig.jgdal; |
|
2 |
|
|
3 |
import java.io.File; |
|
4 |
import java.io.IOException; |
|
5 |
|
|
6 |
import junit.framework.TestCase; |
|
7 |
|
|
8 |
public class TestWarpDataset extends TestCase { |
|
9 |
private GdalWarp warp = null; |
|
10 |
private String baseDir = "./test-images/"; |
|
11 |
private String src = baseDir + "testGdalWarp.tif"; |
|
12 |
private String dst = baseDir + "warpedImage.tif"; |
|
13 |
private String frm = "GTiff"; |
|
14 |
private String t_srs = "EPSG:23030"; |
|
15 |
|
|
16 |
public void start() { |
|
17 |
setUp(); |
|
18 |
testStack(); |
|
19 |
} |
|
20 |
|
|
21 |
public void setUp() { |
|
22 |
warp = new GdalWarp(); |
|
23 |
File f = new File(src); |
|
24 |
Gdal dataset = new Gdal(); |
|
25 |
|
|
26 |
try { |
|
27 |
assertTrue("El fichero no existe", f.exists()); |
|
28 |
assertTrue("El fichero no se puede leer", f.canRead()); |
|
29 |
dataset.open(src, Gdal.GA_ReadOnly); |
|
30 |
GdalRasterBand band = dataset.getRasterBand(1); |
|
31 |
band.readRaster(0, 0, 10, 10, 10, 10, Gdal.GDT_Byte); |
|
32 |
} catch (GdalException e) { |
|
33 |
new AssertionError("Fallo en gdal al acceder al fichero fuente"); |
|
34 |
} catch (IOException e) { |
|
35 |
new AssertionError("Fallo en gdal al acceder al fichero fuente"); |
|
36 |
e.printStackTrace(); |
|
37 |
} |
|
38 |
} |
|
39 |
|
|
40 |
public void testStack() { |
|
41 |
assertNotNull(t_srs); |
|
42 |
|
|
43 |
warp.warp(t_srs, src, dst, frm); |
|
44 |
System.err.println("Proceso completado al " + warp.getPercent() + " %"); |
|
45 |
|
|
46 |
File f = new File(dst); |
|
47 |
|
|
48 |
assertTrue("El fichero destino no existe", f.exists()); |
|
49 |
assertTrue("El fichero destino no se puede leer", f.canRead()); |
|
50 |
} |
|
51 |
} |
|
0 | 52 |
org.gvsig.raster.gdal/tags/pre-remove-jgdal/tagdate_29082013_14_01/org.gvsig.raster.gdal/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/pre-remove-jgdal/tagdate_29082013_14_01/org.gvsig.raster.gdal/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 { |
|
20 |
setUp(); |
|
21 |
testStack(); |
|
22 |
} catch (GdalException e) { |
|
23 |
e.printStackTrace(); |
|
24 |
} catch (IOException e) { |
|
25 |
e.printStackTrace(); |
|
26 |
} |
|
27 |
|
|
28 |
} |
|
29 |
|
|
30 |
public void setUp() throws GdalException, IOException{ |
|
31 |
gdal = new Gdal(); |
|
32 |
gdal.open(file1, Gdal.GA_Update); |
|
33 |
} |
|
34 |
|
|
35 |
public void testStack() throws GdalException, IOException{ |
|
36 |
//Llamada sin dominio |
|
37 |
String[] metadata = gdal.getMetadata(); |
|
38 |
assertNotNull("No se han devuelto metadatos", metadata); |
|
39 |
for (int i = 0 ; i<metadata.length ; i++){ |
|
40 |
System.out.println("Metadato: " + metadata[i]); |
|
41 |
} |
|
42 |
|
|
43 |
//Llamada con dominio "Image Structure Metadata" |
|
44 |
metadata = gdal.getMetadata("Image Structure Metadata"); |
|
45 |
assertNotNull("No se han devuelto metadatos", metadata); |
|
46 |
for (int i = 0 ; i<metadata.length ; i++){ |
|
47 |
System.out.println("Metadato: " + metadata[i]); |
|
48 |
} |
|
49 |
|
|
50 |
//Comprobaci?n del tama?o de la imagen |
|
51 |
assertEquals(842, gdal.getRasterXSize()); |
|
52 |
assertEquals(1023, gdal.getRasterYSize()); |
|
53 |
|
|
54 |
//Comprobaci?n del n?mero de bandas |
|
55 |
assertEquals(4, gdal.getRasterCount()); |
|
56 |
|
|
57 |
//Comprobaci?n del driver de la imagen |
|
58 |
assertEquals("GTiff", gdal.getDriverShortName()); |
|
59 |
|
|
60 |
//Comprobaci?n del acceso a las bandas |
|
61 |
for (int i = 0 ; i < gdal.getRasterCount() ; i++){ |
|
62 |
assertNotNull(gdal.getRasterBand(i+1)); |
|
63 |
} |
|
64 |
} |
|
65 |
} |
|
0 | 66 |
org.gvsig.raster.gdal/tags/pre-remove-jgdal/tagdate_29082013_14_01/org.gvsig.raster.gdal/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/pre-remove-jgdal/tagdate_29082013_14_01/org.gvsig.raster.gdal/org.gvsig.raster.gdal.jni/src/main/java/org/gvsig/addo/IOverviewIncrement.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.addo; |
|
23 |
|
|
24 |
/** |
|
25 |
* Interfaz para la asignacion y recuperacion del incremento |
|
26 |
* de la tarea. |
|
27 |
* |
|
28 |
* 17-nov-2007 |
|
29 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
|
30 |
*/ |
|
31 |
public interface IOverviewIncrement { |
|
32 |
/** |
|
33 |
* Devuelve el porcentaje del incremento |
|
34 |
* @return int |
|
35 |
*/ |
|
36 |
public int getPercent(); |
|
37 |
|
|
38 |
/** |
|
39 |
* Asigna el porcentaje de incremento de la construccion de overview. |
|
40 |
* Esto se hace automaticamente desde el callback que asigna el porcentaje. |
|
41 |
*/ |
|
42 |
public void setPercent(int value); |
|
43 |
} |
|
0 | 44 |
org.gvsig.raster.gdal/tags/pre-remove-jgdal/tagdate_29082013_14_01/org.gvsig.raster.gdal/org.gvsig.raster.gdal.jni/src/main/java/org/gvsig/addo/BuildingOverviewsException.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.addo; |
|
23 |
|
|
24 |
/** |
|
25 |
* Es generada cuando hay algun problema en la construccion de |
|
26 |
* las overviews y la funcion nativa devuelve 0 |
|
27 |
* |
|
28 |
* @author Nacho Brodin (nachobrodin@gmail.com).<BR> Equipo de desarrollo gvSIG.<BR> http://www.gvsig.gva.es |
|
29 |
* @version 0.0 |
|
30 |
* @link http://www.gvsig.org |
|
31 |
*/ |
|
32 |
public class BuildingOverviewsException extends Exception { |
|
33 |
|
|
34 |
public BuildingOverviewsException(String msg) { |
|
35 |
super(msg); |
|
36 |
} |
|
37 |
|
|
38 |
} |
|
0 | 39 |
org.gvsig.raster.gdal/tags/pre-remove-jgdal/tagdate_29082013_14_01/org.gvsig.raster.gdal/org.gvsig.raster.gdal.jni/src/main/java/org/gvsig/addo/Jaddo.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.addo; |
|
23 |
import java.io.File; |
|
24 |
|
|
25 |
import org.gvsig.jgdal.JNIBase; |
|
26 |
|
|
27 |
/** |
|
28 |
* Clase para la construccion de overviews de un raster. |
|
29 |
* |
|
30 |
* 15-nov-2007 |
|
31 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
|
32 |
*/ |
|
33 |
public class Jaddo extends JNIBase implements IOverviewIncrement{ |
|
34 |
public final static int NEAREST = 0; |
|
35 |
public final static int AVERAGE = 1; |
|
36 |
public final static int AVERAGE_MP = 2; |
|
37 |
public final static int AVERAGE_MAGPHASE = 3; |
|
38 |
public final static int MODE = 4; |
|
39 |
|
|
40 |
private IOverviewIncrement incrementListener = null; |
|
41 |
private int value = 0; |
|
42 |
|
|
43 |
private native int buildOverviewsNative(int resamplingAlg, String file, int[] overviews); |
|
44 |
|
|
45 |
/** |
|
46 |
* Construccion de overviews |
|
47 |
*/ |
|
48 |
public void buildOverviews(int resamplingAlg, String file, int[] overviews) |
|
49 |
throws BuildingOverviewsException, WritingException { |
|
50 |
File f = new File(file); |
|
51 |
if(!f.exists() || !f.isFile()) |
|
52 |
throw new BuildingOverviewsException("File does not exist."); |
|
53 |
if(!f.canWrite()) |
|
54 |
throw new WritingException("File is not writeable"); |
|
55 |
if(buildOverviewsNative(resamplingAlg, file, overviews) >= 0) |
|
56 |
throw new BuildingOverviewsException("Problems building overviews"); |
|
57 |
} |
|
58 |
|
|
59 |
/** |
|
60 |
* Devuelve el porcentaje del incremento. |
|
61 |
* @return int |
|
62 |
*/ |
|
63 |
public int getPercent() { |
|
64 |
return value; |
|
65 |
} |
|
66 |
|
|
67 |
/** |
|
68 |
* Asigna el porcentaje de incremento de la construccion de overview. |
|
69 |
* Esto se hace automaticamente desde el callback que asigna el porcentaje. |
|
70 |
*/ |
|
71 |
public void setPercent(int value) { |
|
72 |
this.value = value; |
|
73 |
if(incrementListener != null) |
|
74 |
incrementListener.setPercent(value); |
|
75 |
} |
|
76 |
|
|
77 |
/** |
|
78 |
* Asigna el listener para la asignacion del incremento |
|
79 |
* @param incr IOverviewIncrement |
|
80 |
*/ |
|
81 |
public void setIncrementListener(IOverviewIncrement incr) { |
|
82 |
this.incrementListener = incr; |
|
83 |
} |
|
84 |
} |
|
0 | 85 |
org.gvsig.raster.gdal/tags/pre-remove-jgdal/tagdate_29082013_14_01/org.gvsig.raster.gdal/org.gvsig.raster.gdal.jni/src/main/java/org/gvsig/addo/WritingException.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.addo; |
|
23 |
|
|
24 |
/** |
|
25 |
* Es generada no se puede escribir las overviews |
|
26 |
* |
|
27 |
* @author Nacho Brodin (nachobrodin@gmail.com).<BR> Equipo de desarrollo gvSIG.<BR> http://www.gvsig.gva.es |
|
28 |
* @version 0.0 |
|
29 |
* @link http://www.gvsig.org |
|
30 |
*/ |
|
31 |
|
|
32 |
|
|
33 |
public class WritingException extends Exception { |
|
34 |
|
|
35 |
public WritingException(String msg){ |
|
36 |
super(msg); |
|
37 |
} |
|
38 |
|
|
39 |
|
|
40 |
} |
|
0 | 41 |
Also available in: Unified diff