Revision 574
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.8/prepare-workspace.xml | ||
---|---|---|
1 |
<!-- |
|
2 |
|
|
3 |
gvSIG. Desktop Geographic Information System. |
|
4 |
|
|
5 |
Copyright (C) 2007-2012 gvSIG Association. |
|
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
|
8 |
modify it under the terms of the GNU General Public License |
|
9 |
as published by the Free Software Foundation; either version 2 |
|
10 |
of the License, or (at your option) any later version. |
|
11 |
|
|
12 |
This program is distributed in the hope that it will be useful, |
|
13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 |
GNU General Public License for more details. |
|
16 |
|
|
17 |
You should have received a copy of the GNU General Public License |
|
18 |
along with this program; if not, write to the Free Software |
|
19 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
|
20 |
MA 02110-1301, USA. |
|
21 |
|
|
22 |
For any additional information, do not hesitate to contact us |
|
23 |
at info AT gvsig.com, or visit our website www.gvsig.com. |
|
24 |
|
|
25 |
--> |
|
26 |
<project name="org.gvsig.initial.build" default="prepare-workspace"> |
|
27 |
|
|
28 |
<dirname property="org.gvsig.initial.build.basedir" file="${ant.file.org.gvsig.initial.build}" /> |
|
29 |
|
|
30 |
<property name="workspace.basedir" value="${org.gvsig.initial.build.basedir}/.." /> |
|
31 |
<property name="build.basedir" value="${workspace.basedir}/org.gvsig.maven.base.build" description="Eclipse workspace location" /> |
|
32 |
<property name="build.jar.version" value="1.0.8-SNAPSHOT" /> |
|
33 |
<property name="build.jar.file" value="org.gvsig.maven.base.build-${build.jar.version}.jar" /> |
|
34 |
|
|
35 |
<property name="ant.libs.dir" location="${build.basedir}" description="Additional ant tasks libs folder" /> |
|
36 |
|
|
37 |
<target name="check-maven-base-build-available"> |
|
38 |
<available file="${user.home}/.m2/repository/org/gvsig/org.gvsig.maven.base.build/${build.jar.version}/${build.jar.file}" property="maven-base-build-available" /> |
|
39 |
</target> |
|
40 |
|
|
41 |
<target name="get-maven-base-build-local" depends="check-maven-base-build-available" if="maven-base-build-available"> |
|
42 |
<!-- Unzip de build jar file from the maven repository into the workspace root folder --> |
|
43 |
<copy todir="${workspace.basedir}" preservelastmodified="false" filtering="false"> |
|
44 |
<zipfileset src="${user.home}/.m2/repository/org/gvsig/org.gvsig.maven.base.build/${build.jar.version}/${build.jar.file}"> |
|
45 |
<patternset> |
|
46 |
<exclude name="META-INF/**" /> |
|
47 |
</patternset> |
|
48 |
</zipfileset> |
|
49 |
</copy> |
|
50 |
</target> |
|
51 |
|
|
52 |
<target name="get-maven-base-build-remote" depends="check-maven-base-build-available" unless="maven-base-build-available"> |
|
53 |
<mkdir dir="target" /> |
|
54 |
|
|
55 |
<!-- Download the build jar file --> |
|
56 |
<get src="http://devel.gvsig.org/m2repo/j2se/org/gvsig/org.gvsig.maven.base.build/${build.jar.version}/${build.jar.file}" dest="target/${build.jar.file}" verbose="true" /> |
|
57 |
|
|
58 |
<!-- Unzip de build jar file into the workspace root folder --> |
|
59 |
<copy todir="${workspace.basedir}" preservelastmodified="false" filtering="false"> |
|
60 |
<zipfileset src="target/${build.jar.file}"> |
|
61 |
<patternset> |
|
62 |
<exclude name="META-INF/**" /> |
|
63 |
</patternset> |
|
64 |
</zipfileset> |
|
65 |
</copy> |
|
66 |
|
|
67 |
</target> |
|
68 |
|
|
69 |
<target name="find.depends.natives.file"> |
|
70 |
<condition property="depends.natives.file.exists"> |
|
71 |
<available file="${org.gvsig.initial.build.basedir}/DEPENDS_ON_NATIVE_LIBRARIES"/> |
|
72 |
</condition> |
|
73 |
</target> |
|
74 |
|
|
75 |
<target name="find.gvsig.platform.properties.file" |
|
76 |
depends="find.depends.natives.file" |
|
77 |
if="depends.natives.file.exists"> |
|
78 |
<condition property="gvsig.platform.exists"> |
|
79 |
<available file="${user.home}/.gvsig.platform.properties"/> |
|
80 |
</condition> |
|
81 |
</target> |
|
82 |
|
|
83 |
<target name="check.gvsig.platform.properties" |
|
84 |
depends="find.gvsig.platform.properties.file"> |
|
85 |
<fail if="depends.natives.file.exists" unless="gvsig.platform.exists"> |
|
86 |
ERROR!! |
|
87 |
|
|
88 |
You have to define your gvSIG platform properties, |
|
89 |
by creating the file: ${user.home}/.gvsig.platform.properties |
|
90 |
with the following content: |
|
91 |
|
|
92 |
native_platform=linux |
|
93 |
native_distribution=all |
|
94 |
native_compiler=gcc4 |
|
95 |
native_arch=i386 |
|
96 |
native_libraryType=dynamic |
|
97 |
export native_classifier=${native_platform}-${native_distribution}-${native_compiler}-${native_arch}-${native_libraryType} |
|
98 |
|
|
99 |
Replace the fifth initial variables values with the ones appropiate |
|
100 |
to your platform. |
|
101 |
|
|
102 |
If you use maven in the command line, you can use the previous file also |
|
103 |
to define the MAVEN_OPTS environment variable, by adding to your |
|
104 |
.bash_rc file something like this: |
|
105 |
|
|
106 |
if [ -f "${HOME}/.gvsig.platform.properties" ] |
|
107 |
then |
|
108 |
. ${HOME}/.gvsig.platform.properties |
|
109 |
export MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=64m -Dnative_classifier=${native_classifier}" |
|
110 |
else |
|
111 |
export MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=64m" |
|
112 |
fi |
|
113 |
|
|
114 |
It will work if you use the bash shell. In any other case or platform, you'll |
|
115 |
have to define your MAVEN_OPTS environment variable and set the |
|
116 |
"native_classifier" parameter directly. |
|
117 |
</fail> |
|
118 |
|
|
119 |
</target> |
|
120 |
|
|
121 |
<target name="prepare-workspace" depends="get-maven-base-build-local,get-maven-base-build-remote,check.gvsig.platform.properties"> |
|
122 |
|
|
123 |
<mkdir dir="target" /> |
|
124 |
|
|
125 |
<chmod dir="${build.basedir}/maven/bin" perm="u+x" includes="m2,mvn,mvnDebug" /> |
|
126 |
|
|
127 |
<!-- Copy the maven launchers to the workspace metadata folder --> |
|
128 |
<copy todir="${workspace.basedir}/.metadata"> |
|
129 |
<fileset dir="${build.basedir}/eclipse-launchers"> |
|
130 |
<exclude name="**/org.eclipse.jdt.core.prefs" /> |
|
131 |
<exclude name="**/org.eclipse.core.variables.prefs" /> |
|
132 |
</fileset> |
|
133 |
</copy> |
|
134 |
|
|
135 |
<concat destfile="${workspace.basedir}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs" append="true"> |
|
136 |
<filelist dir="${build.basedir}/eclipse-launchers/.plugins/org.eclipse.core.runtime/.settings" files="org.eclipse.jdt.core.prefs" /> |
|
137 |
</concat> |
|
138 |
<concat destfile="${workspace.basedir}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.variables.prefs" append="true"> |
|
139 |
<filelist dir="${build.basedir}/eclipse-launchers/.plugins/org.eclipse.core.runtime/.settings" files="org.eclipse.core.variables.prefs" /> |
|
140 |
</concat> |
|
141 |
|
|
142 |
<!-- Configure the eclipse workspace --> |
|
143 |
<ant antfile="${build.basedir}/maven-goals.xml" target="mvn-configure-eclipse-workspace" /> |
|
144 |
|
|
145 |
<!-- Configure the gvSIG profile --> |
|
146 |
<ant antfile="${build.basedir}/check-gvsig-profile.xml" /> |
|
147 |
|
|
148 |
<property name="user-settings-file-location" value="${user.home}/.m2/settings.xml" /> |
|
149 |
|
|
150 |
<taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask"> |
|
151 |
<classpath> |
|
152 |
<pathelement location="${ant.libs.dir}/com.oopsconsultancy.xmltask-1.16.1.jar" /> |
|
153 |
</classpath> |
|
154 |
</taskdef> |
|
155 |
|
|
156 |
<xmltask source="${user-settings-file-location}" dest="${user-settings-file-location}"> |
|
157 |
<copy path="//:settings/:profiles/:profile[:id/text() = 'gvsig-install']/:properties/:gvsig.install.dir/text()" property="current-gvsig-location" /> |
|
158 |
</xmltask> |
|
159 |
|
|
160 |
<replace file="${workspace.basedir}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs" token="@GVSIG_HOME@" value="${current-gvsig-location}" /> |
|
161 |
<replace file="${workspace.basedir}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.variables.prefs" token="@GVSIG_HOME@" value="${current-gvsig-location}" /> |
|
162 |
|
|
163 |
<!-- Compile, install and generate eclipse projects --> |
|
164 |
<ant antfile="${build.basedir}/maven-goals.xml" target="mvn-install-and-eclipse-eclipse" /> |
|
165 |
|
|
166 |
<echo>INFORMATION!!!</echo> |
|
167 |
<echo>Restart eclipse and then proceed to import the subprojects contained into the main project</echo> |
|
168 |
|
|
169 |
<!-- TODO: copiar al proyecto de configuración general --> |
|
170 |
</target> |
|
171 |
|
|
172 |
<target name="clean"> |
|
173 |
<delete dir="target" /> |
|
174 |
</target> |
|
175 |
|
|
176 |
</project> |
|
0 | 177 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.8/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.8</version> |
|
10 |
|
|
11 |
<parent> |
|
12 |
<groupId>org.gvsig</groupId> |
|
13 |
<artifactId>org.gvsig.raster</artifactId> |
|
14 |
<version>2.2.6</version> |
|
15 |
</parent> |
|
16 |
|
|
17 |
<scm> |
|
18 |
<connection>scm:svn:https://devel.gvsig.org/svn/gvsig-geoprocess/org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.8</connection> |
|
19 |
<developerConnection>scm:svn:https://devel.gvsig.org/svn/gvsig-geoprocess/org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.8</developerConnection> |
|
20 |
<url>https://devel.gvsig.org/redmine/projects/gvsig-geoprocess/repository/show/org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.8</url> |
|
21 |
</scm> |
|
22 |
|
|
23 |
<repositories> |
|
24 |
<repository> |
|
25 |
<id>gvsig-public-http-repository</id> |
|
26 |
<name>gvSIG maven public HTTP repository</name> |
|
27 |
<url>http://devel.gvsig.org/m2repo/j2se</url> |
|
28 |
<releases> |
|
29 |
<enabled>true</enabled> |
|
30 |
<updatePolicy>daily</updatePolicy> |
|
31 |
<checksumPolicy>warn</checksumPolicy> |
|
32 |
</releases> |
|
33 |
<snapshots> |
|
34 |
<enabled>true</enabled> |
|
35 |
<updatePolicy>daily</updatePolicy> |
|
36 |
<checksumPolicy>warn</checksumPolicy> |
|
37 |
</snapshots> |
|
38 |
</repository> |
|
39 |
</repositories> |
|
40 |
|
|
41 |
<dependencyManagement> |
|
42 |
<dependencies> |
|
43 |
<dependency> |
|
44 |
<groupId>org.gvsig</groupId> |
|
45 |
<artifactId>org.gvsig.toolbox.math</artifactId> |
|
46 |
<version>1.0.6</version> |
|
47 |
</dependency> |
|
48 |
<dependency> |
|
49 |
<groupId>org.gvsig</groupId> |
|
50 |
<artifactId>org.gvsig.toolbox.core</artifactId> |
|
51 |
<version>1.0.6</version> |
|
52 |
</dependency> |
|
53 |
<dependency> |
|
54 |
<groupId>org.gvsig</groupId> |
|
55 |
<artifactId>org.gvsig.toolbox.gui</artifactId> |
|
56 |
<version>1.0.6</version> |
|
57 |
</dependency> |
|
58 |
<dependency> |
|
59 |
<groupId>org.gvsig</groupId> |
|
60 |
<artifactId>org.gvsig.toolbox.algorithm</artifactId> |
|
61 |
<version>1.0.6</version> |
|
62 |
</dependency> |
|
63 |
<dependency> |
|
64 |
<groupId>org.gvsig</groupId> |
|
65 |
<artifactId>org.gvsig.geoprocess.app.mainplugin</artifactId> |
|
66 |
<version>2.2.8</version> |
|
67 |
</dependency> |
|
68 |
<dependency> |
|
69 |
<groupId>org.gvsig</groupId> |
|
70 |
<artifactId>org.gvsig.geoprocess.lib.api</artifactId> |
|
71 |
<version>2.2.8</version> |
|
72 |
</dependency> |
|
73 |
<dependency> |
|
74 |
<groupId>org.gvsig</groupId> |
|
75 |
<artifactId>org.gvsig.geoprocess.lib.sextante</artifactId> |
|
76 |
<version>2.2.8</version> |
|
77 |
</dependency> |
|
78 |
<dependency> |
|
79 |
<groupId>org.gvsig</groupId> |
|
80 |
<artifactId>org.gvsig.geoprocess.algorithm.base</artifactId> |
|
81 |
<version>2.2.8</version> |
|
82 |
</dependency> |
|
83 |
<dependency> |
|
84 |
<groupId>org.gvsig</groupId> |
|
85 |
<artifactId>org.gvsig.geoprocess.algorithm.buffer</artifactId> |
|
86 |
<version>2.2.8</version> |
|
87 |
</dependency> |
|
88 |
<dependency> |
|
89 |
<groupId>org.gvsig</groupId> |
|
90 |
<artifactId>org.gvsig.geoprocess.algorithm.clip</artifactId> |
|
91 |
<version>2.2.8</version> |
|
92 |
</dependency> |
|
93 |
<dependency> |
|
94 |
<groupId>org.gvsig</groupId> |
|
95 |
<artifactId>org.gvsig.geoprocess.algorithm.convexhull</artifactId> |
|
96 |
<version>2.2.8</version> |
|
97 |
</dependency> |
|
98 |
<dependency> |
|
99 |
<groupId>org.gvsig</groupId> |
|
100 |
<artifactId>org.gvsig.geoprocess.algorithm.difference</artifactId> |
|
101 |
<version>2.2.8</version> |
|
102 |
</dependency> |
|
103 |
<dependency> |
|
104 |
<groupId>org.gvsig</groupId> |
|
105 |
<artifactId>org.gvsig.geoprocess.algorithm.dissolve</artifactId> |
|
106 |
<version>2.2.8</version> |
|
107 |
</dependency> |
|
108 |
<dependency> |
|
109 |
<groupId>org.gvsig</groupId> |
|
110 |
<artifactId>org.gvsig.geoprocess.algorithm.fusespatially</artifactId> |
|
111 |
<version>2.2.8</version> |
|
112 |
</dependency> |
|
113 |
<dependency> |
|
114 |
<groupId>org.gvsig</groupId> |
|
115 |
<artifactId>org.gvsig.geoprocess.algorithm.intersection</artifactId> |
|
116 |
<version>2.2.8</version> |
|
117 |
</dependency> |
|
118 |
<dependency> |
|
119 |
<groupId>org.gvsig</groupId> |
|
120 |
<artifactId>org.gvsig.geoprocess.algorithm.merge</artifactId> |
|
121 |
<version>2.2.8</version> |
|
122 |
</dependency> |
|
123 |
<dependency> |
|
124 |
<groupId>org.gvsig</groupId> |
|
125 |
<artifactId>org.gvsig.geoprocess.algorithm.reproject</artifactId> |
|
126 |
<version>2.2.8</version> |
|
127 |
</dependency> |
|
128 |
<dependency> |
|
129 |
<groupId>org.gvsig</groupId> |
|
130 |
<artifactId>org.gvsig.geoprocess.algorithm.spatialjoin</artifactId> |
|
131 |
<version>2.2.8</version> |
|
132 |
</dependency> |
|
133 |
<dependency> |
|
134 |
<groupId>org.gvsig</groupId> |
|
135 |
<artifactId>org.gvsig.geoprocess.algorithm.union</artifactId> |
|
136 |
<version>2.2.8</version> |
|
137 |
</dependency> |
|
138 |
<dependency> |
|
139 |
<groupId>org.gvsig</groupId> |
|
140 |
<artifactId>org.gvsig.geoprocess.algorithm.xyshift</artifactId> |
|
141 |
<version>2.2.8</version> |
|
142 |
</dependency> |
|
143 |
<dependency> |
|
144 |
<groupId>org.gvsig</groupId> |
|
145 |
<artifactId>org.gvsig.geoprocess.algorithm.groupby</artifactId> |
|
146 |
<version>2.2.8</version> |
|
147 |
</dependency> |
|
148 |
<dependency> |
|
149 |
<groupId>org.gvsig</groupId> |
|
150 |
<artifactId>org.gvsig.geoprocess.algorithm.lateralbuffer</artifactId> |
|
151 |
<version>2.2.8</version> |
|
152 |
</dependency> |
|
153 |
<dependency> |
|
154 |
<groupId>org.gvsig</groupId> |
|
155 |
<artifactId>org.gvsig.geoprocess.algorithm.splitlines</artifactId> |
|
156 |
<version>2.2.8</version> |
|
157 |
</dependency> |
|
158 |
<dependency> |
|
159 |
<groupId>org.japura</groupId> |
|
160 |
<artifactId>org.japura</artifactId> |
|
161 |
<version>1.14.0</version> |
|
162 |
</dependency> |
|
163 |
</dependencies> |
|
164 |
</dependencyManagement> |
|
165 |
|
|
166 |
<build> |
|
167 |
<plugins> |
|
168 |
<plugin> |
|
169 |
<groupId>org.apache.maven.plugins</groupId> |
|
170 |
<artifactId>maven-release-plugin</artifactId> |
|
171 |
<configuration> |
|
172 |
<tagBase>https://devel.gvsig.org/svn/gvsig-geoprocess/org.gvsig.geoprocess/tags/</tagBase> |
|
173 |
<goals>deploy</goals> |
|
174 |
</configuration> |
|
175 |
</plugin> |
|
176 |
|
|
177 |
<plugin> |
|
178 |
<groupId>org.apache.maven.plugins</groupId> |
|
179 |
<artifactId>maven-compiler-plugin</artifactId> |
|
180 |
<version>2.0.2</version> |
|
181 |
<configuration> |
|
182 |
<source>1.6</source> |
|
183 |
<target>1.6</target> |
|
184 |
<encoding>ISO-8859-1</encoding> |
|
185 |
</configuration> |
|
186 |
</plugin> |
|
187 |
|
|
188 |
<plugin> |
|
189 |
<groupId>org.codehaus.mojo</groupId> |
|
190 |
<artifactId>animal-sniffer-maven-plugin</artifactId> |
|
191 |
<executions> |
|
192 |
<execution> |
|
193 |
<id>check-java-api</id> |
|
194 |
<phase>test</phase> |
|
195 |
<goals> |
|
196 |
<goal>check</goal> |
|
197 |
</goals> |
|
198 |
<configuration> |
|
199 |
<signature> |
|
200 |
<groupId>org.codehaus.mojo.signature |
|
201 |
</groupId> |
|
202 |
<artifactId>java16</artifactId> |
|
203 |
<version>1.0</version> |
|
204 |
</signature> |
|
205 |
</configuration> |
|
206 |
</execution> |
|
207 |
</executions> |
|
208 |
</plugin> |
|
209 |
|
|
210 |
</plugins> |
|
211 |
</build> |
|
212 |
|
|
213 |
<modules> |
|
214 |
<module>org.gvsig.geoprocess.lib</module> |
|
215 |
<module>org.gvsig.geoprocess.app</module> |
|
216 |
<module>org.gvsig.geoprocess.algorithm</module> |
|
217 |
</modules> |
|
218 |
</project> |
|
0 | 219 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.8/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 |
|
|
29 |
Perform the following steps: |
|
30 |
|
|
31 |
1.- Launch the *prepare-workspace.xml* ant build file. |
|
32 |
You can do it by loading the file into the ant view, |
|
33 |
and running the default task, or right-clicking the |
|
34 |
file from the package explorer or the navigator and |
|
35 |
select the option: *Run as > Ant build*. |
|
36 |
|
|
37 |
2.- Restart eclipse. |
|
38 |
|
|
39 |
3.- Import the subprojects of the project you have just checked out. |
|
40 |
|
|
41 |
Those steps are only needed once per workspace. |
|
42 |
|
|
0 | 43 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.8/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.algorithm/buildNumber.properties | ||
---|---|---|
1 |
#Thu Oct 16 09:35:53 EDT 2014 |
|
2 |
buildNumber=2086 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.8/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.algorithm/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.andami.LibraryExtension" |
|
33 |
active="true" |
|
34 |
priority="1"> |
|
35 |
</extension> |
|
36 |
</extensions> |
|
37 |
</plugin-config> |
|
0 | 38 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.8/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.algorithm/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.algorithm.base</include> |
|
33 |
<include>org.gvsig:org.gvsig.geoprocess.algorithm.buffer</include> |
|
34 |
<include>org.gvsig:org.gvsig.geoprocess.algorithm.clip</include> |
|
35 |
<include>org.gvsig:org.gvsig.geoprocess.algorithm.convexhull</include> |
|
36 |
<include>org.gvsig:org.gvsig.geoprocess.algorithm.difference</include> |
|
37 |
<include>org.gvsig:org.gvsig.geoprocess.algorithm.dissolve</include> |
|
38 |
<include>org.gvsig:org.gvsig.geoprocess.algorithm.fusespatially</include> |
|
39 |
<include>org.gvsig:org.gvsig.geoprocess.algorithm.intersection</include> |
|
40 |
<include>org.gvsig:org.gvsig.geoprocess.algorithm.merge</include> |
|
41 |
<include>org.gvsig:org.gvsig.geoprocess.algorithm.reproject</include> |
|
42 |
<include>org.gvsig:org.gvsig.geoprocess.algorithm.spatialjoin</include> |
|
43 |
<include>org.gvsig:org.gvsig.geoprocess.algorithm.groupby</include> |
|
44 |
<include>trove:trove</include> |
|
45 |
<include>org.gvsig:org.gvsig.geoprocess.algorithm.union</include> |
|
46 |
<include>org.gvsig:org.gvsig.geoprocess.algorithm.xyshift</include> |
|
47 |
<include>org.gvsig:org.gvsig.geoprocess.algorithm.lateralbuffer</include> |
|
48 |
<include>org.gvsig:org.gvsig.geoprocess.algorithm.splitlines</include> |
|
49 |
</includes> |
|
50 |
</dependencySet> |
|
51 |
</dependencySets> |
|
52 |
</assembly> |
|
0 | 53 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.8/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.algorithm/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.algorithm</artifactId> |
|
4 |
<packaging>jar</packaging> |
|
5 |
<name>Geoprocess: basic gvSIG vectorial geoprocesses</name> |
|
6 |
<description>Geoprocess: basic gvSIG vectorial geoprocesses |
|
7 |
- Buffer |
|
8 |
- Clip |
|
9 |
- Convex Hull |
|
10 |
- Difference |
|
11 |
- Dissolve |
|
12 |
- Intersection |
|
13 |
- Merge |
|
14 |
- Reproject |
|
15 |
- Spatial Join |
|
16 |
- Union |
|
17 |
- X Y shift</description> |
|
18 |
|
|
19 |
<parent> |
|
20 |
<groupId>org.gvsig</groupId> |
|
21 |
<artifactId>org.gvsig.geoprocess.app</artifactId> |
|
22 |
<version>2.2.8</version> |
|
23 |
</parent> |
|
24 |
|
|
25 |
<dependencies> |
|
26 |
<dependency> |
|
27 |
<groupId>org.gvsig</groupId> |
|
28 |
<artifactId>org.gvsig.geoprocess.algorithm.base</artifactId> |
|
29 |
<scope>compile</scope> |
|
30 |
</dependency> |
|
31 |
<dependency> |
|
32 |
<groupId>org.gvsig</groupId> |
|
33 |
<artifactId>org.gvsig.geoprocess.algorithm.buffer</artifactId> |
|
34 |
<scope>compile</scope> |
|
35 |
</dependency> |
|
36 |
<dependency> |
|
37 |
<groupId>org.gvsig</groupId> |
|
38 |
<artifactId>org.gvsig.geoprocess.algorithm.clip</artifactId> |
|
39 |
<scope>compile</scope> |
|
40 |
</dependency> |
|
41 |
<dependency> |
|
42 |
<groupId>org.gvsig</groupId> |
|
43 |
<artifactId>org.gvsig.geoprocess.algorithm.convexhull</artifactId> |
|
44 |
<scope>compile</scope> |
|
45 |
</dependency> |
|
46 |
<dependency> |
|
47 |
<groupId>org.gvsig</groupId> |
|
48 |
<artifactId>org.gvsig.geoprocess.algorithm.difference</artifactId> |
|
49 |
<scope>compile</scope> |
|
50 |
</dependency> |
|
51 |
<dependency> |
|
52 |
<groupId>org.gvsig</groupId> |
|
53 |
<artifactId>org.gvsig.geoprocess.algorithm.dissolve</artifactId> |
|
54 |
<scope>compile</scope> |
|
55 |
</dependency> |
|
56 |
<dependency> |
|
57 |
<groupId>org.gvsig</groupId> |
|
58 |
<artifactId>org.gvsig.geoprocess.algorithm.fusespatially</artifactId> |
|
59 |
<scope>compile</scope> |
|
60 |
</dependency> |
|
61 |
<dependency> |
|
62 |
<groupId>org.gvsig</groupId> |
|
63 |
<artifactId>org.gvsig.geoprocess.algorithm.intersection</artifactId> |
|
64 |
<scope>compile</scope> |
|
65 |
</dependency> |
|
66 |
<dependency> |
|
67 |
<groupId>org.gvsig</groupId> |
|
68 |
<artifactId>org.gvsig.geoprocess.algorithm.merge</artifactId> |
|
69 |
<scope>compile</scope> |
|
70 |
</dependency> |
|
71 |
<dependency> |
|
72 |
<groupId>org.gvsig</groupId> |
|
73 |
<artifactId>org.gvsig.geoprocess.algorithm.reproject</artifactId> |
|
74 |
<scope>compile</scope> |
|
75 |
</dependency> |
|
76 |
<dependency> |
|
77 |
<groupId>org.gvsig</groupId> |
|
78 |
<artifactId>org.gvsig.geoprocess.algorithm.spatialjoin</artifactId> |
|
79 |
<scope>compile</scope> |
|
80 |
</dependency> |
|
81 |
<dependency> |
|
82 |
<groupId>org.gvsig</groupId> |
|
83 |
<artifactId>org.gvsig.geoprocess.algorithm.union</artifactId> |
|
84 |
<scope>compile</scope> |
|
85 |
</dependency> |
|
86 |
<dependency> |
|
87 |
<groupId>org.gvsig</groupId> |
|
88 |
<artifactId>org.gvsig.geoprocess.algorithm.xyshift</artifactId> |
|
89 |
<scope>compile</scope> |
|
90 |
</dependency> |
|
91 |
<dependency> |
|
92 |
<groupId>org.gvsig</groupId> |
|
93 |
<artifactId>org.gvsig.geoprocess.algorithm.groupby</artifactId> |
|
94 |
<scope>compile</scope> |
|
95 |
</dependency> |
|
96 |
<dependency> |
|
97 |
<groupId>org.gvsig</groupId> |
|
98 |
<artifactId>org.gvsig.geoprocess.algorithm.lateralbuffer</artifactId> |
|
99 |
<scope>compile</scope> |
|
100 |
</dependency> |
|
101 |
<dependency> |
|
102 |
<groupId>org.gvsig</groupId> |
|
103 |
<artifactId>org.gvsig.geoprocess.algorithm.splitlines</artifactId> |
|
104 |
<scope>compile</scope> |
|
105 |
</dependency> |
|
106 |
<dependency> |
|
107 |
<groupId>org.gvsig</groupId> |
|
108 |
<artifactId>org.gvsig.andami</artifactId> |
|
109 |
<scope>compile</scope> |
|
110 |
</dependency> |
|
111 |
<dependency> |
|
112 |
<groupId>org.gvsig</groupId> |
|
113 |
<artifactId>org.gvsig.fmap.mapcontext.api</artifactId> |
|
114 |
<scope>compile</scope> |
|
115 |
</dependency> |
|
116 |
<dependency> |
|
117 |
<groupId>org.gvsig</groupId> |
|
118 |
<artifactId>org.gvsig.fmap.mapcontext.impl</artifactId> |
|
119 |
<scope>runtime</scope> |
|
120 |
</dependency> |
|
121 |
<dependency> |
|
122 |
<groupId>org.gvsig</groupId> |
|
123 |
<artifactId>org.gvsig.fmap.mapcontext.operation</artifactId> |
|
124 |
<scope>runtime</scope> |
|
125 |
</dependency> |
|
126 |
</dependencies> |
|
127 |
|
|
128 |
<properties> |
|
129 |
<gvsig.package.info.dependencies>required: org.gvsig.geoprocess.app.mainplugin -ge 2</gvsig.package.info.dependencies> |
|
130 |
<gvsig.package.info.poolURL>https://devel.gvsig.org/download/projects/gvsig-geoprocess/pool</gvsig.package.info.poolURL> |
|
131 |
<gvsig.package.info.official>true</gvsig.package.info.official> |
|
132 |
</properties> |
|
133 |
</project> |
|
0 | 134 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.8/org.gvsig.geoprocess.app/org.gvsig.geoprocess.app.sextante/buildNumber.properties | ||
---|---|---|
1 |
#Thu Oct 16 09:35:53 EDT 2014 |
|
2 |
buildNumber=2086 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.8/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.8/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 |
|
|
32 |
import org.gvsig.andami.PluginServices; |
|
33 |
import org.gvsig.andami.PluginsLocator; |
|
34 |
import org.gvsig.andami.PluginsManager; |
|
35 |
import org.gvsig.andami.plugins.Extension; |
|
36 |
import org.gvsig.geoprocess.extension.GeoprocessExtension; |
|
37 |
|
|
38 |
/** |
|
39 |
* Sextante algorithms extension. |
|
40 |
* |
|
41 |
* @author gvSIG Team |
|
42 |
* @version $Id$ |
|
43 |
*/ |
|
44 |
public class SextanteAlgorithmsExtension extends Extension { |
|
45 |
|
|
46 |
public void execute(String actionCommand) { |
|
47 |
// Nothing to do |
|
48 |
} |
|
49 |
|
|
50 |
public void initialize() { |
|
51 |
|
|
52 |
// HACK: The initialize method removes all previously registered |
|
53 |
// algorithms, so we must get them before and add again afterwards. |
|
54 |
Map<String, HashMap<String, GeoAlgorithm>> algorithms = |
|
55 |
Sextante.getAlgorithms(); |
|
56 |
|
|
57 |
// The sextante algorithms jar files are copied into the |
|
58 |
// org.gvsig.geoprocess.app.mainplugin plugin as sextante looks |
|
59 |
// for resource bundles using its own classloader |
|
60 |
Sextante.initialize((this.getPlugin().getPluginDirectory().getAbsolutePath()) + "/lib"); |
|
61 |
// Read previous algorithms just in case |
|
62 |
if (algorithms != null) { |
|
63 |
Sextante.getAlgorithms().putAll(algorithms); |
|
64 |
} |
|
65 |
} |
|
66 |
|
|
67 |
public boolean isEnabled() { |
|
68 |
return true; |
|
69 |
} |
|
70 |
|
|
71 |
public boolean isVisible() { |
|
72 |
return true; |
|
73 |
} |
|
74 |
} |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.8/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.8/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>Geoprocess: sextante algorithms</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.8</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 |
</dependencies> |
|
41 |
|
|
42 |
<properties> |
|
43 |
<gvsig.package.info.dependencies>required: org.gvsig.geoprocess.app.mainplugin -ge 2.0.0-SNAPSHOT</gvsig.package.info.dependencies> |
|
44 |
<gvsig.package.info.poolURL>https://devel.gvsig.org/download/projects/gvsig-geoprocess/pool</gvsig.package.info.poolURL> |
|
45 |
<gvsig.package.info.official>true</gvsig.package.info.official> |
|
46 |
</properties> |
|
47 |
</project> |
|
0 | 48 |
org.gvsig.geoprocess/tags/org.gvsig.geoprocess-2.2.8/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.8/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.8/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.8/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.8/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.8/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.8/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.8/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.8/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.8/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 |
* |
Also available in: Unified diff