Revision 1530
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.176/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<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/xsd/maven-4.0.0.xsd"> |
|
3 |
|
|
4 |
<modelVersion>4.0.0</modelVersion> |
|
5 |
<artifactId>org.gvsig.geoprocess</artifactId> |
|
6 |
<packaging>pom</packaging> |
|
7 |
<name>org.gvsig.geoprocess</name> |
|
8 |
<description>Geoprocessing projects</description> |
|
9 |
<version>2.2.176</version> |
|
10 |
|
|
11 |
<parent> |
|
12 |
<groupId>org.gvsig</groupId> |
|
13 |
<artifactId>org.gvsig.desktop</artifactId> |
|
14 |
<version>2.0.336</version> |
|
15 |
</parent> |
|
16 |
|
|
17 |
<properties> |
|
18 |
<!-- El plugin versions:use-latest-versions falla con scope import --> |
|
19 |
<!-- asi que toca usar el versions:update-properties que si que funciona --> |
|
20 |
<org.gvsig.raster.version>2.2.166</org.gvsig.raster.version> |
|
21 |
<org.gvsig.toolbox.version>1.0.102</org.gvsig.toolbox.version> |
|
22 |
<gvsig.tools.version>3.0.295</gvsig.tools.version> |
|
23 |
</properties> |
|
24 |
<scm> |
|
25 |
<connection>scm:svn:https://devel.gvsig.org/svn/gvsig-geoprocess/org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.176</connection> |
|
26 |
<developerConnection>scm:svn:https://devel.gvsig.org/svn/gvsig-geoprocess/org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.176</developerConnection> |
|
27 |
<url>https://devel.gvsig.org/redmine/projects/gvsig-geoprocess/repository/show/org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.176</url> |
|
28 |
</scm> |
|
29 |
|
|
30 |
<repositories> |
|
31 |
<repository> |
|
32 |
<id>gvsig-public-http-repository</id> |
|
33 |
<name>gvSIG maven public HTTP repository</name> |
|
34 |
<url>http://devel.gvsig.org/m2repo/j2se</url> |
|
35 |
<releases> |
|
36 |
<enabled>true</enabled> |
|
37 |
<updatePolicy>daily</updatePolicy> |
|
38 |
<checksumPolicy>warn</checksumPolicy> |
|
39 |
</releases> |
|
40 |
<snapshots> |
|
41 |
<enabled>true</enabled> |
|
42 |
<updatePolicy>daily</updatePolicy> |
|
43 |
<checksumPolicy>warn</checksumPolicy> |
|
44 |
</snapshots> |
|
45 |
</repository> |
|
46 |
</repositories> |
|
47 |
|
|
48 |
<dependencyManagement> |
|
49 |
<dependencies> |
|
50 |
<dependency> |
|
51 |
<groupId>org.gvsig</groupId> |
|
52 |
<artifactId>org.gvsig.tools</artifactId> |
|
53 |
<version>${gvsig.tools.version}</version> |
|
54 |
<type>pom</type> |
|
55 |
<scope>import</scope> |
|
56 |
</dependency> |
|
57 |
<dependency> |
|
58 |
<groupId>org.gvsig</groupId> |
|
59 |
<artifactId>org.gvsig.raster</artifactId> |
|
60 |
<version>${org.gvsig.raster.version}</version> |
|
61 |
<type>pom</type> |
|
62 |
<scope>import</scope> |
|
63 |
</dependency> |
|
64 |
<dependency> |
|
65 |
<groupId>org.gvsig</groupId> |
|
66 |
<artifactId>org.gvsig.toolbox</artifactId> |
|
67 |
<version>${org.gvsig.toolbox.version}</version> |
|
68 |
<type>pom</type> |
|
69 |
<scope>import</scope> |
|
70 |
</dependency> |
|
71 |
<dependency> |
|
72 |
<groupId>org.gvsig</groupId> |
|
73 |
<artifactId>org.gvsig.geoprocess.app.mainplugin</artifactId> |
|
74 |
<version>2.2.176</version> |
|
75 |
</dependency> |
|
76 |
<dependency> |
|
77 |
<groupId>org.gvsig</groupId> |
|
78 |
<artifactId>org.gvsig.geoprocess.lib.api</artifactId> |
|
79 |
<version>2.2.176</version> |
|
80 |
</dependency> |
|
81 |
<dependency> |
|
82 |
<groupId>org.gvsig</groupId> |
|
83 |
<artifactId>org.gvsig.geoprocess.lib.sextante</artifactId> |
|
84 |
<version>2.2.176</version> |
|
85 |
</dependency> |
|
86 |
<dependency> |
|
87 |
<groupId>org.gvsig</groupId> |
|
88 |
<artifactId>org.gvsig.geoprocess.algorithm.base</artifactId> |
|
89 |
<version>2.2.176</version> |
|
90 |
</dependency> |
|
91 |
<dependency> |
|
92 |
<groupId>org.gvsig</groupId> |
|
93 |
<artifactId>org.gvsig.geoprocess.algorithm.buffer</artifactId> |
|
94 |
<version>2.2.176</version> |
|
95 |
</dependency> |
|
96 |
<dependency> |
|
97 |
<groupId>org.gvsig</groupId> |
|
98 |
<artifactId>org.gvsig.geoprocess.algorithm.clip</artifactId> |
|
99 |
<version>2.2.176</version> |
|
100 |
</dependency> |
|
101 |
<dependency> |
|
102 |
<groupId>org.gvsig</groupId> |
|
103 |
<artifactId>org.gvsig.geoprocess.algorithm.convexhull</artifactId> |
|
104 |
<version>2.2.176</version> |
|
105 |
</dependency> |
|
106 |
<dependency> |
|
107 |
<groupId>org.gvsig</groupId> |
|
108 |
<artifactId>org.gvsig.geoprocess.algorithm.difference</artifactId> |
|
109 |
<version>2.2.176</version> |
|
110 |
</dependency> |
|
111 |
<dependency> |
|
112 |
<groupId>org.gvsig</groupId> |
|
113 |
<artifactId>org.gvsig.geoprocess.algorithm.dissolve</artifactId> |
|
114 |
<version>2.2.176</version> |
|
115 |
</dependency> |
|
116 |
<dependency> |
|
117 |
<groupId>org.gvsig</groupId> |
|
118 |
<artifactId>org.gvsig.geoprocess.algorithm.fusespatially</artifactId> |
|
119 |
<version>2.2.176</version> |
|
120 |
</dependency> |
|
121 |
<dependency> |
|
122 |
<groupId>org.gvsig</groupId> |
|
123 |
<artifactId>org.gvsig.geoprocess.algorithm.intersection</artifactId> |
|
124 |
<version>2.2.176</version> |
|
125 |
</dependency> |
|
126 |
<dependency> |
|
127 |
<groupId>org.gvsig</groupId> |
|
128 |
<artifactId>org.gvsig.geoprocess.algorithm.merge</artifactId> |
|
129 |
<version>2.2.176</version> |
|
130 |
</dependency> |
|
131 |
<dependency> |
|
132 |
<groupId>org.gvsig</groupId> |
|
133 |
<artifactId>org.gvsig.geoprocess.algorithm.reproject</artifactId> |
|
134 |
<version>2.2.176</version> |
|
135 |
</dependency> |
|
136 |
<dependency> |
|
137 |
<groupId>org.gvsig</groupId> |
|
138 |
<artifactId>org.gvsig.geoprocess.algorithm.spatialjoin</artifactId> |
|
139 |
<version>2.2.176</version> |
|
140 |
</dependency> |
|
141 |
<dependency> |
|
142 |
<groupId>org.gvsig</groupId> |
|
143 |
<artifactId>org.gvsig.geoprocess.algorithm.union</artifactId> |
|
144 |
<version>2.2.176</version> |
|
145 |
</dependency> |
|
146 |
<dependency> |
|
147 |
<groupId>org.gvsig</groupId> |
|
148 |
<artifactId>org.gvsig.geoprocess.algorithm.xyshift</artifactId> |
|
149 |
<version>2.2.176</version> |
|
150 |
</dependency> |
|
151 |
<dependency> |
|
152 |
<groupId>org.gvsig</groupId> |
|
153 |
<artifactId>org.gvsig.geoprocess.algorithm.groupby</artifactId> |
|
154 |
<version>2.2.176</version> |
|
155 |
</dependency> |
|
156 |
<dependency> |
|
157 |
<groupId>org.gvsig</groupId> |
|
158 |
<artifactId>org.gvsig.geoprocess.algorithm.lateralbuffer</artifactId> |
|
159 |
<version>2.2.176</version> |
|
160 |
</dependency> |
|
161 |
<dependency> |
|
162 |
<groupId>org.gvsig</groupId> |
|
163 |
<artifactId>org.gvsig.geoprocess.algorithm.splitlines</artifactId> |
|
164 |
<version>2.2.176</version> |
|
165 |
</dependency> |
|
166 |
<dependency> |
|
167 |
<groupId>org.gvsig</groupId> |
|
168 |
<artifactId>org.gvsig.geoprocess.algorithm.dispersepoints</artifactId> |
|
169 |
<version>2.2.176</version> |
|
170 |
</dependency> |
|
171 |
<dependency> |
|
172 |
<groupId>org.japura</groupId> |
|
173 |
<artifactId>org.japura</artifactId> |
|
174 |
<version>1.14.0</version> |
|
175 |
</dependency> |
|
176 |
<dependency> |
|
177 |
<groupId>org.mapdb</groupId> |
|
178 |
<artifactId>mapdb</artifactId> |
|
179 |
<version>3.0.5</version> |
|
180 |
</dependency> |
|
181 |
|
|
182 |
|
|
183 |
<dependency> |
|
184 |
<groupId>org.jetbrains.kotlin</groupId> |
|
185 |
<artifactId>kotlin-stdlib</artifactId> |
|
186 |
<version>1.0.7</version> |
|
187 |
</dependency> |
|
188 |
|
|
189 |
<dependency> |
|
190 |
<groupId>org.jetbrains.kotlin</groupId> |
|
191 |
<artifactId>kotlin-runtime</artifactId> |
|
192 |
<version>1.0.7</version> |
|
193 |
</dependency> |
|
194 |
|
|
195 |
<dependency> |
|
196 |
<groupId>org.eclipse.collections</groupId> |
|
197 |
<artifactId>eclipse-collections-api</artifactId> |
|
198 |
<version>7.1.1</version> |
|
199 |
</dependency> |
|
200 |
|
|
201 |
<dependency> |
|
202 |
<groupId>net.jcip</groupId> |
|
203 |
<artifactId>jcip-annotations</artifactId> |
|
204 |
<version>1.0</version> |
|
205 |
</dependency> |
|
206 |
|
|
207 |
<dependency> |
|
208 |
<groupId>org.eclipse.collections</groupId> |
|
209 |
<artifactId>eclipse-collections</artifactId> |
|
210 |
<version>7.1.1</version> |
|
211 |
</dependency> |
|
212 |
|
|
213 |
<dependency> |
|
214 |
<groupId>org.eclipse.collections</groupId> |
|
215 |
<artifactId>eclipse-collections-forkjoin</artifactId> |
|
216 |
<version>7.1.1</version> |
|
217 |
</dependency> |
|
218 |
|
|
219 |
<dependency> |
|
220 |
<groupId>com.google.guava</groupId> |
|
221 |
<artifactId>guava</artifactId> |
|
222 |
<version>19.0</version> |
|
223 |
</dependency> |
|
224 |
|
|
225 |
<dependency> |
|
226 |
<groupId>net.jpountz.lz4</groupId> |
|
227 |
<artifactId>lz4</artifactId> |
|
228 |
<version>1.3.0</version> |
|
229 |
</dependency> |
|
230 |
|
|
231 |
<dependency> |
|
232 |
<groupId>org.mapdb</groupId> |
|
233 |
<artifactId>elsa</artifactId> |
|
234 |
<version>3.0.0-M5</version> |
|
235 |
</dependency> |
|
236 |
|
|
237 |
</dependencies> |
|
238 |
</dependencyManagement> |
|
239 |
|
|
240 |
<build> |
|
241 |
<plugins> |
|
242 |
<plugin> |
|
243 |
<groupId>org.apache.maven.plugins</groupId> |
|
244 |
<artifactId>maven-release-plugin</artifactId> |
|
245 |
<configuration> |
|
246 |
<tagBase>https://devel.gvsig.org/svn/gvsig-geoprocess/org.gvsig.geoprocess/tags/</tagBase> |
|
247 |
<goals>deploy</goals> |
|
248 |
</configuration> |
|
249 |
</plugin> |
|
250 |
|
|
251 |
<plugin> |
|
252 |
<groupId>org.apache.maven.plugins</groupId> |
|
253 |
<artifactId>maven-compiler-plugin</artifactId> |
|
254 |
<version>2.0.2</version> |
|
255 |
<configuration> |
|
256 |
<source>1.8</source> |
|
257 |
<target>1.8</target> |
|
258 |
<encoding>ISO-8859-1</encoding> |
|
259 |
</configuration> |
|
260 |
</plugin> |
|
261 |
|
|
262 |
<!-- <plugin> |
|
263 |
<groupId>org.codehaus.mojo</groupId> |
|
264 |
<artifactId>animal-sniffer-maven-plugin</artifactId> |
|
265 |
<executions> |
|
266 |
<execution> |
|
267 |
<id>check-java-api</id> |
|
268 |
<phase>test</phase> |
|
269 |
<goals> |
|
270 |
<goal>check</goal> |
|
271 |
</goals> |
|
272 |
<configuration> |
|
273 |
<signature> |
|
274 |
<groupId>org.codehaus.mojo.signature |
|
275 |
</groupId> |
|
276 |
<artifactId>java16</artifactId> |
|
277 |
<version>1.0</version> |
|
278 |
</signature> |
|
279 |
</configuration> |
|
280 |
</execution> |
|
281 |
</executions> |
|
282 |
</plugin> --> |
|
283 |
|
|
284 |
</plugins> |
|
285 |
</build> |
|
286 |
|
|
287 |
<modules> |
|
288 |
<module>org.gvsig.geoprocess.lib</module> |
|
289 |
<module>org.gvsig.geoprocess.app</module> |
|
290 |
<module>org.gvsig.geoprocess.algorithm</module> |
|
291 |
</modules> |
|
292 |
</project> |
|
0 | 293 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.176/README.txt | ||
---|---|---|
1 |
==== |
|
2 |
gvSIG. Desktop Geographic Information System. |
|
3 |
|
|
4 |
Copyright (C) 2007-2012 gvSIG Association. |
|
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 |
For any additional information, do not hesitate to contact us |
|
22 |
at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
==== |
|
24 |
|
|
25 |
The first time you checkout the current project to a new workspace, |
|
26 |
you have to prepare it to be able to work easily with maven from |
|
27 |
eclipse itself. |
|
28 |
|
|
0 | 29 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.176/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.sextante/buildNumber.properties | ||
---|---|---|
1 |
#Thu Sep 23 09:54:47 CEST 2021 |
|
2 |
buildNumber=2254 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.176/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.sextante/src/main/assembly/gvsig-plugin-package.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 |
|
|
9 |
<files> |
|
10 |
<file> |
|
11 |
<source>target/${project.artifactId}-${project.version}.jar</source> |
|
12 |
<outputDirectory>lib</outputDirectory> |
|
13 |
</file> |
|
14 |
<file> |
|
15 |
<source>target/package.info</source> |
|
16 |
</file> |
|
17 |
</files> |
|
18 |
|
|
19 |
<fileSets> |
|
20 |
<fileSet> |
|
21 |
<directory>src/main/resources-plugin</directory> |
|
22 |
<outputDirectory>.</outputDirectory> |
|
23 |
</fileSet> |
|
24 |
</fileSets> |
|
25 |
|
|
26 |
<dependencySets> |
|
27 |
|
|
28 |
<dependencySet> |
|
29 |
<useProjectArtifact>false</useProjectArtifact> |
|
30 |
<useTransitiveDependencies>false</useTransitiveDependencies> |
|
31 |
<outputDirectory>lib</outputDirectory> |
|
32 |
<includes> |
|
33 |
<include>org.gvsig:org.gvsig.toolbox.algorithm</include> |
|
34 |
<include>gishur:gishur_core</include> |
|
35 |
<include>gishur:gishur_x</include> |
|
36 |
</includes> |
|
37 |
</dependencySet> |
|
38 |
</dependencySets> |
|
39 |
</assembly> |
|
0 | 40 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.176/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.sextante/src/main/java/org/gvsig/geoprocess/app/sextante/SextanteAlgorithmsExtension.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2012 gvSIG Association. |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.geoprocess.app.sextante; |
|
25 |
|
|
26 |
import java.util.HashMap; |
|
27 |
import java.util.Map; |
|
28 |
|
|
29 |
import es.unex.sextante.core.GeoAlgorithm; |
|
30 |
import es.unex.sextante.core.Sextante; |
|
31 |
import es.unex.sextante.gui.core.SextanteGUI; |
|
32 |
|
|
33 |
import org.gvsig.andami.plugins.Extension; |
|
34 |
|
|
35 |
/** |
|
36 |
* Sextante algorithms extension. |
|
37 |
* |
|
38 |
* @author gvSIG Team |
|
39 |
* @version $Id$ |
|
40 |
*/ |
|
41 |
public class SextanteAlgorithmsExtension extends Extension { |
|
42 |
|
|
43 |
public void execute(String actionCommand) { |
|
44 |
// Nothing to do |
|
45 |
} |
|
46 |
|
|
47 |
public void initialize() { |
|
48 |
|
|
49 |
// HACK: The initialize method removes all previously registered |
|
50 |
// algorithms, so we must get them before and add again afterwards. |
|
51 |
Map<String, HashMap<String, GeoAlgorithm>> algorithms = |
|
52 |
Sextante.getAlgorithms(); |
|
53 |
|
|
54 |
// The sextante algorithms jar files are copied into the |
|
55 |
// org.gvsig.geoprocess.app.mainplugin plugin as sextante looks |
|
56 |
// for resource bundles using its own classloader |
|
57 |
String sFolder = (this.getPlugin().getPluginDirectory().getAbsolutePath()) + "/lib"; |
|
58 |
Sextante.initialize(sFolder); |
|
59 |
// Read previous algorithms just in case |
|
60 |
if (algorithms != null) { |
|
61 |
Sextante.getAlgorithms().putAll(algorithms); |
|
62 |
} |
|
63 |
SextanteGUI.addResourcesFromFolder(sFolder); |
|
64 |
} |
|
65 |
|
|
66 |
public boolean isEnabled() { |
|
67 |
return true; |
|
68 |
} |
|
69 |
|
|
70 |
public boolean isVisible() { |
|
71 |
return true; |
|
72 |
} |
|
73 |
} |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.176/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.sextante/src/main/resources-plugin/config.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<!-- |
|
3 |
|
|
4 |
gvSIG. Desktop Geographic Information System. |
|
5 |
|
|
6 |
Copyright (C) 2007-2012 gvSIG Association. |
|
7 |
|
|
8 |
This program is free software; you can redistribute it and/or |
|
9 |
modify it under the terms of the GNU General Public License |
|
10 |
as published by the Free Software Foundation; either version 2 |
|
11 |
of the License, or (at your option) any later version. |
|
12 |
|
|
13 |
This program is distributed in the hope that it will be useful, |
|
14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16 |
GNU General Public License for more details. |
|
17 |
|
|
18 |
You should have received a copy of the GNU General Public License |
|
19 |
along with this program; if not, write to the Free Software |
|
20 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
21 |
MA 02110-1301, USA. |
|
22 |
|
|
23 |
For any additional information, do not hesitate to contact us |
|
24 |
at info AT gvsig.com, or visit our website www.gvsig.com. |
|
25 |
|
|
26 |
--> |
|
27 |
<plugin-config> |
|
28 |
<depends plugin-name="org.gvsig.geoprocess.app.mainplugin" /> |
|
29 |
<resourceBundle name="text" /> |
|
30 |
<libraries library-dir="lib" /> |
|
31 |
<extensions> |
|
32 |
<extension class-name="org.gvsig.geoprocess.app.sextante.SextanteAlgorithmsExtension" |
|
33 |
active="true" |
|
34 |
priority="1"> |
|
35 |
</extension> |
|
36 |
<extension class-name="org.gvsig.geoprocess.extension.AddDependencyExtension" |
|
37 |
active="true" |
|
38 |
priority="2"> |
|
39 |
</extension> |
|
40 |
</extensions> |
|
41 |
</plugin-config> |
|
0 | 42 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.176/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.sextante/pom.xml | ||
---|---|---|
1 |
<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"> |
|
2 |
<modelVersion>4.0.0</modelVersion> |
|
3 |
<artifactId>org.gvsig.geoprocess.app.sextante</artifactId> |
|
4 |
<packaging>jar</packaging> |
|
5 |
<name>${project.artifactId}</name> |
|
6 |
<description>Geoprocess: all the available sextante algorithms in the sextante build available in 2011/10/19</description> |
|
7 |
|
|
8 |
<parent> |
|
9 |
<groupId>org.gvsig</groupId> |
|
10 |
<artifactId>org.gvsig.geoprocess.app</artifactId> |
|
11 |
<version>2.2.176</version> |
|
12 |
</parent> |
|
13 |
|
|
14 |
<dependencies> |
|
15 |
<dependency> |
|
16 |
<groupId>org.gvsig</groupId> |
|
17 |
<artifactId>org.gvsig.geoprocess.app.mainplugin</artifactId> |
|
18 |
<scope>compile</scope> |
|
19 |
</dependency> |
|
20 |
<dependency> |
|
21 |
<groupId>org.gvsig</groupId> |
|
22 |
<artifactId>org.gvsig.tools.lib</artifactId> |
|
23 |
<scope>compile</scope> |
|
24 |
</dependency> |
|
25 |
<dependency> |
|
26 |
<groupId>org.gvsig</groupId> |
|
27 |
<artifactId>org.gvsig.andami</artifactId> |
|
28 |
<scope>compile</scope> |
|
29 |
</dependency> |
|
30 |
<dependency> |
|
31 |
<groupId>org.gvsig</groupId> |
|
32 |
<artifactId>org.gvsig.toolbox.core</artifactId> |
|
33 |
<scope>compile</scope> |
|
34 |
</dependency> |
|
35 |
<dependency> |
|
36 |
<groupId>org.gvsig</groupId> |
|
37 |
<artifactId>org.gvsig.toolbox.algorithm</artifactId> |
|
38 |
<scope>runtime</scope> |
|
39 |
</dependency> |
|
40 |
<dependency> |
|
41 |
<groupId>gishur</groupId> |
|
42 |
<artifactId>gishur_x</artifactId> |
|
43 |
<scope>runtime</scope> |
|
44 |
</dependency> |
|
45 |
<dependency> |
|
46 |
<groupId>gishur</groupId> |
|
47 |
<artifactId>gishur_core</artifactId> |
|
48 |
<scope>runtime</scope> |
|
49 |
</dependency> |
|
50 |
</dependencies> |
|
51 |
|
|
52 |
<properties> |
|
53 |
<gvsig.package.info.name>Geoprocess: sextante algorithms</gvsig.package.info.name> |
|
54 |
<gvsig.package.info.dependencies>required: org.gvsig.geoprocess.app.mainplugin -ge 2.0.0-SNAPSHOT</gvsig.package.info.dependencies> |
|
55 |
<gvsig.package.info.poolURL>https://devel.gvsig.org/download/projects/gvsig-geoprocess/pool</gvsig.package.info.poolURL> |
|
56 |
<gvsig.package.info.official>true</gvsig.package.info.official> |
|
57 |
</properties> |
|
58 |
</project> |
|
0 | 59 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.176/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.tool/buildNumber.properties | ||
---|---|---|
1 |
#maven.buildNumber.plugin properties file |
|
2 |
#Wed Feb 06 10:13:34 CET 2013 |
|
3 |
buildNumber=2079 |
|
0 | 4 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.176/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.tool/package.info | ||
---|---|---|
1 |
# |
|
2 |
#Fri Mar 08 09:59:00 CET 2013 |
|
3 |
owner=gvSIG Association |
|
4 |
code=org.gvsig.geoprocess.app.tool |
|
5 |
java-version=j1_5 |
|
6 |
official=true |
|
7 |
type=plugin |
|
8 |
version=2.0.0-SNAPSHOT-2065 |
|
9 |
state=final |
|
10 |
operating-system=all |
|
11 |
dependencies=required\: org.gvsig.geoprocess.app.mainplugin -ge 2.0.0-SNAPSHOT-0, required\: org.gvsig.raster.tools.app.basic -ge 2.0.0-0, required\: org.gvsig.crs.extension -ge 1.0.0-0 |
|
12 |
sources-url=https\://devel.gvsig.org/redmine/projects/gvsig-geoprocess/repository/show/org.gvsig.geoprocess/trunk/org.gvsig.geoprocess/org.gvsig.geoprocess.app.tool |
|
13 |
web-url=http\://www.gvsig.com |
|
14 |
architecture=all |
|
15 |
model-version=1.0.1 |
|
16 |
categories=Geoprocess |
|
17 |
description=gvSIG tools for the Sextante framework |
|
18 |
buildNumber=2065 |
|
19 |
gvSIG-version=2.0.0 |
|
20 |
name=Geoprocess\: gvSIG tools |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.176/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.tool/src/main/assembly/gvsig-plugin-package.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 |
</files> |
|
17 |
|
|
18 |
<fileSets> |
|
19 |
<fileSet> |
|
20 |
<directory>src/main/resources-plugin</directory> |
|
21 |
<outputDirectory>.</outputDirectory> |
|
22 |
</fileSet> |
|
23 |
</fileSets> |
|
24 |
|
|
25 |
|
|
26 |
<dependencySets> |
|
27 |
<dependencySet> |
|
28 |
<useProjectArtifact>false</useProjectArtifact> |
|
29 |
<useTransitiveDependencies>false</useTransitiveDependencies> |
|
30 |
<outputDirectory>lib</outputDirectory> |
|
31 |
<includes> |
|
32 |
<include>org.gvsig:org.gvsig.geoprocess.app.tool</include> |
|
33 |
</includes> |
|
34 |
</dependencySet> |
|
35 |
</dependencySets> |
|
36 |
</assembly> |
|
0 | 37 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.176/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.tool/src/main/java/org/gvsig/geoprocess/app/tool/SaveAsToolboxAction.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2012 gvSIG Association. |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
|
|
25 |
|
|
26 |
package org.gvsig.geoprocess.app.tool; |
|
27 |
|
|
28 |
import javax.swing.ImageIcon; |
|
29 |
|
|
30 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
|
31 |
import org.gvsig.i18n.Messages; |
|
32 |
import org.gvsig.raster.tools.app.basic.tool.saveas.SaveAsTocMenuEntry; |
|
33 |
|
|
34 |
/** |
|
35 |
* Input in Sextante framework for SaveAs tool |
|
36 |
* |
|
37 |
* @author <a href="mailto:nachobrodin@gmail.com">Nacho Brodin</a> |
|
38 |
*/ |
|
39 |
public class SaveAsToolboxAction extends AbstractToolboxAction { |
|
40 |
|
|
41 |
@Override |
|
42 |
public void execute() { |
|
43 |
if(!super.loadLayer()) |
|
44 |
return; |
|
45 |
SaveAsTocMenuEntry.getSingleton().execute(null, new FLayer[]{lyr}); |
|
46 |
} |
|
47 |
|
|
48 |
@Override |
|
49 |
public String getName() { |
|
50 |
return Messages.getText("save_as"); |
|
51 |
} |
|
52 |
|
|
53 |
public ImageIcon getIcon() { |
|
54 |
return (ImageIcon)SaveAsTocMenuEntry.getSingleton().getIcon(); |
|
55 |
} |
|
56 |
|
|
57 |
public boolean isPluginInstalled() { |
|
58 |
try { |
|
59 |
SaveAsTocMenuEntry.getSingleton(); |
|
60 |
} catch(Exception e) { |
|
61 |
return false; |
|
62 |
} catch(Error e) { |
|
63 |
return false; |
|
64 |
} |
|
65 |
return true; |
|
66 |
} |
|
67 |
} |
|
0 | 68 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.176/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.tool/src/main/java/org/gvsig/geoprocess/app/tool/AbstractToolboxAction.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2012 gvSIG Association. |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
|
|
25 |
package org.gvsig.geoprocess.app.tool; |
|
26 |
|
|
27 |
import org.gvsig.andami.PluginServices; |
|
28 |
import org.gvsig.andami.ui.mdiManager.IWindow; |
|
29 |
import org.gvsig.app.project.documents.view.gui.AbstractViewPanel; |
|
30 |
import org.gvsig.fmap.mapcontext.MapContext; |
|
31 |
import org.gvsig.fmap.mapcontext.layers.FLayers; |
|
32 |
import org.gvsig.geoprocess.lib.sextante.dataObjects.FLyrRasterIRasterLayer; |
|
33 |
import org.gvsig.i18n.Messages; |
|
34 |
import org.gvsig.raster.fmap.layers.FLyrRaster; |
|
35 |
import org.gvsig.raster.swing.RasterSwingLibrary; |
|
36 |
|
|
37 |
import es.unex.sextante.dataObjects.IRasterLayer; |
|
38 |
import es.unex.sextante.gui.core.SextanteGUI; |
|
39 |
import es.unex.sextante.gui.core.ToolboxAction; |
|
40 |
|
|
41 |
/** |
|
42 |
* Base class for toolBox actions |
|
43 |
* |
|
44 |
* @author <a href="mailto:nachobrodin@gmail.com">Nacho Brodin</a> |
|
45 |
*/ |
|
46 |
public abstract class AbstractToolboxAction extends ToolboxAction { |
|
47 |
protected FLyrRaster lyr = null; |
|
48 |
|
|
49 |
@Override |
|
50 |
public String getGroup() { |
|
51 |
return Messages.getText("group_tools"); |
|
52 |
} |
|
53 |
|
|
54 |
|
|
55 |
@Override |
|
56 |
public boolean isActive() { |
|
57 |
IWindow[] windows = PluginServices.getMDIManager().getAllWindows(); |
|
58 |
for (int i = 0; i < windows.length; i++) { |
|
59 |
if(windows[i] instanceof AbstractViewPanel) { |
|
60 |
FLayers lyrs = ((AbstractViewPanel)windows[i]).getMapControl().getMapContext().getLayers(); |
|
61 |
for (int j = 0; j < lyrs.getLayersCount(); j++) { |
|
62 |
if(lyrs.getLayer(j) instanceof FLyrRaster) |
|
63 |
return true; |
|
64 |
} |
|
65 |
} |
|
66 |
} |
|
67 |
return false; |
|
68 |
} |
|
69 |
|
|
70 |
/** |
|
71 |
* Returns true if the plugin which gives the functionality is installed |
|
72 |
* in gvSIG |
|
73 |
* @return |
|
74 |
*/ |
|
75 |
public abstract boolean isPluginInstalled(); |
|
76 |
|
|
77 |
/** |
|
78 |
* Loads the raster layer for the tool |
|
79 |
* @return |
|
80 |
*/ |
|
81 |
public boolean loadLayer() { |
|
82 |
if(!isPluginInstalled()) { |
|
83 |
RasterSwingLibrary.messageBoxError(Messages.getText("plugin_not_installed"), null); |
|
84 |
return false; |
|
85 |
} |
|
86 |
|
|
87 |
if(!isActive()) { |
|
88 |
RasterSwingLibrary.messageBoxError(Messages.getText("layer_not_valid"), null); |
|
89 |
return false; |
|
90 |
} |
|
91 |
|
|
92 |
boolean existsRasterButNotActive = false; |
|
93 |
lyr = null; |
|
94 |
IWindow[] windows = PluginServices.getMDIManager().getAllWindows(); |
|
95 |
MapContext mapCtx = null; |
|
96 |
for (int i = 0; i < windows.length; i++) { |
|
97 |
if(windows[i] instanceof AbstractViewPanel) { |
|
98 |
mapCtx = ((AbstractViewPanel)windows[i]).getMapControl().getMapContext(); |
|
99 |
break; |
|
100 |
} |
|
101 |
} |
|
102 |
|
|
103 |
IRasterLayer[] layers = SextanteGUI.getInputFactory().getRasterLayers(); |
|
104 |
for (int i = 0; i < layers.length; i++) { |
|
105 |
FLyrRaster l = (FLyrRaster)((FLyrRasterIRasterLayer)layers[i]).getBaseDataObject(); |
|
106 |
existsRasterButNotActive = true; |
|
107 |
if(l.isActive() && mapCtx == l.getMapContext()) { |
|
108 |
existsRasterButNotActive = false; |
|
109 |
lyr = l; |
|
110 |
break; |
|
111 |
} |
|
112 |
} |
|
113 |
|
|
114 |
if(existsRasterButNotActive) { |
|
115 |
RasterSwingLibrary.messageBoxError(Messages.getText("raster_layer_not_active"), null); |
|
116 |
return false; |
|
117 |
} |
|
118 |
|
|
119 |
return true; |
|
120 |
} |
|
121 |
|
|
122 |
} |
|
0 | 123 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.176/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.tool/src/main/java/org/gvsig/geoprocess/app/tool/ReprojectionToolboxAction.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2012 gvSIG Association. |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
|
|
25 |
|
|
26 |
package org.gvsig.geoprocess.app.tool; |
|
27 |
|
|
28 |
import javax.swing.ImageIcon; |
|
29 |
|
|
30 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
|
31 |
import org.gvsig.i18n.Messages; |
|
32 |
import org.gvsig.raster.reproject.app.ReprojectTocMenuEntry; |
|
33 |
|
|
34 |
/** |
|
35 |
* Input in Sextante framework for reprojection tool |
|
36 |
* |
|
37 |
* @author <a href="mailto:nachobrodin@gmail.com">Nacho Brodin</a> |
|
38 |
*/ |
|
39 |
public class ReprojectionToolboxAction extends AbstractToolboxAction { |
|
40 |
|
|
41 |
@Override |
|
42 |
public void execute() { |
|
43 |
if(!super.loadLayer()) |
|
44 |
return; |
|
45 |
|
|
46 |
ReprojectTocMenuEntry.getSingleton().execute(null, new FLayer[]{lyr}); |
|
47 |
} |
|
48 |
|
|
49 |
@Override |
|
50 |
public String getName() { |
|
51 |
return Messages.getText("reprojection"); |
|
52 |
} |
|
53 |
|
|
54 |
public ImageIcon getIcon() { |
|
55 |
return (ImageIcon)ReprojectTocMenuEntry.getSingleton().getIcon(); |
|
56 |
} |
|
57 |
|
|
58 |
public boolean isPluginInstalled() { |
|
59 |
try { |
|
60 |
ReprojectTocMenuEntry.getSingleton(); |
|
61 |
} catch(Exception e) { |
|
62 |
return false; |
|
63 |
} catch(Error e) { |
|
64 |
return false; |
|
65 |
} |
|
66 |
return true; |
|
67 |
} |
|
68 |
|
|
69 |
} |
|
0 | 70 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.176/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.tool/src/main/java/org/gvsig/geoprocess/app/tool/SetViewProjectionToolboxAction.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2012 gvSIG Association. |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
|
|
25 |
|
|
26 |
package org.gvsig.geoprocess.app.tool; |
|
27 |
|
|
28 |
import javax.swing.ImageIcon; |
|
29 |
|
|
30 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
|
31 |
import org.gvsig.i18n.Messages; |
|
32 |
import org.gvsig.raster.tools.app.basic.tool.setviewprojection.SetViewProjectionTocMenuEntry; |
|
33 |
|
|
34 |
/** |
|
35 |
* Input in Sextante framework for "SetViewProjection" tool |
|
36 |
* |
|
37 |
* @author <a href="mailto:nachobrodin@gmail.com">Nacho Brodin</a> |
|
38 |
*/ |
|
39 |
public class SetViewProjectionToolboxAction extends AbstractToolboxAction { |
|
40 |
|
|
41 |
@Override |
|
42 |
public void execute() { |
|
43 |
if(!super.loadLayer()) |
|
44 |
return; |
|
45 |
|
|
46 |
SetViewProjectionTocMenuEntry.getSingleton().execute(null, new FLayer[]{lyr}); |
|
47 |
} |
|
48 |
|
|
49 |
@Override |
|
50 |
public String getName() { |
|
51 |
return Messages.getText("set_view_projection"); |
|
52 |
} |
|
53 |
|
|
54 |
public ImageIcon getIcon() { |
|
55 |
return (ImageIcon)SetViewProjectionTocMenuEntry.getSingleton().getIcon(); |
|
56 |
} |
|
57 |
|
|
58 |
public boolean isPluginInstalled() { |
|
59 |
try { |
|
60 |
SetViewProjectionTocMenuEntry.getSingleton(); |
|
61 |
} catch(Exception e) { |
|
62 |
return false; |
|
63 |
} catch(Error e) { |
|
64 |
return false; |
|
65 |
} |
|
66 |
return true; |
|
67 |
} |
|
68 |
|
|
69 |
} |
|
0 | 70 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.176/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.tool/src/main/java/org/gvsig/geoprocess/app/tool/FilterToolboxAction.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2012 gvSIG Association. |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
|
|
25 |
package org.gvsig.geoprocess.app.tool; |
|
26 |
|
|
27 |
import javax.swing.ImageIcon; |
|
28 |
|
|
29 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
|
30 |
import org.gvsig.i18n.Messages; |
|
31 |
import org.gvsig.raster.tools.app.basic.tool.filter.FilterTocMenuEntry; |
|
32 |
|
|
33 |
/** |
|
34 |
* Input in Sextante framework for Radiometric enhancement tool |
|
35 |
* |
|
36 |
* @author <a href="mailto:nachobrodin@gmail.com">Nacho Brodin</a> |
|
37 |
*/ |
|
38 |
public class FilterToolboxAction extends AbstractToolboxAction { |
|
39 |
|
|
40 |
@Override |
|
41 |
public void execute() { |
|
42 |
if(!super.loadLayer()) |
|
43 |
return; |
|
44 |
|
|
45 |
FilterTocMenuEntry.getSingleton().execute(null, new FLayer[]{lyr}); |
|
46 |
} |
|
47 |
|
|
48 |
@Override |
|
49 |
public String getName() { |
|
50 |
return Messages.getText("filters"); |
|
51 |
} |
|
52 |
|
|
53 |
public ImageIcon getIcon() { |
|
54 |
return (ImageIcon)FilterTocMenuEntry.getSingleton().getIcon(); |
|
55 |
} |
|
56 |
|
|
57 |
public boolean isPluginInstalled() { |
|
58 |
try { |
|
59 |
FilterTocMenuEntry.getSingleton(); |
|
60 |
} catch(Exception e) { |
|
61 |
return false; |
|
62 |
} catch(Error e) { |
|
63 |
return false; |
|
64 |
} |
|
65 |
return true; |
|
66 |
} |
|
67 |
|
|
68 |
} |
|
0 | 69 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.176/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.tool/src/main/java/org/gvsig/geoprocess/app/tool/RasterAlgorithmsForSextanteExtension.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2012 gvSIG Association. |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
package org.gvsig.geoprocess.app.tool; |
|
25 |
|
|
26 |
import javax.swing.ImageIcon; |
|
27 |
|
|
28 |
import org.gvsig.andami.plugins.Extension; |
|
29 |
import org.gvsig.fmap.IconThemeHelper; |
|
30 |
import org.gvsig.geoprocess.sextante.gui.core.GUIFactory; |
|
31 |
import org.gvsig.i18n.Messages; |
|
32 |
|
|
33 |
/** |
|
34 |
* gvSIG raster algorithms for Sextante framework |
|
35 |
* @author <a href="mailto:nachobrodin@gmail.com">Nacho Brodin</a> |
|
36 |
*/ |
|
37 |
public class RasterAlgorithmsForSextanteExtension extends Extension { |
|
38 |
public void initialize() { |
|
39 |
ImageIcon ico = IconThemeHelper.getImageIcon("gvsig-icon16x16"); |
|
40 |
RadiometricEnhancementToolboxAction enhtool = new RadiometricEnhancementToolboxAction(); |
|
41 |
GUIFactory.registerExternalTool(Messages.getText("gv_tools"), ico, enhtool); |
|
42 |
ReprojectionToolboxAction reptool = new ReprojectionToolboxAction(); |
|
43 |
GUIFactory.registerExternalTool(Messages.getText("gv_tools"), ico, reptool); |
|
44 |
FilterToolboxAction filtool = new FilterToolboxAction(); |
|
45 |
GUIFactory.registerExternalTool(Messages.getText("gv_tools"), ico, filtool); |
|
46 |
ClipToolboxAction cliptool = new ClipToolboxAction(); |
|
47 |
GUIFactory.registerExternalTool(Messages.getText("gv_tools"), ico, cliptool); |
|
48 |
OverviewsToolboxAction overtool = new OverviewsToolboxAction(); |
|
49 |
GUIFactory.registerExternalTool(Messages.getText("gv_tools"), ico, overtool); |
|
50 |
SaveAsToolboxAction savetool = new SaveAsToolboxAction(); |
|
51 |
GUIFactory.registerExternalTool(Messages.getText("gv_tools"), ico, savetool); |
|
52 |
LayerDatatypeToolboxAction lyrtool = new LayerDatatypeToolboxAction(); |
|
53 |
GUIFactory.registerExternalTool(Messages.getText("gv_tools"), ico, lyrtool); |
|
54 |
SetViewProjectionToolboxAction setviewtool = new SetViewProjectionToolboxAction(); |
|
55 |
GUIFactory.registerExternalTool(Messages.getText("gv_tools"), ico, setviewtool); |
|
56 |
PrincipalComponentsToolboxAction cpatool = new PrincipalComponentsToolboxAction(); |
|
57 |
GUIFactory.registerExternalTool(Messages.getText("gv_tools"), ico, cpatool); |
|
58 |
} |
|
59 |
|
|
60 |
public void execute(String actionCommand) { |
|
61 |
} |
|
62 |
|
|
63 |
public boolean isEnabled() { |
|
64 |
return true; |
|
65 |
} |
|
66 |
|
|
67 |
public boolean isVisible() { |
|
68 |
return true; |
|
69 |
} |
|
70 |
} |
|
0 | 71 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.176/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.tool/src/main/java/org/gvsig/geoprocess/app/tool/ClipToolboxAction.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2012 gvSIG Association. |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
|
|
25 |
|
|
26 |
package org.gvsig.geoprocess.app.tool; |
|
27 |
|
|
28 |
import javax.swing.ImageIcon; |
|
29 |
|
|
30 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
|
31 |
import org.gvsig.i18n.Messages; |
|
32 |
import org.gvsig.raster.tools.app.basic.tool.clip.ClippingTocMenuEntry; |
|
33 |
|
|
34 |
/** |
|
35 |
* Input in Sextante framework for clip tool |
|
36 |
* |
|
37 |
* @author <a href="mailto:nachobrodin@gmail.com">Nacho Brodin</a> |
|
38 |
*/ |
|
39 |
public class ClipToolboxAction extends AbstractToolboxAction { |
|
40 |
|
|
41 |
@Override |
|
42 |
public void execute() { |
|
43 |
if(!super.loadLayer()) |
|
44 |
return; |
|
45 |
|
|
46 |
ClippingTocMenuEntry.getSingleton().execute(null, new FLayer[]{lyr}); |
|
47 |
} |
|
48 |
|
|
49 |
@Override |
|
50 |
public String getName() { |
|
51 |
return Messages.getText("clip_raster"); |
|
52 |
} |
|
53 |
|
|
54 |
public ImageIcon getIcon() { |
|
55 |
return (ImageIcon)ClippingTocMenuEntry.getSingleton().getIcon(); |
|
56 |
} |
|
57 |
|
|
58 |
public boolean isPluginInstalled() { |
|
59 |
try { |
|
60 |
ClippingTocMenuEntry.getSingleton(); |
|
61 |
} catch(Exception e) { |
|
62 |
return false; |
|
63 |
} catch(Error e) { |
|
64 |
return false; |
|
65 |
} |
|
66 |
return true; |
|
67 |
} |
|
68 |
|
|
69 |
} |
|
0 | 70 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.176/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.tool/src/main/java/org/gvsig/geoprocess/app/tool/PrincipalComponentsToolboxAction.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2012 gvSIG Association. |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
|
|
25 |
|
|
26 |
package org.gvsig.geoprocess.app.tool; |
|
27 |
|
|
28 |
import javax.swing.ImageIcon; |
|
29 |
|
|
30 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
|
31 |
import org.gvsig.i18n.Messages; |
|
32 |
import org.gvsig.raster.principalcomponents.app.PrincipalComponentsTocMenuEntry; |
|
33 |
|
|
34 |
/** |
|
35 |
* Input in Sextante framework for Principal Components tool |
|
36 |
* |
|
37 |
* @author <a href="mailto:nachobrodin@gmail.com">Nacho Brodin</a> |
|
38 |
*/ |
|
39 |
public class PrincipalComponentsToolboxAction extends AbstractToolboxAction { |
|
40 |
|
|
41 |
@Override |
|
42 |
public String getGroup() { |
|
43 |
return Messages.getText("multispectral"); |
|
44 |
} |
|
45 |
|
|
46 |
@Override |
|
47 |
public void execute() { |
|
48 |
if(!super.loadLayer()) |
|
49 |
return; |
|
50 |
PrincipalComponentsTocMenuEntry.getSingleton().execute(null, new FLayer[]{lyr}); |
|
51 |
} |
|
52 |
|
|
53 |
@Override |
|
54 |
public String getName() { |
|
55 |
return Messages.getText("principalcomponents"); |
|
56 |
} |
|
57 |
|
|
58 |
public ImageIcon getIcon() { |
|
59 |
return (ImageIcon)PrincipalComponentsTocMenuEntry.getSingleton().getIcon(); |
|
60 |
} |
|
61 |
|
|
62 |
public boolean isPluginInstalled() { |
|
63 |
try { |
|
64 |
PrincipalComponentsTocMenuEntry.getSingleton(); |
|
65 |
} catch(Exception e) { |
|
66 |
return false; |
|
67 |
} catch(Error e) { |
|
68 |
return false; |
|
69 |
} |
|
70 |
return true; |
|
71 |
} |
|
72 |
} |
|
0 | 73 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.176/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.tool/src/main/java/org/gvsig/geoprocess/app/tool/LayerDatatypeToolboxAction.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2012 gvSIG Association. |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
|
|
25 |
|
|
26 |
package org.gvsig.geoprocess.app.tool; |
|
27 |
|
|
28 |
import javax.swing.ImageIcon; |
|
29 |
|
|
30 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
|
31 |
import org.gvsig.i18n.Messages; |
|
32 |
import org.gvsig.raster.tools.app.basic.tool.layerdatatype.LayerDatatypeTocMenuEntry; |
|
33 |
|
|
34 |
/** |
|
35 |
* Input in Sextante framework for layer datatype tool |
|
36 |
* |
|
37 |
* @author <a href="mailto:nachobrodin@gmail.com">Nacho Brodin</a> |
|
38 |
*/ |
|
39 |
public class LayerDatatypeToolboxAction extends AbstractToolboxAction { |
|
40 |
|
|
41 |
@Override |
|
42 |
public void execute() { |
|
43 |
if(!super.loadLayer()) |
|
44 |
return; |
|
45 |
LayerDatatypeTocMenuEntry.getSingleton().execute(null, new FLayer[]{lyr}); |
|
46 |
} |
|
47 |
|
|
48 |
@Override |
|
49 |
public String getName() { |
|
50 |
return Messages.getText("layer_datatype"); |
|
51 |
} |
|
52 |
|
|
53 |
public ImageIcon getIcon() { |
|
54 |
return (ImageIcon)LayerDatatypeTocMenuEntry.getSingleton().getIcon(); |
|
55 |
} |
|
56 |
|
|
57 |
public boolean isPluginInstalled() { |
|
58 |
try { |
|
59 |
LayerDatatypeTocMenuEntry.getSingleton(); |
|
60 |
} catch(Exception e) { |
|
61 |
return false; |
|
62 |
} catch(Error e) { |
|
63 |
return false; |
|
64 |
} |
|
65 |
return true; |
|
66 |
} |
|
67 |
|
|
68 |
} |
|
0 | 69 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.176/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.tool/src/main/java/org/gvsig/geoprocess/app/tool/RadiometricEnhancementToolboxAction.java | ||
---|---|---|
1 |
/** |
|
2 |
* gvSIG. Desktop Geographic Information System. |
|
3 |
* |
|
4 |
* Copyright (C) 2007-2012 gvSIG Association. |
|
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 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com. |
|
23 |
*/ |
|
24 |
|
|
25 |
package org.gvsig.geoprocess.app.tool; |
|
26 |
|
|
27 |
import javax.swing.ImageIcon; |
|
28 |
|
|
29 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
|
30 |
import org.gvsig.i18n.Messages; |
|
31 |
import org.gvsig.raster.tools.app.basic.tool.enhanced.EnhancedTocMenuEntry; |
|
32 |
|
|
33 |
/** |
|
34 |
* Input in Sextante framework for Radiometric enhancement tool |
Also available in: Unified diff