Revision 429

View differences:

org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.30/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.lin.x86_64/buildNumber.properties
1
#Fri Oct 09 10:40:32 CEST 2015
2
buildNumber=2085
0 3

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.30/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.lin.x86_64/src/main/resources-plugin/autorun.sh
1
#!/bin/sh
2
#
3
# gvSIG. Desktop Geographic Information System.
4
#
5
# Copyright (C) 2007-2013 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 3
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

  
27
#
28
# Plugin autorun
29
#
30

  
31
PLUGIN_NAME=$(basename "$PLUGIN_FOLDER")
32

  
33
# Proj4 data files
34
export PROJ_LIB="${GVSIG_HOME_FOLDER}/plugins/$PLUGIN_NAME/projlib"
35

  
36
# Temporary fix for number locale related formatting error with proj4.
37
export LC_NUMERIC=C
38

  
39
add_library_path "$PLUGIN_FOLDER/native"
40

  
41
list_shared_library_dependencies "$PLUGIN_FOLDER/native/"libcrsjniproj*
42

  
43

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.30/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.lin.x86_64/src/main/assembly/gvsig-plugin-package.xml
1
<!--
2

  
3
    gvSIG. Desktop Geographic Information System.
4

  
5
    Copyright (C) 2007-2013 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 3
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
<assembly>
27
  <id>gvsig-plugin-package</id>
28
  <formats>
29
    <format>zip</format>
30
  </formats>
31
  <baseDirectory>${gvsig.package.info.code}</baseDirectory>
32
  <includeBaseDirectory>true</includeBaseDirectory>
33
  <files>
34
    <file>
35
      <source>target/package.info</source>
36
    </file>
37
  </files>
38

  
39
  <fileSets>
40
    <fileSet>
41
      <directory>target/org.gvsig.projection.app.jcrs.common</directory>
42
      <outputDirectory>.</outputDirectory>
43
      <excludes>
44
      	<exclude>package.info</exclude>
45
      </excludes>
46
    </fileSet>
47
    <fileSet>
48
      <directory>target/native/lib</directory>
49
      <outputDirectory>native</outputDirectory>
50
    </fileSet>
51
    <fileSet>
52
      <directory>src/main/resources-plugin</directory>
53
      <outputDirectory>.</outputDirectory>
54
    </fileSet>
55
  </fileSets>
56

  
57

  
58
  <dependencySets>
59
    <dependencySet>
60
      <useProjectArtifact>false</useProjectArtifact>
61
      <useTransitiveDependencies>false</useTransitiveDependencies>
62
      <outputDirectory>lib</outputDirectory>
63
		<includes>
64
            <include>org.gvsig:org.gvsig.jproj:jar</include>
65
		</includes>
66
    </dependencySet>
67
  </dependencySets>
68

  
69
</assembly>
70

  
71

  
72

  
0 73

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.30/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.lin.x86_64/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/maven-v4_0_0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
  <artifactId>org.gvsig.projection.app.jcrs.lin.x86_64</artifactId>
5
  <packaging>jar</packaging>
6
   
7
 	<parent>
8
		<groupId>org.gvsig</groupId>
9
		<artifactId>org.gvsig.projection.app.jcrs</artifactId>
10
		<version>2.1.26-SNAPSHOT</version>
11
	</parent>
12

  
13
  <properties>
14
    <gvsig.package.info.operatingSystem>lin</gvsig.package.info.operatingSystem>
15
    <gvsig.package.info.architecture>x86_64</gvsig.package.info.architecture>
16
  </properties>
17

  
18
  <dependencyManagement>
19
      <dependencies>
20
        <dependency>
21
            <groupId>org.gvsig</groupId>
22
            <artifactId>org.gvsig.jproj</artifactId>
23
            <version>2.0.1</version>
24
        </dependency>                  
25
        <dependency>
26
            <groupId>org.gvsig</groupId>
27
            <artifactId>org.gvsig.jproj</artifactId>
28
            <version>2.0.1</version>
29
            <classifier>linux-all-gcc4-X86_64-dynamic</classifier>
30
            <type>tar.gz</type>
31
        </dependency>                  
32
      </dependencies>
33
  </dependencyManagement>
34
 	 
35

  
36
  <dependencies>
37
      <dependency>
38
          <groupId>org.gvsig</groupId>
39
          <artifactId>org.gvsig.projection.app.jcrs.common</artifactId>
40
          <type>zip</type>
41
        </dependency>
42
      <dependency>
43
          <groupId>org.gvsig</groupId>
44
          <artifactId>org.gvsig.jproj</artifactId>
45
      </dependency>                  
46
      <dependency>
47
          <groupId>org.gvsig</groupId>
48
          <artifactId>org.gvsig.jproj</artifactId>
49
          <classifier>linux-all-gcc4-X86_64-dynamic</classifier>
50
          <type>tar.gz</type>
51
      </dependency> 
52
  </dependencies>
53

  
54
  <build>
55
    <plugins>
56
  
57
      <plugin>
58
        <groupId>org.apache.maven.plugins</groupId>
59
        <artifactId>maven-dependency-plugin</artifactId>
60
        <executions>
61
          <execution>
62
          	<id>unpack</id>
63
	        <phase>process-sources</phase>
64
	        <goals>
65
	          <goal>unpack</goal>
66
	        </goals>
67
	        <configuration>
68
	          <artifactItems>
69
	            <artifactItem>
70
		            <groupId>org.gvsig</groupId>
71
		            <artifactId>org.gvsig.projection.app.jcrs.common</artifactId>
72
		            <type>zip</type>
73
					      <overWrite>true</overWrite>
74
					      <outputDirectory>target</outputDirectory>
75
	            </artifactItem>
76
	            <artifactItem>
77
		            <groupId>org.gvsig</groupId>
78
		            <artifactId>org.gvsig.jproj</artifactId>
79
                <classifier>linux-all-gcc4-X86_64-dynamic</classifier>
80
		            <type>tar.gz</type>
81
					      <overWrite>true</overWrite>
82
					      <outputDirectory>target/native</outputDirectory>
83
	            </artifactItem>
84
	          </artifactItems>
85
	        </configuration>
86
          </execution>
87
        </executions>
88
	  </plugin>
89
  
90
  
91
    </plugins>
92
  </build>
93

  
94
  <profiles>
95
  
96
    <profile>
97
      <id>gvsig-plugin-install-jcrs-linux-x86_64</id>
98
      <activation>
99
         <os>
100
             <family>unix</family>
101
             <name>linux</name>
102
             <!-- <arch>x86_64</arch> -->
103
             <arch>amd64</arch>
104
         </os>
105
      </activation>
106
	      <properties>
107
	        <gvsig.install.plugin>true</gvsig.install.plugin>
108
	      </properties>
109
    </profile>
110
  </profiles>
111
  
112
</project>
113

  
0 114

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.30/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.win.x86/src/main/assembly/gvsig-plugin-package.xml
1
<!--
2

  
3
    gvSIG. Desktop Geographic Information System.
4

  
5
    Copyright (C) 2007-2013 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 3
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
<assembly>
27
  <id>gvsig-plugin-package</id>
28
  <formats>
29
    <format>zip</format>
30
  </formats>
31
  <baseDirectory>${gvsig.package.info.code}</baseDirectory>
32
  <includeBaseDirectory>true</includeBaseDirectory>
33
  <files>
34
    <file>
35
      <source>target/package.info</source>
36
    </file>
37
  </files>
38

  
39
  <fileSets>
40
    <fileSet>
41
      <directory>target/org.gvsig.projection.app.jcrs.common</directory>
42
      <outputDirectory>.</outputDirectory>
43
      <excludes>
44
      	<exclude>package.info</exclude>
45
      </excludes>
46
    </fileSet>
47
    <fileSet>
48
      <directory>target/native/bin</directory>
49
      <outputDirectory>install/files</outputDirectory>
50
    </fileSet>
51
    <fileSet>
52
      <directory>src/main/resources-plugin</directory>
53
      <outputDirectory>.</outputDirectory>
54
    </fileSet>
55
  </fileSets>
56

  
57

  
58
  <dependencySets>
59
    <dependencySet>
60
      <useProjectArtifact>false</useProjectArtifact>
61
      <useTransitiveDependencies>false</useTransitiveDependencies>
62
      <outputDirectory>lib</outputDirectory>
63
		<includes>
64
            <include>org.gvsig:org.gvsig.jproj:jar</include>
65
		</includes>
66
    </dependencySet>
67
  </dependencySets>
68

  
69
</assembly>
70

  
71

  
72

  
0 73

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.30/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.win.x86/src/main/resources-plugin/install/install.xml
1
<project name="org.gvsig.plugin1" default="main" basedir=".">
2
	<!--
3
		Predefined properties:
4
		gvsig_dir = gvSIG application root installation directory
5
		extensions_dir = gvSIG extensions directory
6
	-->
7
	<taskdef resource="net/sf/antcontrib/antlib.xml">
8
		<classpath>
9
			<pathelement location="${gvsig_dir}/lib/ant-contrib-1.0b3.jar" />
10
		</classpath>
11
	</taskdef>
12
	<target name="main" depends="copy_files"/>
13
    <target name="copy_files">
14
    	<copy todir="${gvsig_dir}">
15
    		<fileset dir="./files" includes="**"/>
16
		</copy>
17
	</target>
18
</project>
0 19

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.30/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.win.x86/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/maven-v4_0_0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
  <artifactId>org.gvsig.projection.app.jcrs.win.x86</artifactId>
5
  <packaging>jar</packaging>
6
   
7
 	<parent>
8
		<groupId>org.gvsig</groupId>
9
		<artifactId>org.gvsig.projection.app.jcrs</artifactId>
10
		<version>2.1.26-SNAPSHOT</version>
11
	</parent>
12

  
13
  <properties>
14
<!--     <gvsig.package.info.code>org.gvsig.crs.extension</gvsig.package.info.code> -->
15
    <gvsig.package.info.operatingSystem>win</gvsig.package.info.operatingSystem>
16
    <gvsig.package.info.architecture>x86</gvsig.package.info.architecture>
17
  </properties>
18

  
19
  <dependencyManagement>
20
      <dependencies>
21
        <dependency>
22
            <groupId>org.gvsig</groupId>
23
            <artifactId>org.gvsig.jproj</artifactId>
24
            <version>2.0.1</version>
25
        </dependency>                  
26
        <dependency>
27
            <groupId>org.gvsig</groupId>
28
            <artifactId>org.gvsig.jproj</artifactId>
29
            <version>2.0.1</version>
30
            <classifier>win-nt-vs8-i386-dynamic</classifier>
31
            <type>tar.gz</type>
32
        </dependency>                  
33
        <dependency>
34
            <groupId>org.gvsig</groupId>
35
            <artifactId>org.gvsig.jproj</artifactId>
36
            <version>2.0.1</version>
37
            <classifier>win-nt-vs8-i386-dynamic-runtime</classifier>
38
            <type>tar.gz</type>
39
        </dependency>                  
40
      </dependencies>
41
  </dependencyManagement>
42
 	 
43

  
44
  <dependencies>
45
      <dependency>
46
          <groupId>org.gvsig</groupId>
47
          <artifactId>org.gvsig.projection.app.jcrs.common</artifactId>
48
          <type>zip</type>
49
        </dependency>
50
      <dependency>
51
          <groupId>org.gvsig</groupId>
52
          <artifactId>org.gvsig.jproj</artifactId>
53
      </dependency>                  
54
      <dependency>
55
          <groupId>org.gvsig</groupId>
56
          <artifactId>org.gvsig.jproj</artifactId>
57
          <classifier>win-nt-vs8-i386-dynamic</classifier>
58
          <type>tar.gz</type>
59
      </dependency> 
60
      <dependency>
61
          <groupId>org.gvsig</groupId>
62
          <artifactId>org.gvsig.jproj</artifactId>
63
          <classifier>win-nt-vs8-i386-dynamic-runtime</classifier>
64
          <type>tar.gz</type>
65
      </dependency>   
66
    </dependencies>
67

  
68
  <build>
69
    <plugins>
70
  
71
      <plugin>
72
        <groupId>org.apache.maven.plugins</groupId>
73
        <artifactId>maven-dependency-plugin</artifactId>
74
        <executions>
75
          <execution>
76
          	<id>unpack</id>
77
	        <phase>process-sources</phase>
78
	        <goals>
79
	          <goal>unpack</goal>
80
	        </goals>
81
	        <configuration>
82
	          <artifactItems>
83
	            <artifactItem>
84
		            <groupId>org.gvsig</groupId>
85
		            <artifactId>org.gvsig.projection.app.jcrs.common</artifactId>
86
		            <type>zip</type>
87
					<overWrite>true</overWrite>
88
					<outputDirectory>target</outputDirectory>
89
	            </artifactItem>
90
	            <artifactItem>
91
		            <groupId>org.gvsig</groupId>
92
		            <artifactId>org.gvsig.jproj</artifactId>
93
		            <classifier>win-nt-vs8-i386-dynamic</classifier>
94
		            <type>tar.gz</type>
95
					<overWrite>true</overWrite>
96
					<outputDirectory>target/native</outputDirectory>
97
	            </artifactItem>
98
	            <artifactItem>
99
		            <groupId>org.gvsig</groupId>
100
		            <artifactId>org.gvsig.jproj</artifactId>
101
		            <classifier>win-nt-vs8-i386-dynamic-runtime</classifier>
102
		            <type>tar.gz</type>
103
					<overWrite>true</overWrite>
104
					<outputDirectory>target/native/bin</outputDirectory>
105
	            </artifactItem>
106
	          </artifactItems>
107
	        </configuration>
108
          </execution>
109
        </executions>
110
	  </plugin>
111
  
112
  
113
    </plugins>
114
  </build>
115

  
116
  <profiles>
117
  
118
    <profile>
119
      <id>gvsig-plugin-install-jcrs-windows-x86</id>
120
      <activation>
121
         <os>
122
             <family>windows</family>
123
             <!-- Uncomment this when have support for amd64 -->
124
             <!-- 
125
             <arch>x86</arch>
126
             -->
127
         </os>
128
      </activation>
129
	  <properties>
130
	    <gvsig.install.plugin>true</gvsig.install.plugin>
131
	  </properties>
132
    </profile>
133
  </profiles>
134
  
135
</project>
136

  
0 137

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.30/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.win.x86/buildNumber.properties
1
#Fri Oct 09 10:40:35 CEST 2015
2
buildNumber=2085
0 3

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.30/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.mainplugin/src/main/assembly/gvsig-plugin-package.xml
1
<!--
2

  
3
    gvSIG. Desktop Geographic Information System.
4

  
5
    Copyright (C) 2007-2013 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 3
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
<assembly>
27
  <id>gvsig-plugin-package</id>
28
  <formats>
29
    <format>zip</format>
30
  </formats>
31
  <baseDirectory>${gvsig.package.info.code}</baseDirectory>
32
  <includeBaseDirectory>true</includeBaseDirectory>
33
  <files>
34
    <file>
35
      <source>target/package.info</source>
36
    </file>
37
  </files>
38

  
39
  <fileSets>
40
    <fileSet>
41
      <directory>target/org.gvsig.projection.app.jcrs.common</directory>
42
      <outputDirectory>.</outputDirectory>
43
      <excludes>
44
      	<exclude>package.info</exclude>
45
      </excludes>
46
    </fileSet>
47
    <fileSet>
48
      <directory>src/main/resources-plugin</directory>
49
      <outputDirectory>.</outputDirectory>
50
    </fileSet>
51
  </fileSets>
52

  
53
<!--
54
  <dependencySets>
55
    <dependencySet>
56
      <useProjectArtifact>false</useProjectArtifact>
57
      <useTransitiveDependencies>false</useTransitiveDependencies>
58
      <outputDirectory>lib</outputDirectory>
59
		<includes>
60
		</includes>
61
    </dependencySet>
62
  </dependencySets>
63
  -->
64

  
65
</assembly>
66

  
67

  
68

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.30/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.mainplugin/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/maven-v4_0_0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
  <artifactId>org.gvsig.projection.app.jcrs.mainplugin</artifactId>
5
  <packaging>jar</packaging>
6

  
7
 	<parent>
8
		<groupId>org.gvsig</groupId>
9
		<artifactId>org.gvsig.projection.app.jcrs</artifactId>
10
		<version>2.1.30</version>
11
	</parent>
12

  
13
  <dependencies>
14
      <dependency>
15
          <groupId>org.gvsig</groupId>
16
          <artifactId>org.gvsig.projection.app.jcrs.common</artifactId>
17
          <type>zip</type>
18
        </dependency>
19
  </dependencies>
20

  
21
  <build>
22
    <plugins>
23

  
24
      <plugin>
25
        <groupId>org.apache.maven.plugins</groupId>
26
        <artifactId>maven-dependency-plugin</artifactId>
27
        <executions>
28
          <execution>
29
          	<id>unpack</id>
30
	        <phase>process-sources</phase>
31
	        <goals>
32
	          <goal>unpack</goal>
33
	        </goals>
34
	        <configuration>
35
	          <artifactItems>
36
	            <artifactItem>
37
		            <groupId>org.gvsig</groupId>
38
		            <artifactId>org.gvsig.projection.app.jcrs.common</artifactId>
39
		            <type>zip</type>
40
                            <overWrite>true</overWrite>
41
                            <outputDirectory>target</outputDirectory>
42
	            </artifactItem>
43
	          </artifactItems>
44
	        </configuration>
45
          </execution>
46
        </executions>
47
      </plugin>
48

  
49
      </plugins>
50
  </build>
51

  
52
  <properties>
53
    <gvsig.install.plugin>true</gvsig.install.plugin>
54
    <gvsig.package.info.name>CRS: CRS management (GDAL/Geotools based, Native)</gvsig.package.info.name>
55
  </properties>
56
</project>
57

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.30/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.mainplugin/buildNumber.properties
1
#Tue Nov 03 20:00:00 CET 2015
2
buildNumber=2085
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.30/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.lin.x86/buildNumber.properties
1
#Fri Oct 09 10:40:29 CEST 2015
2
buildNumber=2085
0 3

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.30/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.lin.x86/src/main/assembly/gvsig-plugin-package.xml
1
<!--
2

  
3
    gvSIG. Desktop Geographic Information System.
4

  
5
    Copyright (C) 2007-2013 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 3
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
<assembly>
27
  <id>gvsig-plugin-package</id>
28
  <formats>
29
    <format>zip</format>
30
  </formats>
31
  <baseDirectory>${gvsig.package.info.code}</baseDirectory>
32
  <includeBaseDirectory>true</includeBaseDirectory>
33
  <files>
34
    <file>
35
      <source>target/package.info</source>
36
    </file>
37
  </files>
38

  
39
  <fileSets>
40
    <fileSet>
41
      <directory>target/org.gvsig.projection.app.jcrs.common</directory>
42
      <outputDirectory>.</outputDirectory>
43
      <excludes>
44
      	<exclude>package.info</exclude>
45
      </excludes>
46
    </fileSet>
47
    <fileSet>
48
      <directory>target/native/lib</directory>
49
      <outputDirectory>native</outputDirectory>
50
    </fileSet>
51
    <fileSet>
52
      <directory>src/main/resources-plugin</directory>
53
      <outputDirectory>.</outputDirectory>
54
    </fileSet>
55
  </fileSets>
56

  
57

  
58
  <dependencySets>
59
    <dependencySet>
60
      <useProjectArtifact>false</useProjectArtifact>
61
      <useTransitiveDependencies>false</useTransitiveDependencies>
62
      <outputDirectory>lib</outputDirectory>
63
		<includes>
64
            <include>org.gvsig:org.gvsig.jproj:jar</include>
65
		</includes>
66
    </dependencySet>
67
  </dependencySets>
68

  
69
</assembly>
70

  
71

  
72

  
0 73

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.30/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.lin.x86/src/main/resources-plugin/autorun.sh
1
#!/bin/sh
2
#
3
# gvSIG. Desktop Geographic Information System.
4
#
5
# Copyright (C) 2007-2013 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 3
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

  
27
#
28
# Plugin autorun
29
#
30

  
31
PLUGIN_NAME=$(basename "$PLUGIN_FOLDER")
32

  
33
# Proj4 data files
34
export PROJ_LIB="${GVSIG_HOME_FOLDER}/plugins/$PLUGIN_NAME/projlib"
35

  
36
# Temporary fix for number locale related formatting error with proj4.
37
export LC_NUMERIC=C
38

  
39
add_library_path "$PLUGIN_FOLDER/native"
40

  
41
list_shared_library_dependencies "$PLUGIN_FOLDER/native/"libcrsjniproj*
42

  
43

  
44

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.30/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.lin.x86/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/maven-v4_0_0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
  <artifactId>org.gvsig.projection.app.jcrs.lin.x86</artifactId>
5
  <packaging>jar</packaging>
6
   
7
 	<parent>
8
		<groupId>org.gvsig</groupId>
9
		<artifactId>org.gvsig.projection.app.jcrs</artifactId>
10
		<version>2.1.26-SNAPSHOT</version>
11
	</parent>
12

  
13
  <properties>
14
    <gvsig.package.info.operatingSystem>lin</gvsig.package.info.operatingSystem>
15
    <gvsig.package.info.architecture>x86</gvsig.package.info.architecture>
16
  </properties>
17

  
18
  <dependencyManagement>
19
      <dependencies>
20
        <dependency>
21
            <groupId>org.gvsig</groupId>
22
            <artifactId>org.gvsig.jproj</artifactId>
23
            <version>2.0.1</version>
24
        </dependency>                  
25
        <dependency>
26
            <groupId>org.gvsig</groupId>
27
            <artifactId>org.gvsig.jproj</artifactId>
28
            <version>2.0.1</version>
29
            <classifier>linux-all-gcc4-i386-dynamic</classifier>
30
            <type>tar.gz</type>
31
        </dependency>                  
32
      </dependencies>
33
  </dependencyManagement>
34
 	 
35

  
36
  <dependencies>
37
      <dependency>
38
          <groupId>org.gvsig</groupId>
39
          <artifactId>org.gvsig.projection.app.jcrs.common</artifactId>
40
          <type>zip</type>
41
        </dependency>
42
      <dependency>
43
          <groupId>org.gvsig</groupId>
44
          <artifactId>org.gvsig.jproj</artifactId>
45
      </dependency>                  
46
      <dependency>
47
          <groupId>org.gvsig</groupId>
48
          <artifactId>org.gvsig.jproj</artifactId>
49
          <classifier>linux-all-gcc4-i386-dynamic</classifier>
50
          <type>tar.gz</type>
51
      </dependency> 
52
  </dependencies>
53

  
54
  <build>
55
    <plugins>
56
  
57
      <plugin>
58
        <groupId>org.apache.maven.plugins</groupId>
59
        <artifactId>maven-dependency-plugin</artifactId>
60
        <executions>
61
          <execution>
62
          	<id>unpack</id>
63
	        <phase>process-sources</phase>
64
	        <goals>
65
	          <goal>unpack</goal>
66
	        </goals>
67
	        <configuration>
68
	          <artifactItems>
69
	            <artifactItem>
70
		            <groupId>org.gvsig</groupId>
71
		            <artifactId>org.gvsig.projection.app.jcrs.common</artifactId>
72
		            <type>zip</type>
73
					      <overWrite>true</overWrite>
74
					      <outputDirectory>target</outputDirectory>
75
	            </artifactItem>
76
	            <artifactItem>
77
		            <groupId>org.gvsig</groupId>
78
		            <artifactId>org.gvsig.jproj</artifactId>
79
		            <classifier>linux-all-gcc4-i386-dynamic</classifier>
80
		            <type>tar.gz</type>
81
					      <overWrite>true</overWrite>
82
					      <outputDirectory>target/native</outputDirectory>
83
	            </artifactItem>
84
	          </artifactItems>
85
	        </configuration>
86
          </execution>
87
        </executions>
88
	  </plugin>
89
  
90
  
91
    </plugins>
92
  </build>
93

  
94
  <profiles>
95
  
96
    <profile>
97
      <id>gvsig-plugin-install-jcrs-linux-x86</id>
98
      <activation>
99
         <os>
100
             <family>unix</family>
101
             <name>linux</name>
102
             <arch>x86</arch>
103
         </os>
104
      </activation>
105
	    <properties>
106
	      <gvsig.install.plugin>true</gvsig.install.plugin>
107
	    </properties>
108
    </profile>
109
    <profile>
110
      <!-- Some platforms report i386 instead of x86 -->
111
      <id>gvsig-plugin-install-jcrs-linux-i386</id>
112
      <activation>
113
         <os>
114
             <family>unix</family>
115
             <name>linux</name>
116
             <arch>i386</arch>
117
         </os>
118
      </activation>
119
      <properties>
120
         <gvsig.install.plugin>true</gvsig.install.plugin>
121
      </properties>
122
    </profile>
123
  </profiles>
124
  
125
</project>
126

  
0 127

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.30/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/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/maven-v4_0_0.xsd">
3
    <modelVersion>4.0.0</modelVersion>
4
    <artifactId>org.gvsig.projection.app.jcrs.common</artifactId>
5
    <packaging>jar</packaging>
6
    <name>${project.artifactId}</name>
7
    <description>
8
        CRS management:
9
        - Set the reference system (CRS) by default, in views, in layers (CRS on the fly).
10
        - Selection from recent CRS, from EPSG, ESRI, IAU2000 data bases and user's defined CRS.
11
        - Create, edit and delete new CRS defined by the user (from an existing CRS, from a wkt string, or from scratch).
12
        - Consult CRS information (datum, projection, proj4 string...)
13
        - Convertion of coordinates (no datum changing)
14
        - Transformation of coordinates (datum changing) from EPSG, manual, recent, compound and grid (.gsb extension)
15
    </description>
16

  
17
    <parent>
18
        <groupId>org.gvsig</groupId>
19
        <artifactId>org.gvsig.projection.app.jcrs</artifactId>
20
        <version>2.1.30</version>
21
    </parent>
22

  
23
    <properties>
24
        <gvsig.package.info.name>CRS: CRS management (Proj4/Geotools based, Native)</gvsig.package.info.name>
25
        <gvsig.package.info.state>testing</gvsig.package.info.state>
26
        <gvsig.package.info.official>true</gvsig.package.info.official>
27
        <gvsig.package.info.operatingSystem>all</gvsig.package.info.operatingSystem>
28
        <gvsig.package.info.architecture>all</gvsig.package.info.architecture>
29
        <gvsig.package.info.dependencies>required: org.gvsig.app.mainplugin -ge 2.1.0-A</gvsig.package.info.dependencies>
30
        <gvsig.package.info.categories />
31
        <gvsig.package.info.poolURL>http://devel.gvsig.org/download/projects/gvsig-jcrs/pool</gvsig.package.info.poolURL>
32
        <gvsig.install.plugin>false</gvsig.install.plugin>
33
        <gvsig.install.plugin.package>false</gvsig.install.plugin.package>
34
    </properties>
35

  
36
    <dependencies>
37

  
38
        <dependency>
39
            <groupId>org.gvsig</groupId>
40
            <artifactId>org.gvsig.tools.lib</artifactId>
41
            <scope>compile</scope>
42
        </dependency>
43
        <dependency>
44
            <groupId>org.gvsig</groupId>
45
            <artifactId>org.gvsig.andami</artifactId>
46
            <scope>compile</scope>
47
        </dependency>
48
        <dependency>
49
            <groupId>org.gvsig</groupId>
50
            <artifactId>org.gvsig.ui</artifactId>
51
            <scope>compile</scope>
52
        </dependency>
53
        <dependency>
54
            <groupId>net.sf</groupId>
55
            <artifactId>jgridshiftapi</artifactId>
56
            <scope>compile</scope>
57
        </dependency>
58
        <dependency>
59
            <groupId>org.gvsig</groupId>
60
            <artifactId>org.gvsig.projection.cresques.ui</artifactId>
61
            <scope>compile</scope>
62
        </dependency>
63
        <dependency>
64
            <groupId>org.gvsig</groupId>
65
            <artifactId>org.gvsig.projection.api</artifactId>
66
            <scope>compile</scope>
67
        </dependency>
68
        <dependency>
69
            <groupId>org.gvsig</groupId>
70
            <artifactId>org.gvsig.projection.jcrs.lib</artifactId>
71
            <scope>compile</scope>
72
        </dependency>
73
        <dependency>
74
            <groupId>javax.units</groupId>
75
            <artifactId>jsr108</artifactId>
76
            <scope>compile</scope>
77
        </dependency>
78

  
79

  
80
        <dependency>
81
            <groupId>org.geotools</groupId>
82
            <artifactId>gt2-main</artifactId>
83
            <!-- Don't remove version from here, this override version  -->
84
            <!-- in org.gvsig.desktop -->
85
            <version>unknown</version>
86
            <scope>compile</scope>
87
        </dependency>
88

  
89
        <dependency>
90
            <groupId>org.opengis</groupId>
91
            <artifactId>geoapi</artifactId>
92
            <scope>compile</scope>
93
        </dependency>
94
        <dependency>
95
            <groupId>hsqldb</groupId>
96
            <artifactId>hsqldb</artifactId>
97
            <scope>compile</scope>
98
        </dependency>
99

  
100
        <!--  Runtime dependencies -->
101
        <!--  Need to include in the assembly -->
102
        <dependency>
103
            <groupId>org.gvsig</groupId>
104
            <artifactId>org.gvsig.projection.cresques.impl</artifactId>
105
            <scope>runtime</scope>
106
        </dependency>
107
        <!--
108
        <dependency>
109
          <groupId>org.gvsig</groupId>
110
          <artifactId>gt2-epsg-esri</artifactId>
111
          <scope>runtime</scope>
112
        </dependency>
113
        <dependency>
114
          <groupId>org.gvsig</groupId>
115
          <artifactId>gt2-epsg-hsql</artifactId>
116
          <scope>runtime</scope>
117
        </dependency>
118
        <dependency>
119
          <groupId>org.gvsig</groupId>
120
          <artifactId>gt2-epsg-iau2000</artifactId>
121
          <scope>runtime</scope>
122
        </dependency>
123
        <dependency>
124
          <groupId>org.gvsig</groupId>
125
          <artifactId>gt2-epsg-usr</artifactId>
126
          <scope>runtime</scope>
127
        </dependency>
128
        -->
129
        <dependency>
130
            <groupId>java3d</groupId>
131
            <artifactId>vecmath</artifactId>
132
            <scope>runtime</scope>
133
        </dependency>
134

  
135
<!--         <dependency> -->
136
<!--            <groupId>org.gdal</groupId> -->
137
<!--            <artifactId>gdal</artifactId> -->
138
<!--         </dependency> -->
139

  
140
    </dependencies>
141

  
142
    <build>
143
        <plugins>
144
            <!-- TODO: MAKE TESTS WORK AND REMOVE THIS OPTION -->
145
            <plugin>
146
                <groupId>org.apache.maven.plugins</groupId>
147
                <artifactId>maven-surefire-plugin</artifactId>
148
                <configuration>
149
                    <skipTests>true</skipTests>
150
                </configuration>
151
            </plugin>
152
        </plugins>
153
    </build>
154

  
155
</project>
156

  
0 157

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.30/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/buildNumber.properties
1
#Tue Nov 03 20:00:00 CET 2015
2
buildNumber=2090
0 3

  
org.gvsig.projection.jcrs/tags/org.gvsig.projection.jcrs-2.1.30/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/main/java/org/gvsig/crs/gui/listeners/CRSMainTrPanelListener.java
1
/* gvSIG. Sistema de Informacin Geogrfica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2006 Instituto de Desarrollo Regional and Generalitat Valenciana.
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 *
19
 * For more information, contact:
20
 *
21
 *  Generalitat Valenciana
22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ibez, 50
24
 *   46010 VALENCIA
25
 *   SPAIN
26
 *
27
 *      +34 963862235
28
 *   gvsig@gva.es
29
 *      www.gvsig.gva.es
30
 *
31
 *    or
32
 *
33
 *   Instituto de Desarrollo Regional (Universidad de Castilla La-Mancha)
34
 *   Campus Universitario s/n
35
 *   02071 Alabacete
36
 *   Spain
37
 *
38
 *   +34 967 599 200
39
 */
40

  
41

  
42
package org.gvsig.crs.gui.listeners;
43

  
44
import java.awt.CardLayout;
45
import java.awt.event.ActionEvent;
46
import java.awt.event.ActionListener;
47
import java.awt.event.ItemEvent;
48
import java.awt.event.ItemListener;
49
import java.awt.event.KeyEvent;
50
import java.awt.event.KeyListener;
51
import java.awt.event.MouseEvent;
52
import java.awt.event.MouseListener;
53
import java.sql.ResultSet;
54
import java.sql.SQLException;
55

  
56
import javax.swing.JComboBox;
57
import javax.swing.JOptionPane;
58
import javax.swing.ListSelectionModel;
59
import javax.swing.event.ListSelectionEvent;
60
import javax.swing.event.ListSelectionListener;
61

  
62
import org.gvsig.andami.PluginServices;
63
import org.gvsig.crs.CrsGT;
64
import org.gvsig.crs.CrsWkt;
65
import org.gvsig.crs.ICrs;
66
import org.gvsig.crs.gui.CRSMainTrPanel;
67
import org.gvsig.crs.gui.panels.InfoCRSPanel;
68
import org.gvsig.crs.ogr.TransEPSG;
69
import org.gvsig.crs.persistence.CompTrData;
70
import org.gvsig.crs.persistence.CrsData;
71
import org.gvsig.crs.persistence.RecentCRSsPersistence;
72
import org.gvsig.crs.persistence.RecentTrsPersistence;
73
import org.gvsig.crs.persistence.TrData;
74
import org.slf4j.Logger;
75
import org.slf4j.LoggerFactory;
76

  
77
import es.idr.teledeteccion.connection.Query;
78

  
79
/**
80
 * Esta clase contiene todos los listeners necesarios para el manejo 
81
 * de los eventos del panel de eleccin de CRS de la capa y de su
82
 * tranformacin. 
83
 * 
84
 * @author Diego Guerrero Sevilla (diego.guerrero@uclm.es) 
85
 * @author Jos Luis Gmez Martnez (jolugomar@gmail.com)
86
 *
87
 */
88

  
89
public class CRSMainTrPanelListener implements ActionListener, 
90
			ListSelectionListener, ItemListener, MouseListener, KeyListener{
91

  
92
	public static final Logger logger = LoggerFactory.getLogger(CRSMainTrPanelListener.class);
93
	
94
	int[] valid_method_code = { 1024, 9800, 9801, 9802, 9803, 9804, 9805, 9806, 9807, 9809, 9810, 
95
			9811, 9812, 9813, 9814, 9815, 9602, 9659, 9818, 9819, 9820, 9821, 9822, 9823, 
96
			9827, 9829};
97
	        
98
	private CRSMainTrPanel panel = null;
99
		
100
	public CRSMainTrPanelListener(CRSMainTrPanel p) {
101
		panel=p;	
102
	}
103
	
104
	/**
105
	 * Manejador de los eventos relacionados con los botones del panel
106
	 * de transformacin y al combobox de las transformaciones
107
	 */
108
	public void actionPerformed(ActionEvent e) {
109
		if(	e.getSource() == panel.getJButtonAccept()){
110
			if (panel.isEpsg_tr()) {			
111
				TransEPSG epsgParams = new TransEPSG(panel.getEpsgTrPanel().getTransformation_code(),panel.getEpsgTrPanel().connect, panel.getEpsgTrPanel().inverseTranformation);
112
				panel.getEpsgTrPanel().setValues(epsgParams.getParamValue());	
113
				panel.setProjection(panel.getEpsgTrPanel().getProjection());
114
				panel.setEpsg_tr(false);
115
				
116
				/*
117
				 * Actualizar Transformaciones recientes
118
				 */
119
				String authority = "EPSG";
120
	    		String name = (String)panel.getEpsgTrPanel().sorter.getValueAt(panel.getEpsgTrPanel().selectedRowTable,1);
121
	    		int code = panel.getEpsgTrPanel().getTransformation_code();
122
	    		String crsSource = "EPSG:"+String.valueOf(panel.getEpsgTrPanel().getSource()); 	    			
123
	    		String crsTarget = "EPSG:"+String.valueOf(panel.getEpsgTrPanel().getTarget()); 	    			
124
	    		String details = (String)panel.getEpsgTrPanel().sorter.getValueAt(panel.getEpsgTrPanel().selectedRowTable,5);
125
	    		TrData trData = new TrData(authority,code,name,crsSource,crsTarget,details);
126
	    		RecentTrsPersistence trPersistence = new RecentTrsPersistence();
127
	    		trPersistence.addTrData(trData);
128
				
129
	    		
130
			}
131
			else if (panel.isManual_tr()) {
132
				boolean domain = panel.getManualTrPanel().correctJTextField();
133
				if (domain && panel.getManualTrPanel().correctDomain()){
134
					panel.setProjection(panel.getManualTrPanel().getProjection());
135
					panel.setManual_tr(false);
136
				}
137
				else if (!domain) {
138
					JOptionPane.showMessageDialog(panel, 
139
							PluginServices.getText(this,"numeric_format"), 
140
							"Warning...", JOptionPane.WARNING_MESSAGE);					
141
					return;
142
				}				
143
				else {
144
					JOptionPane.showMessageDialog(panel, 
145
							PluginServices.getText(this,"incorrect_domain"), 
146
							"Warning...", JOptionPane.WARNING_MESSAGE);					
147
					return;
148
				}
149
				
150
				/*
151
				 * Actualizar Transformaciones recientes
152
				 */
153
				String authority = "USR";
154
	    		String name = PluginServices.getText(this,"manual");
155
	    		int code = 0;
156
	    		String crsSource = panel.getManualTrPanel().getSourceAbrev();
157
	    		String crsTarget = panel.getManualTrPanel().getTargetAbrev();
158
	    		String details = panel.getManualTrPanel().getValues();
159
	    		 
160
	    		TrData trData = new TrData(authority,code,name,crsSource,crsTarget,details);
161
	    		RecentTrsPersistence trPersistence = new RecentTrsPersistence();
162
	    		trPersistence.addTrData(trData);
163
				
164
			}
165
			else if (panel.isNads_tr()) {
166
				panel.setProjection(panel.getNadsTrPanel().getProjection());
167
				panel.setTargetNad(panel.getNadsTrPanel().getNad());
168
				panel.setNads_tr(false);
169
				
170
				/*
171
				 * Actualizar Transformaciones recientes
172
				 */
173
				String authority = "NADGR";
174
	    		String name = "----";
175
	    		int code = 0;
176
	    		String crsSource = panel.getNadsTrPanel().getSourceAbrev();
177
	    		String crsTarget = panel.getNadsTrPanel().getTargetAbrev();
178
	    		String details = "";
179
	    		if (panel.getNadsTrPanel().getNad())
180
	    			details = panel.getNadsTrPanel().getNadFile()+ " ("+panel.getNadsTrPanel().getTargetAbrev() +")";
181
	    		else
182
	    			details = panel.getNadsTrPanel().getNadFile()+ " ("+panel.getNadsTrPanel().getSourceAbrev() +")"; 
183
	    		TrData trData = new TrData(authority,code,name,crsSource,crsTarget,details);
184
	    		RecentTrsPersistence trPersistence = new RecentTrsPersistence();
185
	    		trPersistence.addTrData(trData);
186
			}
187
			/*
188
			 * Ver que es necesario cuando aceptas en el panel de transformaciones
189
			 * recientes.
190
			 */
191
			else if (panel.isRecents_tr()) {
192
				String[] transformation = ((String)panel.getRecentsTrPanel().sorter.getValueAt(panel.getRecentsTrPanel().selectedRowTable,0)).split(":");
193
				if (transformation[0].equals("USR")){
194
	        		panel.getRecentsTrPanel().setParamsManual((String)panel.getRecentsTrPanel().sorter.getValueAt(panel.getRecentsTrPanel().selectedRowTable,4));
195
	        		panel.setProjection(panel.getRecentsTrPanel().getProjection());
196
	        	}
197
				if (transformation[0].equals("EPSG")){
198
					TransEPSG epsgParams = new TransEPSG(panel.getRecentsTrPanel().getTrCode(),panel.getRecentsTrPanel().connect, panel.getRecentsTrPanel().getInverseTransformation());
199
					panel.getRecentsTrPanel().setParamsEPGS(epsgParams.getParamValue());
200
					panel.setProjection(panel.getRecentsTrPanel().getProjection());
201
	        	}
202
				if (transformation[0].equals("NADGR")){
203
					panel.setProjection(panel.getRecentsTrPanel().getProjectionNad((String)panel.getRecentsTrPanel().sorter.getValueAt(panel.getRecentsTrPanel().selectedRowTable,4)));
204
				}
205
				if (transformation[0].equals("COMP")) {
206
					panel.setProjection(panel.getRecentsTrPanel().getProjectionComplex((String)panel.getRecentsTrPanel().sorter.getValueAt(panel.getRecentsTrPanel().selectedRowTable,4)));
207
				}
208
				//panel.setProjection(panel.getRecentsTrPanel().getProjection());
209
				panel.setRecents_tr(false);
210
				
211
				/*
212
				 * Actualizar Transformaciones recientes
213
				 */
214
				String authCode = (String)panel.getRecentsTrPanel().sorter.getValueAt(panel.getRecentsTrPanel().selectedRowTable,0);
215
				String authority = authCode.split(":")[0];
216
	    		String name = (String)panel.getRecentsTrPanel().sorter.getValueAt(panel.getRecentsTrPanel().selectedRowTable,1);
217
	    		int code = Integer.parseInt(authCode.split(":")[1]);
218
	    		String crsSource = (String)panel.getRecentsTrPanel().sorter.getValueAt(panel.getRecentsTrPanel().selectedRowTable,2);
219
	    		String crsTarget = (String)panel.getRecentsTrPanel().sorter.getValueAt(panel.getRecentsTrPanel().selectedRowTable,3);
220
	    		String details = (String)panel.getRecentsTrPanel().sorter.getValueAt(panel.getRecentsTrPanel().selectedRowTable,4);	    		
221
	    		TrData trData = new TrData(authority,code,name,crsSource,crsTarget,details);
222
	    		RecentTrsPersistence trPersistence = new RecentTrsPersistence();
223
	    		trPersistence.addTrData(trData);
224
			}else if(panel.isCompuesta_tr()){
225
				//Selecciona transformacin compuesta
226
				//Mostrar el panel de transformacin de la Capa
227
				panel.setProjection(panel.getVistaTrPanel().getProjection());
228
				//panel.setTargetNad(panel.getNadsTrPanel().getNad());
229
				panel.setCompuesta_tr(false);			
230
				panel.setVista_tr(false);
231
				
232
				/**
233
				 * para actualizar las transformaciones recientes, tendremos
234
				 * que coger las dos transformaciones utilizadas...
235
				 */
236
				
237
				/*					
238
				 * Actualizar Transformaciones recientes
239
				 */
240
				String authorityLayer = null;
241
	    		String nameLayer = null;
242
	    		int codeLayer = 0;
243
	    		String crsSourceLayer = null;
244
	    		String crsTargetLayer = null;
245
	    		String detailsLayer = "";
246
	    		
247
				if(panel.getCapaTrPanel().getJComboOptions().getSelectedItem().equals(PluginServices.getText(this,"recents_transformation"))){
248
					String[] transform = ((String)panel.getCapaTrPanel().getRecentsTrPanel().sorter.getValueAt(panel.getCapaTrPanel().getRecentsTrPanel().selectedRowTable,0)).split(":");
249
					
250
					authorityLayer = PluginServices.getText(this, transform[0]);						
251
					nameLayer = (String)panel.getCapaTrPanel().getRecentsTrPanel().sorter.getValueAt(panel.getCapaTrPanel().getRecentsTrPanel().selectedRowTable,1);
252
					crsSourceLayer = (String)panel.getCapaTrPanel().getRecentsTrPanel().sorter.getValueAt(panel.getCapaTrPanel().getRecentsTrPanel().selectedRowTable,2);
253
					crsTargetLayer = (String)panel.getCapaTrPanel().getRecentsTrPanel().sorter.getValueAt(panel.getCapaTrPanel().getRecentsTrPanel().selectedRowTable,3);
254
					detailsLayer = (String)panel.getCapaTrPanel().getRecentsTrPanel().sorter.getValueAt(panel.getCapaTrPanel().getRecentsTrPanel().selectedRowTable,4);
255
				}
256
				else if(panel.getCapaTrPanel().getJComboOptions().getSelectedItem().equals(PluginServices.getText(this,"transformacion_epsg"))){
257
					authorityLayer = "EPSG";
258
		    		nameLayer = (String)panel.getCapaTrPanel().getEpsgTrPanel().sorter.getValueAt(panel.getCapaTrPanel().getEpsgTrPanel().selectedRowTable,1);
259
		    		codeLayer = panel.getCapaTrPanel().getEpsgTrPanel().getTransformation_code();
260
		    		crsSourceLayer = "EPSG:"+String.valueOf(panel.getCapaTrPanel().getEpsgTrPanel().getSource()); 	    			
261
		    		crsTargetLayer = "EPSG:"+String.valueOf(panel.getCapaTrPanel().getEpsgTrPanel().getTarget()); 	    			
262
		    		detailsLayer = (String)panel.getCapaTrPanel().getEpsgTrPanel().sorter.getValueAt(panel.getCapaTrPanel().getEpsgTrPanel().selectedRowTable,5);
263
		    		
264
				}
265
				else if(panel.getCapaTrPanel().getJComboOptions().getSelectedItem().equals(PluginServices.getText(this,"transformacion_manual"))){
266
					authorityLayer = "USR";
267
		    		nameLayer = PluginServices.getText(this,"manual");
268
		    		codeLayer = 0;
269
		    		crsSourceLayer = panel.getCapaTrPanel().getManualTrPanel().getSourceAbrev();
270
		    		crsTargetLayer = panel.getCapaTrPanel().getManualTrPanel().getTargetAbrev();
271
		    		detailsLayer = panel.getCapaTrPanel().getManualTrPanel().getValues();
272
				}
273
				else if(panel.getCapaTrPanel().getJComboOptions().getSelectedItem().equals(PluginServices.getText(this,"nadgrids"))){
274
					authorityLayer = "NADGR";
275
		    		nameLayer = "----";
276
		    		codeLayer = 0;
277
		    		crsSourceLayer = panel.getCapaTrPanel().getNadsTrPanel().getSourceAbrev();
278
		    		crsTargetLayer = panel.getCapaTrPanel().getNadsTrPanel().getTargetAbrev();
279
		    		detailsLayer = panel.getCapaTrPanel().getNadsTrPanel().getNadFile()+ " ("+panel.getCapaTrPanel().getNadsTrPanel().getSourceAbrev() +")";
280
				}		    		 
281
	    		TrData trDataLayer = new TrData(authorityLayer,codeLayer,nameLayer,crsSourceLayer,crsTargetLayer,detailsLayer);
282
	    		
283
	    		String authorityView = null;
284
	    		String nameView = null;
285
	    		int codeView = 0;
286
	    		String crsSourceView = null;
287
	    		String crsTargetView = null;
288
	    		String detailsView = "";
289
	    		
290
				if(panel.getVistaTrPanel().getJComboOptions().getSelectedItem().equals(PluginServices.getText(this,"recents_transformation"))){
291
					String[] transform = ((String)panel.getVistaTrPanel().getRecentsTrPanel().sorter.getValueAt(panel.getVistaTrPanel().getRecentsTrPanel().selectedRowTable,0)).split(":");
292
					
293
					authorityView = PluginServices.getText(this, transform[0]);						
294
					nameView = (String)panel.getVistaTrPanel().getRecentsTrPanel().sorter.getValueAt(panel.getVistaTrPanel().getRecentsTrPanel().selectedRowTable,1);
295
					crsSourceView = (String)panel.getVistaTrPanel().getRecentsTrPanel().sorter.getValueAt(panel.getVistaTrPanel().getRecentsTrPanel().selectedRowTable,2);
296
					crsTargetView = (String)panel.getVistaTrPanel().getRecentsTrPanel().sorter.getValueAt(panel.getVistaTrPanel().getRecentsTrPanel().selectedRowTable,3);
297
					detailsView = (String)panel.getVistaTrPanel().getRecentsTrPanel().sorter.getValueAt(panel.getVistaTrPanel().getRecentsTrPanel().selectedRowTable,4);
298
				}
299
				else if(panel.getVistaTrPanel().getJComboOptions().getSelectedItem().equals(PluginServices.getText(this,"transformacion_epsg"))){
300
					authorityView = "EPSG";
301
		    		nameView = (String)panel.getVistaTrPanel().getEpsgTrPanel().sorter.getValueAt(panel.getVistaTrPanel().getEpsgTrPanel().selectedRowTable,1);
302
		    		codeView = panel.getVistaTrPanel().getEpsgTrPanel().getTransformation_code();
303
		    		crsSourceView = "EPSG:"+String.valueOf(panel.getVistaTrPanel().getEpsgTrPanel().getSource()); 	    			
304
		    		crsTargetView = "EPSG:"+String.valueOf(panel.getVistaTrPanel().getEpsgTrPanel().getTarget()); 	    			
305
		    		detailsView = (String)panel.getVistaTrPanel().getEpsgTrPanel().sorter.getValueAt(panel.getVistaTrPanel().getEpsgTrPanel().selectedRowTable,5);
306
		    		
307
				}
308
				else if(panel.getVistaTrPanel().getJComboOptions().getSelectedItem().equals(PluginServices.getText(this,"transformacion_manual"))){
309
					authorityView = "USR";
310
		    		nameView = PluginServices.getText(this,"manual");
311
		    		codeView = 0;
312
		    		crsSourceView = panel.getVistaTrPanel().getManualTrPanel().getSourceAbrev();
313
		    		crsTargetView = panel.getVistaTrPanel().getManualTrPanel().getTargetAbrev();
314
		    		detailsView = panel.getVistaTrPanel().getManualTrPanel().getValues();
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff