Revision 1143

View differences:

org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.103/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.103</version>
10

  
11
	<parent>
12
		<groupId>org.gvsig</groupId>
13
		<artifactId>org.gvsig.desktop</artifactId>
14
                <version>2.0.241</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.92</org.gvsig.raster.version>
21
		<org.gvsig.toolbox.version>1.0.60</org.gvsig.toolbox.version>
22
	</properties>
23
	<scm>
24
		<connection>scm:svn:https://devel.gvsig.org/svn/gvsig-geoprocess/org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.103</connection>
25
		<developerConnection>scm:svn:https://devel.gvsig.org/svn/gvsig-geoprocess/org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.103</developerConnection>
26
		<url>https://devel.gvsig.org/redmine/projects/gvsig-geoprocess/repository/show/org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.103</url>
27
	</scm>
28

  
29
	<repositories>
30
		<repository>
31
			<id>gvsig-public-http-repository</id>
32
			<name>gvSIG maven public HTTP repository</name>
33
			<url>http://devel.gvsig.org/m2repo/j2se</url>
34
			<releases>
35
				<enabled>true</enabled>
36
				<updatePolicy>daily</updatePolicy>
37
				<checksumPolicy>warn</checksumPolicy>
38
			</releases>
39
			<snapshots>
40
				<enabled>true</enabled>
41
				<updatePolicy>daily</updatePolicy>
42
				<checksumPolicy>warn</checksumPolicy>
43
			</snapshots>
44
		</repository>
45
	</repositories>
46

  
47
	<dependencyManagement>
48
		<dependencies>
49
			<dependency>
50
				<groupId>org.gvsig</groupId>
51
				<artifactId>org.gvsig.raster</artifactId>
52
				<version>${org.gvsig.raster.version}</version>
53
				<type>pom</type>
54
				<scope>import</scope>
55
			</dependency>
56
			<dependency>
57
				<groupId>org.gvsig</groupId>
58
				<artifactId>org.gvsig.toolbox</artifactId>
59
				<version>${org.gvsig.toolbox.version}</version>
60
				<type>pom</type>
61
				<scope>import</scope>
62
			</dependency>
63
			<dependency>
64
				<groupId>org.gvsig</groupId>
65
				<artifactId>org.gvsig.geoprocess.app.mainplugin</artifactId>
66
				<version>2.2.103</version>
67
			</dependency>
68
			<dependency>
69
				<groupId>org.gvsig</groupId>
70
				<artifactId>org.gvsig.geoprocess.lib.api</artifactId>
71
				<version>2.2.103</version>
72
			</dependency>
73
			<dependency>
74
				<groupId>org.gvsig</groupId>
75
				<artifactId>org.gvsig.geoprocess.lib.sextante</artifactId>
76
				<version>2.2.103</version>
77
			</dependency>
78
			<dependency>
79
				<groupId>org.gvsig</groupId>
80
				<artifactId>org.gvsig.geoprocess.algorithm.base</artifactId>
81
				<version>2.2.103</version>
82
			</dependency>
83
			<dependency>
84
				<groupId>org.gvsig</groupId>
85
				<artifactId>org.gvsig.geoprocess.algorithm.buffer</artifactId>
86
				<version>2.2.103</version>
87
			</dependency>
88
			<dependency>
89
				<groupId>org.gvsig</groupId>
90
				<artifactId>org.gvsig.geoprocess.algorithm.clip</artifactId>
91
				<version>2.2.103</version>
92
			</dependency>
93
			<dependency>
94
				<groupId>org.gvsig</groupId>
95
				<artifactId>org.gvsig.geoprocess.algorithm.convexhull</artifactId>
96
				<version>2.2.103</version>
97
			</dependency>
98
			<dependency>
99
				<groupId>org.gvsig</groupId>
100
				<artifactId>org.gvsig.geoprocess.algorithm.difference</artifactId>
101
				<version>2.2.103</version>
102
			</dependency>
103
			<dependency>
104
				<groupId>org.gvsig</groupId>
105
				<artifactId>org.gvsig.geoprocess.algorithm.dissolve</artifactId>
106
				<version>2.2.103</version>
107
			</dependency>
108
			<dependency>
109
				<groupId>org.gvsig</groupId>
110
				<artifactId>org.gvsig.geoprocess.algorithm.fusespatially</artifactId>
111
				<version>2.2.103</version>
112
			</dependency>
113
			<dependency>
114
				<groupId>org.gvsig</groupId>
115
				<artifactId>org.gvsig.geoprocess.algorithm.intersection</artifactId>
116
				<version>2.2.103</version>
117
			</dependency>
118
			<dependency>
119
				<groupId>org.gvsig</groupId>
120
				<artifactId>org.gvsig.geoprocess.algorithm.merge</artifactId>
121
				<version>2.2.103</version>
122
			</dependency>
123
			<dependency>
124
				<groupId>org.gvsig</groupId>
125
				<artifactId>org.gvsig.geoprocess.algorithm.reproject</artifactId>
126
				<version>2.2.103</version>
127
			</dependency>
128
			<dependency>
129
				<groupId>org.gvsig</groupId>
130
				<artifactId>org.gvsig.geoprocess.algorithm.spatialjoin</artifactId>
131
				<version>2.2.103</version>
132
			</dependency>
133
			<dependency>
134
				<groupId>org.gvsig</groupId>
135
				<artifactId>org.gvsig.geoprocess.algorithm.union</artifactId>
136
				<version>2.2.103</version>
137
			</dependency>
138
			<dependency>
139
				<groupId>org.gvsig</groupId>
140
				<artifactId>org.gvsig.geoprocess.algorithm.xyshift</artifactId>
141
				<version>2.2.103</version>
142
			</dependency>
143
			<dependency>
144
				<groupId>org.gvsig</groupId>
145
				<artifactId>org.gvsig.geoprocess.algorithm.groupby</artifactId>
146
				<version>2.2.103</version>
147
			</dependency>
148
			<dependency>
149
				<groupId>org.gvsig</groupId>
150
				<artifactId>org.gvsig.geoprocess.algorithm.lateralbuffer</artifactId>
151
				<version>2.2.103</version>
152
			</dependency>
153
			<dependency>
154
				<groupId>org.gvsig</groupId>
155
				<artifactId>org.gvsig.geoprocess.algorithm.splitlines</artifactId>
156
				<version>2.2.103</version>
157
			</dependency>
158
      <dependency>
159
        <groupId>org.gvsig</groupId>
160
        <artifactId>org.gvsig.geoprocess.algorithm.dispersepoints</artifactId>
161
        <version>2.2.103</version>
162
      </dependency>
163
			<dependency>
164
				<groupId>org.japura</groupId>
165
				<artifactId>org.japura</artifactId>
166
				<version>1.14.0</version>
167
			</dependency>
168
  <dependency>
169
    <groupId>org.mapdb</groupId>
170
    <artifactId>mapdb</artifactId>
171
    <version>3.0.5</version>
172
  </dependency>
173

  
174

  
175
          <dependency>
176
            <groupId>org.jetbrains.kotlin</groupId>
177
            <artifactId>kotlin-stdlib</artifactId>
178
            <version>1.0.7</version>
179
          </dependency>
180

  
181
          <dependency>
182
            <groupId>org.jetbrains.kotlin</groupId>
183
            <artifactId>kotlin-runtime</artifactId>
184
            <version>1.0.7</version>
185
          </dependency>
186

  
187
          <dependency>
188
            <groupId>org.eclipse.collections</groupId>
189
            <artifactId>eclipse-collections-api</artifactId>
190
            <version>7.1.1</version>
191
          </dependency>
192

  
193
          <dependency>
194
            <groupId>net.jcip</groupId>
195
            <artifactId>jcip-annotations</artifactId>
196
            <version>1.0</version>
197
          </dependency>
198

  
199
          <dependency>
200
            <groupId>org.eclipse.collections</groupId>
201
            <artifactId>eclipse-collections</artifactId>
202
            <version>7.1.1</version>
203
          </dependency>
204

  
205
          <dependency>
206
            <groupId>org.eclipse.collections</groupId>
207
            <artifactId>eclipse-collections-forkjoin</artifactId>
208
            <version>7.1.1</version>
209
          </dependency>
210

  
211
          <dependency>
212
            <groupId>com.google.guava</groupId>
213
            <artifactId>guava</artifactId>
214
            <version>19.0</version>
215
          </dependency>
216

  
217
          <dependency>
218
            <groupId>net.jpountz.lz4</groupId>
219
            <artifactId>lz4</artifactId>
220
            <version>1.3.0</version>
221
          </dependency>
222

  
223
          <dependency>
224
            <groupId>org.mapdb</groupId>
225
            <artifactId>elsa</artifactId>
226
            <version>3.0.0-M5</version>
227
          </dependency>
228

  
229
		</dependencies>
230
	</dependencyManagement>
231

  
232
	<build>
233
		<plugins>
234
			<plugin>
235
				<groupId>org.apache.maven.plugins</groupId>
236
				<artifactId>maven-release-plugin</artifactId>
237
				<configuration>
238
					<tagBase>https://devel.gvsig.org/svn/gvsig-geoprocess/org.gvsig.geoprocess/tags/</tagBase>
239
					<goals>deploy</goals>
240
				</configuration>
241
			</plugin>
242

  
243
			<plugin>
244
				<groupId>org.apache.maven.plugins</groupId>
245
				<artifactId>maven-compiler-plugin</artifactId>
246
				<version>2.0.2</version>
247
				<configuration>
248
					<source>1.6</source>
249
					<target>1.6</target>
250
					<encoding>ISO-8859-1</encoding>
251
				</configuration>
252
			</plugin>
253

  
254
<!-- 			<plugin>
255
				<groupId>org.codehaus.mojo</groupId>
256
				<artifactId>animal-sniffer-maven-plugin</artifactId>
257
				<executions>
258
					<execution>
259
						<id>check-java-api</id>
260
						<phase>test</phase>
261
						<goals>
262
							<goal>check</goal>
263
						</goals>
264
						<configuration>
265
							<signature>
266
								<groupId>org.codehaus.mojo.signature
267
								</groupId>
268
								<artifactId>java16</artifactId>
269
								<version>1.0</version>
270
							</signature>
271
						</configuration>
272
					</execution>
273
				</executions>
274
			</plugin> -->
275

  
276
		</plugins>
277
	</build>
278

  
279
	<modules>
280
		<module>org.gvsig.geoprocess.lib</module>
281
		<module>org.gvsig.geoprocess.app</module>
282
		<module>org.gvsig.geoprocess.algorithm</module>
283
	</modules>
284
</project>
0 285

  
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.103/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.103/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.103/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.103/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.103/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.103/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.103/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.103/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.103/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.103/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.103/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.103/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.103/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.103/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
35
 * 
36
 * @author <a href="mailto:nachobrodin@gmail.com">Nacho Brodin</a>
37
 */
38
public class RadiometricEnhancementToolboxAction extends AbstractToolboxAction {
39
   
40
   @Override
41
   public void execute() {
42
	   if(!super.loadLayer())
43
		   return;
44

  
45
	   EnhancedTocMenuEntry.getSingleton().execute(null, new FLayer[]{lyr}); 
46
   }
47

  
48

  
49
   @Override
50
   public String getName() {
51
      return Messages.getText("radiometric_enhancedment");
52
   }
53

  
54
   public ImageIcon getIcon() {
55
	   return (ImageIcon)EnhancedTocMenuEntry.getSingleton().getIcon();
56
   }
57
   
58
   public boolean isPluginInstalled() {
59
		try {
60
			EnhancedTocMenuEntry.getSingleton();
61
		} catch(Exception e) {
62
			return false;
63
		} catch(Error e) {
64
			return false;
65
		}
66
		return true;
67
	}
68
}
0 69

  
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.103/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.tool/src/main/java/org/gvsig/geoprocess/app/tool/OverviewsToolboxAction.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.overview.OverviewsTocMenuEntry;
33

  
34
/**
35
 * Input in Sextante framework for overview tool
36
 * 
37
 * @author <a href="mailto:nachobrodin@gmail.com">Nacho Brodin</a>
38
 */
39
public class OverviewsToolboxAction extends AbstractToolboxAction {
40
	
41
	@Override
42
	public void execute() {
43
		if(!super.loadLayer())
44
			return;
45
		
46
		OverviewsTocMenuEntry.getSingleton().execute(null, new FLayer[]{lyr}); 
47
	}
48

  
49
	@Override
50
	public String getName() {
51
		return Messages.getText("overviews");
52
	}
53

  
54
	public ImageIcon getIcon() {
55
		return (ImageIcon)OverviewsTocMenuEntry.getSingleton().getIcon();
56
	}
57

  
58
	public boolean isPluginInstalled() {
59
		try {
60
			OverviewsTocMenuEntry.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.103/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.tool/src/main/resources-plugin/text.properties
1
gv_tools=gvSIG Herramientas
2
group_tools=Capas raster
3
radiometric_enhancedment=Realce radiom?trico
4
raster_layer_not_active=Esta herramienta necesita una capa raster seleccionada en la vista
5
reprojection=Reproyecci?n
6
filters=Filtros
7
clip_raster=Recortar
8
save_as=Exportar
9
overviews=Overviews
10
layer_datatype=Cambiar tipo de dato
11
layer_not_valid=No hay capas v?lidas en la vista activa
12
plugin_not_installed=El plugin que aporta esta funcionalidad no est? instalado
13
set_view_projection=Asignar la proyeccci?n de la vista a la capa
14
principalcomponents=Componentes Principales
15
multispectral=Raster multiespectral
0 16

  
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.103/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.tool/src/main/resources-plugin/text_en.properties
1
gv_tools=gvSIG Tools
2
group_tools=Tools for raster layers
3
radiometric_enhancedment=Radiometric enhancedment
4
raster_layer_not_active=This tool needs a raster layer selected in the view
5
reprojection=Reprojection
6
filters=Filters
7
clip_raster=Clip
8
save_as=Export
9
overviews=Overviews
10
layer_datatype=Change data type
11
layer_not_valid=There is not valid layers in the active view
12
plugin_not_installed=The plugin which gives this functionality is not installed
13
set_view_projection=Set the layer projection
14
principalcomponents=Principal Components
15
multispectral=Multispectral raster
0 16

  
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.103/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.tool/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
	<depends plugin-name="org.gvsig.raster.tools.app.basic" optional="true" />
30
	<depends plugin-name="org.gvsig.raster.reproject.app.reprojectclient" optional="true" />
31
	
32
	<!-- Deber?a usarse el flag optional=true pero este no funciona para este caso -->
33
	<depends plugin-name="org.gvsig.raster.principalcomponents.app.principalcomponentsclient" optional="true" />
34
	<resourceBundle name="text" />
35
	<libraries library-dir="lib" />
36
	<extensions>
37
		<extension class-name="org.gvsig.geoprocess.app.tool.RasterAlgorithmsForSextanteExtension"
38
			active="true" 
39
			priority="1">
40
		</extension>
41
	</extensions>
42
</plugin-config>
0 43

  
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.103/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.tool/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.tool</artifactId>
4
	<packaging>jar</packaging>
5
	<name>Geoprocess: gvSIG tools</name>
6
	<description>Tools of gvSIG integrated in the geoprocess framework</description>
7

  
8
	<parent>
9
		<groupId>org.gvsig</groupId>
10
		<artifactId>org.gvsig.geoprocess.app</artifactId>
11
		<version>2.2.0-SNAPSHOT</version>
12
	</parent>
13

  
14
	<dependencies>
15
	    <dependency>
16
            <groupId>org.gvsig</groupId>
17
            <artifactId>org.gvsig.metadata.lib.basic.api</artifactId>
18
            <scope>compile</scope>
19
        </dependency>
20
        <dependency>
21
            <groupId>org.gvsig</groupId>
22
            <artifactId>org.gvsig.raster.principalcomponents.app.principalcomponentsclient</artifactId>
23
            <scope>compile</scope>
24
        </dependency>
25
		<dependency>
26
            <groupId>org.gvsig</groupId>
27
            <artifactId>org.gvsig.raster.reproject.app.reprojectclient</artifactId>
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff