Revision 15556

View differences:

org.gvsig.raster.lizardtech/tags/org.gvsig.raster.lizardtech-2.2.154/org.gvsig.raster.lizardtech.app/org.gvsig.raster.lizardtech.app.common/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>${project.artifactId}</baseDirectory>
32
  <includeBaseDirectory>true</includeBaseDirectory>
33
  <files>
34
    <file>
35
      <source>target/${project.artifactId}-${project.version}.jar</source>
36
      <outputDirectory>lib</outputDirectory>
37
    </file>
38
    <file>
39
      <source>target/package.info</source>
40
    </file>
41
  </files>
42

  
43
  <fileSets>
44
    <fileSet>
45
      <directory>src/main/resources-plugin</directory>
46
      <outputDirectory>.</outputDirectory>
47
    </fileSet>
48
  </fileSets>
49

  
50

  
51
  <dependencySets>
52
    <dependencySet>
53
      <useProjectArtifact>false</useProjectArtifact>
54
      <useTransitiveDependencies>false</useTransitiveDependencies>
55
      <outputDirectory>lib</outputDirectory>
56
		  <includes>
57
        <include>org.gvsig:org.gvsig.raster.lizardtech.io:jar</include>
58
		  </includes>
59
    </dependencySet>
60
  </dependencySets>
61

  
62
</assembly>
63

  
64

  
org.gvsig.raster.lizardtech/tags/org.gvsig.raster.lizardtech-2.2.154/org.gvsig.raster.lizardtech.app/org.gvsig.raster.lizardtech.app.common/src/main/java/org/gvsig/raster/lizardtech/app/LizardTechExtension.java
1
/* gvSIG. Geographic Information System of the Valencian Government
2
*
3
* Copyright (C) 2007-2008 Infrastructures and Transports Department
4
* of the Valencian Government (CIT)
5
* 
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
10
* 
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
* GNU General Public License for more details.
15
* 
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
* MA  02110-1301, USA.
20
* 
21
*/
22
package org.gvsig.raster.lizardtech.app;
23

  
24
import org.gvsig.andami.plugins.Extension;
25

  
26
/**
27
 * Entry point for this extension 
28
 * @author Nacho Brodin (nachobrodin@gmail.com)
29
 */
30
public class LizardTechExtension extends Extension {
31

  
32
	public void execute(String actionCommand) {
33
	}
34

  
35
	public void initialize() {
36
	}
37
	
38
	public boolean isEnabled() {
39
		return false;
40
	}
41

  
42
	public boolean isVisible() {
43
		return false;
44
	}
45

  
46
}
org.gvsig.raster.lizardtech/tags/org.gvsig.raster.lizardtech-2.2.154/org.gvsig.raster.lizardtech.app/org.gvsig.raster.lizardtech.app.common/src/main/resources-plugin/config.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<plugin-config>
3
	<depends plugin-name="org.gvsig.raster.mainplugin" />
4
	<depends plugin-name="org.gvsig.raster.tilecache.app" optional="true" />
5
	<libraries library-dir="lib"/>
6
	<resourceBundle name="text"/>
7
	<extensions>
8
		<extension class-name="org.gvsig.raster.lizardtech.app.LizardTechExtension"
9
			description=""
10
			active="true"
11
			priority="1">
12
		</extension>
13
	</extensions>
14
</plugin-config>
org.gvsig.raster.lizardtech/tags/org.gvsig.raster.lizardtech-2.2.154/org.gvsig.raster.lizardtech.app/org.gvsig.raster.lizardtech.app.common/pom.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2

  
3
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4
	<modelVersion>4.0.0</modelVersion>
5
	<artifactId>org.gvsig.raster.lizardtech.app.common</artifactId>
6
	<packaging>jar</packaging>
7
	<name>${project.artifactId}</name>
8
	<description />
9
	<parent>
10
    <groupId>org.gvsig</groupId>
11
    <artifactId>org.gvsig.raster.lizardtech.app</artifactId>
12
    <version>2.2.154</version>
13
  </parent>
14

  
15
	<dependencies>
16
		<dependency>
17
			<groupId>org.gvsig</groupId>
18
			<artifactId>org.gvsig.andami</artifactId>
19
			<scope>compile</scope>
20
		</dependency>
21
    	<dependency>
22
			<groupId>org.gvsig</groupId>
23
			<artifactId>org.gvsig.raster.lizardtech.io</artifactId>
24
      <scope>runtime</scope>
25
		</dependency>
26
		<dependency>
27
			<groupId>org.gvsig</groupId>
28
			<artifactId>org.gvsig.jmrsid</artifactId>
29
      <scope>compile</scope>
30
		</dependency>
31
	</dependencies>
32
	
33
  <properties>
34
      <!-- Control the deploy of the plugin in gvsig.product.folder.path/gvSIG/extensiones -->
35
      <gvsig.install.plugin>false</gvsig.install.plugin>
36
      <!--  Control the deploy of the plugin package in gvsig.product.folder.path/install -->
37
      <gvsig.install.plugin.package>false</gvsig.install.plugin.package>
38
  </properties>		
39
</project>
40

  
org.gvsig.raster.lizardtech/tags/org.gvsig.raster.lizardtech-2.2.154/org.gvsig.raster.lizardtech.app/org.gvsig.raster.lizardtech.app.common/buildNumber.properties
1
#Fri Nov 26 01:12:40 CET 2021
2
buildNumber=208
0 3

  
org.gvsig.raster.lizardtech/tags/org.gvsig.raster.lizardtech-2.2.154/org.gvsig.raster.lizardtech.app/org.gvsig.raster.lizardtech.app.lin.x86_64/buildNumber.properties
1
#Fri Nov 26 01:12:41 CET 2021
2
buildNumber=208
org.gvsig.raster.lizardtech/tags/org.gvsig.raster.lizardtech-2.2.154/org.gvsig.raster.lizardtech.app/org.gvsig.raster.lizardtech.app.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.raster.lizardtech.app.common</directory>
42
      <outputDirectory>.</outputDirectory>
43
      <excludes>
44
      	<exclude>package.info</exclude>
45
      </excludes>
46
    </fileSet>
47
    <fileSet>
48
      <directory>target/native/jmrsid</directory>
49
      <outputDirectory>./jmrsid</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.jmrsid:jar</include>
65
		</includes>
66
    </dependencySet>
67
  </dependencySets>
68

  
69
</assembly>
70

  
org.gvsig.raster.lizardtech/tags/org.gvsig.raster.lizardtech-2.2.154/org.gvsig.raster.lizardtech.app/org.gvsig.raster.lizardtech.app.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
add_library_path "$PLUGIN_FOLDER/jmrsid/lib64"
34

  
35
list_shared_library_dependencies "$PLUGIN_FOLDER/jmrsid/lib64/"libjmrsid*
org.gvsig.raster.lizardtech/tags/org.gvsig.raster.lizardtech-2.2.154/org.gvsig.raster.lizardtech.app/org.gvsig.raster.lizardtech.app.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.raster.lizardtech.app.lin.x86_64</artifactId>
5
  <packaging>jar</packaging>
6
   
7
 	<parent>
8
		<groupId>org.gvsig</groupId>
9
		<artifactId>org.gvsig.raster.lizardtech.app</artifactId>
10
    <version>2.2.154</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
    
17
    <jmrsid.classifier>linux-all-gcc4-X86_64-dynamic</jmrsid.classifier>
18
    <jmrsid.version>2.0.0</jmrsid.version>
19
    
20
    <!--
21
    No hay version dinamica de la libreria de mrsid, esta enlazada staticamente
22
    en jmrsid.
23
    <mrsid.classifier >linux-all-gcc4-X86_64-dynamic</mrsid.classifier>
24
 		<mrsid.version>7.0.0.2164</mrsid.version>     
25
 		-->
26
 		
27
  </properties>
28
  
29
  <dependencyManagement>
30
      <dependencies>
31
       <dependency>
32
            <groupId>org.gvsig</groupId>
33
            <artifactId>org.gvsig.jmrsid</artifactId>
34
            <version>${jmrsid.version}</version>
35
            <classifier>${jmrsid.classifier}</classifier>
36
            <type>tar.gz</type>
37
        </dependency>
38
        
39
        <!--
40
         <dependency>
41
	          <groupId>com.lizardtech</groupId>
42
	          <artifactId>mrsid</artifactId>
43
            <classifier>${mrsid.classifier}</classifier>
44
            <version>${mrsid.version}</version>
45
            <type>tar.gz</type>
46
	    </dependency>      
47
      -->
48
    </dependencies>
49
  </dependencyManagement>
50

  
51
  <dependencies>
52
  
53
    <dependency>
54
      <groupId>org.gvsig</groupId>
55
      <artifactId>org.gvsig.raster.lizardtech.app.common</artifactId>
56
      <type>zip</type>
57
    </dependency>
58
    <dependency>
59
			<groupId>org.gvsig</groupId>
60
			<artifactId>org.gvsig.andami</artifactId>
61
			<scope>compile</scope>
62
		</dependency>
63
		<dependency>
64
			<groupId>org.gvsig</groupId>
65
			<artifactId>org.gvsig.raster.lizardtech.io</artifactId>
66
			<scope>runtime</scope>
67
		</dependency>
68

  
69

  
70

  
71
		<dependency>
72
			  <groupId>org.gvsig</groupId>
73
        <artifactId>org.gvsig.jmrsid</artifactId>
74
        <version>${jmrsid.version}</version>
75
        <scope>compile</scope>
76
		</dependency>
77
    <dependency>
78
        <groupId>org.gvsig</groupId>
79
        <artifactId>org.gvsig.jmrsid</artifactId>
80
        <version>${jmrsid.version}</version>
81
        <classifier>${jmrsid.classifier}</classifier>
82
        <type>tar.gz</type>
83
        <scope>runtime</scope>
84
    </dependency>
85
    <!--
86
    <dependency>
87
        <groupId>com.lizardtech</groupId>
88
        <artifactId>mrsid</artifactId>
89
        <classifier>${mrsid.classifier}</classifier>
90
        <version>${mrsid.version}</version>
91
        <type>tar.gz</type>
92
        <scope>runtime</scope>
93
    </dependency>
94
    -->
95
  </dependencies>
96

  
97
  <build>
98
    <plugins>
99
  
100
      <plugin>
101
        <groupId>org.apache.maven.plugins</groupId>
102
        <artifactId>maven-dependency-plugin</artifactId>
103
        <executions>
104
          <execution>
105
          	<id>unpack</id>
106
	        <phase>process-sources</phase>
107
	        <goals>
108
	          <goal>unpack</goal>
109
	        </goals>
110
	        <configuration>
111
	          <artifactItems>
112
	            <artifactItem>
113
		            <groupId>org.gvsig</groupId>
114
		            <artifactId>org.gvsig.raster.lizardtech.app.common</artifactId>
115
		            <type>zip</type>
116
					      <overWrite>true</overWrite>
117
					      <outputDirectory>target</outputDirectory>
118
	            </artifactItem>
119
	            
120
	            <artifactItem>
121
                <groupId>org.gvsig</groupId>
122
                <artifactId>org.gvsig.jmrsid</artifactId>
123
                <version>${jmrsid.version}</version>
124
                <classifier>${jmrsid.classifier}</classifier>
125
                <type>tar.gz</type>
126
					      <overWrite>true</overWrite>
127
					      <outputDirectory>target/native/jmrsid</outputDirectory>
128
	            </artifactItem>
129
	     
130
	            <!--       
131
	            <artifactItem>
132
                <groupId>com.lizardtech</groupId>
133
                <artifactId>mrsid</artifactId>
134
                <classifier>${mrsid.classifier}</classifier>
135
                <version>${mrsid.version}</version>
136
                <type>tar.gz</type>
137
					      <overWrite>true</overWrite>
138
					      <outputDirectory>target/native/mrsid</outputDirectory>
139
	            </artifactItem>
140
	            -->
141
	            
142
	          </artifactItems>
143
	        </configuration>
144
          </execution>
145
        </executions>
146
	  </plugin>
147
  
148
  
149
    </plugins>
150
  </build>
151
  <!-- 
152
  The profiles only configure the automatic deploy of gvSIG plugin in the gvSIG
153
  configured in HOME/.gvsig-devel.properties
154
  -->
155
  <profiles>
156
  
157
    <profile>
158
      <id>gvsig-plugin-install-raster-linux-x86_64</id>
159
      <activation>
160
         <os>
161
             <family>unix</family>
162
             <name>linux</name>
163
             <arch>x86_64</arch>
164
         </os>
165
      </activation>
166
	    <properties>
167
	      <gvsig.install.plugin>true</gvsig.install.plugin>
168
	    </properties>
169
    </profile>
170

  
171
    <profile>
172
      <id>gvsig-plugin-install-raster-linux-amd64</id>
173
      <activation>
174
         <os>
175
             <family>unix</family>
176
             <name>linux</name>
177
             <arch>amd64</arch>
178
         </os>
179
      </activation>
180
      <properties>
181
         <gvsig.install.plugin>true</gvsig.install.plugin>
182
      </properties>
183
    </profile>
184

  
185
  </profiles>
186
  
187
</project>
188

  
0 189

  
org.gvsig.raster.lizardtech/tags/org.gvsig.raster.lizardtech-2.2.154/org.gvsig.raster.lizardtech.app/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.raster.lizardtech.app</artifactId>
6
  <packaging>pom</packaging>
7
	<name>Formats: MrSID file format support</name>
8
	<description>Lizardtech data provider (MrSID) for gvSIG</description>
9
	<parent>
10
    <groupId>org.gvsig</groupId>
11
    <artifactId>org.gvsig.raster.lizardtech</artifactId>
12
    <version>2.2.154</version>
13
  </parent>
14
  
15
  <properties>
16
    <svn.tags.folder>https://devel.gvsig.org/svn/gvsig-raster/org.gvsig.raster.lizardtech/tags/</svn.tags.folder>
17
    <gvsig.install.plugin>false</gvsig.install.plugin>  
18
        
19
    <gvsig.package.info.state>testing</gvsig.package.info.state>
20
    <gvsig.package.info.official>true</gvsig.package.info.official>
21
    <gvsig.package.info.operatingSystem>all</gvsig.package.info.operatingSystem>
22
    <gvsig.package.info.architecture>all</gvsig.package.info.architecture>
23
		<gvsig.package.info.categories>Raster, Formats</gvsig.package.info.categories>
24
    <gvsig.package.info.poolURL>https://devel.gvsig.org/download/projects/Raster/pool/</gvsig.package.info.poolURL>
25
    <gvsig.package.info.dependencies />
26
    <gvsig.package.info.code>org.gvsig.raster.lizardtech.app</gvsig.package.info.code>
27
    <gvsig.package.info.codealias />
28
    <gvsig.package.info.name>${project.parent.name}</gvsig.package.info.name>
29
    <gvsig.package.info.description>${project.parent.description}</gvsig.package.info.description>
30
    <gvsig.install.plugin>false</gvsig.install.plugin>    
31
		<gvsig.package.info.dependencies>required: org.gvsig.raster.tilecache.app -ge 2</gvsig.package.info.dependencies>
32

  
33
  </properties>
34
  
35
  <modules>
36
    <module>org.gvsig.raster.lizardtech.app.common</module>
37
    <module>org.gvsig.raster.lizardtech.app.lin.x86</module>
38
    <module>org.gvsig.raster.lizardtech.app.lin.x86_64</module>
39
    <module>org.gvsig.raster.lizardtech.app.win.x86</module>
40
  </modules>
41

  
42

  
43
</project>
44

  
0 45

  
org.gvsig.raster.lizardtech/tags/org.gvsig.raster.lizardtech-2.2.154/org.gvsig.raster.lizardtech.app/org.gvsig.raster.lizardtech.app.win.x86/buildNumber.properties
1
#Fri Nov 26 01:12:41 CET 2021
2
buildNumber=208
org.gvsig.raster.lizardtech/tags/org.gvsig.raster.lizardtech-2.2.154/org.gvsig.raster.lizardtech.app/org.gvsig.raster.lizardtech.app.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.raster.lizardtech.app.common</directory>
42
      <outputDirectory>.</outputDirectory>
43
      <excludes>
44
      	<exclude>package.info</exclude>
45
      </excludes>
46
    </fileSet>
47
    <fileSet>
48
      <directory>target/native/msv80</directory>
49
      <outputDirectory>./msv80</outputDirectory>
50
    </fileSet>
51
    <fileSet>
52
      <directory>target/native/msv90</directory>
53
      <outputDirectory>./msv90</outputDirectory>
54
    </fileSet>
55
    <fileSet>
56
      <directory>target/native/mrsid</directory>
57
      <outputDirectory>./mrsid</outputDirectory>
58
    </fileSet>
59
    <fileSet>
60
      <directory>target/native/jmrsid</directory>
61
      <outputDirectory>./jmrsid</outputDirectory>
62
    </fileSet>
63
    <fileSet>
64
      <directory>src/main/resources-plugin</directory>
65
      <outputDirectory>.</outputDirectory>
66
    </fileSet>
67
  </fileSets>
68

  
69

  
70
  <dependencySets>
71
    <dependencySet>
72
      <useProjectArtifact>false</useProjectArtifact>
73
      <useTransitiveDependencies>false</useTransitiveDependencies>
74
      <outputDirectory>lib</outputDirectory>
75
		<includes>
76
  		 <include>org.gvsig:org.gvsig.jmrsid:jar</include>
77
		</includes>
78
    </dependencySet>
79
  </dependencySets>
80

  
81
</assembly>
82

  
org.gvsig.raster.lizardtech/tags/org.gvsig.raster.lizardtech-2.2.154/org.gvsig.raster.lizardtech.app/org.gvsig.raster.lizardtech.app.win.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
add_library_path "$PLUGIN_FOLDER/jmrsid/bin"
34
add_library_path "$PLUGIN_FOLDER/mrsid/bin"
35
add_library_path "$PLUGIN_FOLDER/msv80/bin"
36
add_library_path "$PLUGIN_FOLDER/msv90/bin"
37

  
38
list_shared_library_dependencies "$PLUGIN_FOLDER/jmrsid/bin/"jmrsid*.dll
org.gvsig.raster.lizardtech/tags/org.gvsig.raster.lizardtech-2.2.154/org.gvsig.raster.lizardtech.app/org.gvsig.raster.lizardtech.app.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.raster.lizardtech.app.win.x86</artifactId>
5
  <packaging>jar</packaging>
6

  
7
 	<parent>
8
		<groupId>org.gvsig</groupId>
9
		<artifactId>org.gvsig.raster.lizardtech.app</artifactId>
10
    <version>2.2.154</version>
11
	</parent>
12

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

  
17
    <jmrsid.classifier>win-nt-vs8-i386-dynamic</jmrsid.classifier>
18
    <jmrsid.version>2.0.0</jmrsid.version>
19

  
20
    <mrsid.classifier>win-nt-vs8-i386-dynamic</mrsid.classifier>
21
    <mrsid.version>7.0.0.2164</mrsid.version>
22

  
23
    <visualcppredist1.classifier>win-nt-vs8-i386-dynamic</visualcppredist1.classifier>
24
    <visualcppredist1.version>2008</visualcppredist1.version>
25

  
26
    <visualcppredist2.classifier>win-nt-vs9-i386-dynamic</visualcppredist2.classifier>
27
    <visualcppredist2.version>9.0.21022.8</visualcppredist2.version>
28

  
29

  
30
  </properties>
31

  
32
  <dependencyManagement>
33
      <dependencies>
34
       <dependency>
35
            <groupId>org.gvsig</groupId>
36
            <artifactId>org.gvsig.jmrsid</artifactId>
37
            <version>${jmrsid.version}</version>
38
            <classifier>${jmrsid.classifier}</classifier>
39
            <type>tar.gz</type>
40
        </dependency>
41

  
42
         <dependency>
43
	          <groupId>com.lizardtech</groupId>
44
	          <artifactId>mrsid</artifactId>
45
            <classifier>${mrsid.classifier}</classifier>
46
            <version>${mrsid.version}</version>
47
            <type>tar.gz</type>
48
	    </dependency>
49

  
50
	    <dependency>
51
		    <groupId>com.microsoft</groupId>
52
		    <artifactId>visualcppredist</artifactId>
53
		    <version>${visualcppredist1.version}</version>
54
		    <classifier>${visualcppredist1.classifier}</classifier>
55
		    <type>tar.gz</type>
56
	    </dependency>
57

  
58
	    <dependency>
59
		    <groupId>com.microsoft</groupId>
60
		    <artifactId>visualcppredist</artifactId>
61
		    <version>${visualcppredist2.version}</version>
62
		    <classifier>${visualcppredist2.classifier}</classifier>
63
		    <type>tar.gz</type>
64
	    </dependency>
65

  
66
    </dependencies>
67
  </dependencyManagement>
68

  
69
  <dependencies>
70

  
71
    <dependency>
72
      <groupId>org.gvsig</groupId>
73
      <artifactId>org.gvsig.raster.lizardtech.app.common</artifactId>
74
      <type>zip</type>
75
    </dependency>
76
    <dependency>
77
			<groupId>org.gvsig</groupId>
78
			<artifactId>org.gvsig.andami</artifactId>
79
			<scope>compile</scope>
80
		</dependency>
81
		<dependency>
82
			<groupId>org.gvsig</groupId>
83
			<artifactId>org.gvsig.raster.lizardtech.io</artifactId>
84
			<scope>runtime</scope>
85
		</dependency>
86

  
87

  
88

  
89
		<dependency>
90
			  <groupId>org.gvsig</groupId>
91
        <artifactId>org.gvsig.jmrsid</artifactId>
92
        <version>${jmrsid.version}</version>
93
        <scope>compile</scope>
94
		</dependency>
95
    <dependency>
96
        <groupId>org.gvsig</groupId>
97
        <artifactId>org.gvsig.jmrsid</artifactId>
98
        <version>${jmrsid.version}</version>
99
        <classifier>${jmrsid.classifier}</classifier>
100
        <type>tar.gz</type>
101
        <scope>runtime</scope>
102
    </dependency>
103
    <dependency>
104
        <groupId>com.lizardtech</groupId>
105
        <artifactId>mrsid</artifactId>
106
        <classifier>${mrsid.classifier}</classifier>
107
        <version>${mrsid.version}</version>
108
        <type>tar.gz</type>
109
        <scope>runtime</scope>
110
    </dependency>
111

  
112
    <dependency>
113
	    <groupId>com.microsoft</groupId>
114
	    <artifactId>visualcppredist</artifactId>
115
	    <version>${visualcppredist1.version}</version>
116
	    <classifier>${visualcppredist1.classifier}</classifier>
117
	    <type>tar.gz</type>
118
    </dependency>
119
    <dependency>
120
	    <groupId>com.microsoft</groupId>
121
	    <artifactId>visualcppredist</artifactId>
122
	    <version>${visualcppredist2.version}</version>
123
	    <classifier>${visualcppredist2.classifier}</classifier>
124
	    <type>tar.gz</type>
125
    </dependency>
126

  
127

  
128
  </dependencies>
129

  
130
  <build>
131
    <plugins>
132

  
133
      <plugin>
134
        <groupId>org.apache.maven.plugins</groupId>
135
        <artifactId>maven-dependency-plugin</artifactId>
136
        <executions>
137
          <execution>
138
          	<id>unpack</id>
139
	        <phase>process-sources</phase>
140
	        <goals>
141
	          <goal>unpack</goal>
142
	        </goals>
143
	        <configuration>
144
	          <artifactItems>
145

  
146
	            <artifactItem>
147
		            <groupId>org.gvsig</groupId>
148
		            <artifactId>org.gvsig.raster.lizardtech.app.common</artifactId>
149
		            <type>zip</type>
150
					      <overWrite>true</overWrite>
151
					      <outputDirectory>target</outputDirectory>
152
	            </artifactItem>
153

  
154
	            <artifactItem>
155
                <groupId>org.gvsig</groupId>
156
                <artifactId>org.gvsig.jmrsid</artifactId>
157
                <version>${jmrsid.version}</version>
158
                <classifier>${jmrsid.classifier}</classifier>
159
                <type>tar.gz</type>
160
					      <overWrite>true</overWrite>
161
					      <outputDirectory>target/native/jmrsid</outputDirectory>
162
	            </artifactItem>
163

  
164
	            <artifactItem>
165
                <groupId>com.lizardtech</groupId>
166
                <artifactId>mrsid</artifactId>
167
                <classifier>${mrsid.classifier}</classifier>
168
                <version>${mrsid.version}</version>
169
                <type>tar.gz</type>
170
					      <overWrite>true</overWrite>
171
					      <outputDirectory>target/native/mrsid</outputDirectory>
172
	            </artifactItem>
173

  
174
	            <artifactItem>
175
		      <groupId>com.microsoft</groupId>
176
		      <artifactId>visualcppredist</artifactId>
177
		      <version>${visualcppredist1.version}</version>
178
		      <classifier>${visualcppredist1.classifier}</classifier>
179
		      <type>tar.gz</type>
180
		      <overWrite>true</overWrite>
181
		      <outputDirectory>target/native/msv80</outputDirectory>
182
	            </artifactItem>
183

  
184
	            <artifactItem>
185
		      <groupId>com.microsoft</groupId>
186
		      <artifactId>visualcppredist</artifactId>
187
		      <version>${visualcppredist2.version}</version>
188
		      <classifier>${visualcppredist2.classifier}</classifier>
189
		      <type>tar.gz</type>
190
		      <overWrite>true</overWrite>
191
		      <outputDirectory>target/native/msv90</outputDirectory>
192
	            </artifactItem>
193

  
194
	          </artifactItems>
195
	        </configuration>
196
          </execution>
197
        </executions>
198
	  </plugin>
199

  
200

  
201
    </plugins>
202
  </build>
203

  
204
  <!--
205
  The profiles only configure the automatic deploy of gvSIG plugin in the gvSIG
206
  configured in HOME/.gvsig-devel.properties
207
  -->
208
  <profiles>
209

  
210
    <profile>
211
      <id>gvsig-plugin-install-raster-windows-x86</id>
212
      <activation>
213
         <os>
214
             <family>windows</family>
215
             <!-- Uncomment this when have support for amd64 -->
216
             <!--
217
             <arch>x86</arch>
218
             -->
219
         </os>
220
      </activation>
221
	  <properties>
222
	    <gvsig.install.plugin>true</gvsig.install.plugin>
223
	  </properties>
224
    </profile>
225

  
226
  </profiles>
227

  
228
</project>
229

  
0 230

  
org.gvsig.raster.lizardtech/tags/org.gvsig.raster.lizardtech-2.2.154/org.gvsig.raster.lizardtech.app/org.gvsig.raster.lizardtech.app.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.raster.lizardtech.app.lin.x86</artifactId>
5
  <packaging>jar</packaging>
6
   
7
 	<parent>
8
		<groupId>org.gvsig</groupId>
9
		<artifactId>org.gvsig.raster.lizardtech.app</artifactId>
10
    <version>2.2.154</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
    
17
    <jmrsid.classifier>linux-all-gcc4-i386-dynamic</jmrsid.classifier>
18
    <jmrsid.version>2.0.0</jmrsid.version>
19
    
20
    <!--
21
    No hay version dinamica de la libreria de mrsid, esta enlazada staticamente
22
    en jmrsid.
23
    <mrsid.classifier >linux-all-gcc4-i386-dynamic</mrsid.classifier>
24
 		<mrsid.version>7.0.0.2164</mrsid.version>    
25
 		-->
26
  </properties>
27

  
28
  <dependencyManagement>
29
      <dependencies>
30
       <dependency>
31
            <groupId>org.gvsig</groupId>
32
            <artifactId>org.gvsig.jmrsid</artifactId>
33
            <version>${jmrsid.version}</version>
34
            <classifier>${jmrsid.classifier}</classifier>
35
            <type>tar.gz</type>
36
        </dependency>
37
        
38
        <!--    
39
         <dependency>
40
	          <groupId>com.lizardtech</groupId>
41
	          <artifactId>mrsid</artifactId>
42
            <classifier>${mrsid.classifier}</classifier>
43
            <version>${mrsid.version}</version>
44
            <type>tar.gz</type>
45
	      </dependency>      
46
        -->
47
      
48
    </dependencies>
49
  </dependencyManagement>
50

  
51
  <dependencies>
52
  
53
    <dependency>
54
      <groupId>org.gvsig</groupId>
55
      <artifactId>org.gvsig.raster.lizardtech.app.common</artifactId>
56
      <type>zip</type>
57
    </dependency>
58
    <dependency>
59
			<groupId>org.gvsig</groupId>
60
			<artifactId>org.gvsig.andami</artifactId>
61
			<scope>compile</scope>
62
		</dependency>
63
		<dependency>
64
			<groupId>org.gvsig</groupId>
65
			<artifactId>org.gvsig.raster.lizardtech.io</artifactId>
66
			<scope>runtime</scope>
67
		</dependency>
68

  
69

  
70

  
71
		<dependency>
72
			  <groupId>org.gvsig</groupId>
73
        <artifactId>org.gvsig.jmrsid</artifactId>
74
        <version>${jmrsid.version}</version>
75
        <scope>compile</scope>
76
		</dependency>
77
    <dependency>
78
        <groupId>org.gvsig</groupId>
79
        <artifactId>org.gvsig.jmrsid</artifactId>
80
        <version>${jmrsid.version}</version>
81
        <classifier>${jmrsid.classifier}</classifier>
82
        <type>tar.gz</type>
83
        <scope>runtime</scope>
84
    </dependency>
85
    
86
    <!--
87
    <dependency>
88
        <groupId>com.lizardtech</groupId>
89
        <artifactId>mrsid</artifactId>
90
        <classifier>${mrsid.classifier}</classifier>
91
        <version>${mrsid.version}</version>
92
        <type>tar.gz</type>
93
        <scope>runtime</scope>
94
    </dependency>
95
    -->
96
    
97
  </dependencies>
98

  
99
  <build>
100
    <plugins>
101
  
102
      <plugin>
103
        <groupId>org.apache.maven.plugins</groupId>
104
        <artifactId>maven-dependency-plugin</artifactId>
105
        <executions>
106
          <execution>
107
          	<id>unpack</id>
108
	        <phase>process-sources</phase>
109
	        <goals>
110
	          <goal>unpack</goal>
111
	        </goals>
112
	        <configuration>
113
	          <artifactItems>
114
	            <artifactItem>
115
		            <groupId>org.gvsig</groupId>
116
		            <artifactId>org.gvsig.raster.lizardtech.app.common</artifactId>
117
		            <type>zip</type>
118
					      <overWrite>true</overWrite>
119
					      <outputDirectory>target</outputDirectory>
120
	            </artifactItem>
121
	            
122
	            <artifactItem>
123
                <groupId>org.gvsig</groupId>
124
                <artifactId>org.gvsig.jmrsid</artifactId>
125
                <version>${jmrsid.version}</version>
126
                <classifier>${jmrsid.classifier}</classifier>
127
                <type>tar.gz</type>
128
					      <overWrite>true</overWrite>
129
					      <outputDirectory>target/native/jmrsid</outputDirectory>
130
	            </artifactItem>
131
	     
132
	            <!--       
133
	            <artifactItem>
134
                <groupId>com.lizardtech</groupId>
135
                <artifactId>mrsid</artifactId>
136
                <classifier>${mrsid.classifier}</classifier>
137
                <version>${mrsid.version}</version>
138
                <type>tar.gz</type>
139
					      <overWrite>true</overWrite>
140
					      <outputDirectory>target/native/mrsid</outputDirectory>
141
	            </artifactItem>
142
	            -->
143
	            
144
	          </artifactItems>
145
	        </configuration>
146
          </execution>
147
        </executions>
148
	  </plugin>
149
  
150
  
151
    </plugins>
152
  </build>
153

  
154
  <!-- 
155
  The profiles only configure the automatic deploy of gvSIG plugin in the gvSIG
156
  configured in HOME/.gvsig-devel.properties
157
  -->
158
  <profiles>
159
  
160
    <profile>
161
      <id>gvsig-plugin-install-raster-linux-x86</id>
162
      <activation>
163
         <os>
164
             <family>unix</family>
165
             <name>linux</name>
166
             <arch>x86</arch>
167
         </os>
168
      </activation>
169
	    <properties>
170
	      <gvsig.install.plugin>true</gvsig.install.plugin>
171
	    </properties>
172
    </profile>
173

  
174
    <profile>
175
      <id>gvsig-plugin-install-raster-linux-i386</id>
176
      <activation>
177
         <os>
178
             <family>unix</family>
179
             <name>linux</name>
180
             <arch>i386</arch>
181
         </os>
182
      </activation>
183
      <properties>
184
         <gvsig.install.plugin>true</gvsig.install.plugin>
185
      </properties>
186
    </profile>
187

  
188
  </profiles>
189
  
190
</project>
191

  
org.gvsig.raster.lizardtech/tags/org.gvsig.raster.lizardtech-2.2.154/org.gvsig.raster.lizardtech.app/org.gvsig.raster.lizardtech.app.lin.x86/buildNumber.properties
1
#Fri Nov 26 01:12:40 CET 2021
2
buildNumber=208
org.gvsig.raster.lizardtech/tags/org.gvsig.raster.lizardtech-2.2.154/org.gvsig.raster.lizardtech.app/org.gvsig.raster.lizardtech.app.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
add_library_path "$PLUGIN_FOLDER/jmrsid/lib"
34

  
35
list_shared_library_dependencies "$PLUGIN_FOLDER/jmrsid/lib/"libjmrsid*
org.gvsig.raster.lizardtech/tags/org.gvsig.raster.lizardtech-2.2.154/org.gvsig.raster.lizardtech.app/org.gvsig.raster.lizardtech.app.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.raster.lizardtech.app.common</directory>
42
      <outputDirectory>.</outputDirectory>
43
      <excludes>
44
      	<exclude>package.info</exclude>
45
      </excludes>
46
    </fileSet>
47
    <fileSet>
48
      <directory>target/native/jmrsid</directory>
49
      <outputDirectory>./jmrsid</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.jmrsid:jar</include>
65
		</includes>
66
    </dependencySet>
67
  </dependencySets>
68

  
69
</assembly>
70

  
0 71

  
org.gvsig.raster.lizardtech/tags/org.gvsig.raster.lizardtech-2.2.154/org.gvsig.raster.lizardtech.jni/src/test/java/es/gva/cir/jmrsid/TestReadMrSid.java
1
package es.gva.cir.jmrsid;
2

  
3
import java.io.IOException;
4

  
5
import junit.framework.TestCase;
6
import es.gva.cit.jmrsid.LTIMetadataDatabase;
7
import es.gva.cit.jmrsid.LTIMetadataRecord;
8
import es.gva.cit.jmrsid.MrSIDException;
9
import es.gva.cit.jmrsid.MrSIDImageReader;
10

  
11
public class TestReadMrSid extends TestCase{
12

  
13
	private MrSIDImageReader		sid = null;
14
	
15
	private String 					fileName = "Urban_10cm.sid";
16
	private String 					baseDir = "./test-images/";
17
	private String 					file1 = baseDir + fileName;
18
	
19
	private int						numBands = 0;
20
	private int 					width = 0;
21
	private int						height = 0;
22
	private String					projection = null;
23
	private LTIMetadataDatabase		metadata = null;
24
	private LTIMetadataRecord		record = null;
25
	
26
	public void start(){
27
		setUp();
28
		testStack();
29
	}
30
	
31
	
32
	public void setUp(){
33
		try {
34
			sid = new MrSIDImageReader(file1);
35
			sid.initialize();
36
			
37
		} catch (MrSIDException e) {
38
			e.printStackTrace();
39
		} catch (IOException e) {
40
			e.printStackTrace();
41
		}
42
		
43
		
44
	}
45
	
46
	public void testStack(){
47
		try {
48
			numBands = sid.getNumBands();
49
			width = sid.getWidth();
50
			height = sid.getHeight();
51
			metadata = sid.getMetadata();
52
			System.out.println("**** TEST DE ACCESO A IMÁGENES MRSID ****");
53
			System.out.println("     IMAGEN: " + fileName);
54
			System.out.println("Número de bandas: " + numBands);
55
			System.out.println("Anchura: " + width);
56
			System.out.println("Altura: " + height);
57
			
58
//			for (int i = 0 ; i<metadata.getIndexCount() ; i++){
59
//				record = metadata.getDataByIndex(i);
60
//				System.out.println(record.getTagName() + ": " + record.getScalarData());
61
//			}
62
			sid.close();
63
		} catch (MrSIDException e) {
64
			e.printStackTrace();
65
		}
66
		
67
	}
68
	
69
}
0 70

  
org.gvsig.raster.lizardtech/tags/org.gvsig.raster.lizardtech-2.2.154/org.gvsig.raster.lizardtech.jni/src/main/java/es/gva/cit/jmrsid/MrSIDImageReader.java
1
/**********************************************************************
2
 * $Id: MrSIDImageReader.java 8460 2006-10-31 16:26:34Z nacho $
3
 *
4
 * Name:     MrSIDImageReader.java
5
 * Project:  JMRSID. Interfaz java to MrSID (Lizardtech).
6
 * Purpose:  
7
 * Author:   Nacho Brodin, brodin_ign@gva.es
8
 *
9
 **********************************************************************/
10
/*Copyright (C) 2004  Nacho Brodin <brodin_ign@gva.es>
11

  
12
 This program is free software; you can redistribute it and/or
13
 modify it under the terms of the GNU General Public License
14
 as published by the Free Software Foundation; either version 2
15
 of the License, or (at your option) any later version.
16

  
17
 This program is distributed in the hope that it will be useful,
18
 but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 GNU General Public License for more details.
21

  
22
 You should have received a copy of the GNU General Public License
23
 along with this program; if not, write to the Free Software
24
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
25
 
26
 
27
 [01] 01-Oct-2005 nbt New call to JNI function MrSIDImageReaderArrayNat to convert name string to char array.
28
 
29
 */
30

  
31
package es.gva.cit.jmrsid;
32

  
33
import java.io.File;
34
import java.io.IOException;
35

  
36

  
37
/**
38
 * 
39
 * @author Nacho Brodin <brodin_ign@gva.es>.<BR> Equipo de desarrollo gvSIG.<BR> http://www.gvsig.gva.es
40
 * @version 0.0
41
 * @link http://www.gvsig.gva.es
42
 */
43
public class MrSIDImageReader extends MrSIDImageReaderBase{
44
	
45
	private native long MrSIDImageReaderNat(String pszFilename);
46
	private native long MrSIDImageReaderArrayNat(byte[] b);
47
	private native void FreeMrSIDImageReaderNat(long cPtr);
48
	
49
	public MrSIDImageReader(){}
50
	
51
	/**
52
	 * Constructor
53
	 * @param cPtr	direcci?n de memoria al objeto MrSIDImageReader de C. 
54
	 */
55
	
56
	public MrSIDImageReader(long cPtr){
57
		this.cPtr=cPtr;
58
	}
59
	
60
	/**
61
	 * Destructor 
62
	 */
63
	
64
	protected void finalize(){
65
		if (cPtr != 0)
66
			this.close();
67
	}
68

  
69
	/**
70
	 * Cierra el MrSIDImageReader
71
	 *
72
	 */
73
	public void close(){
74
		if(cPtr != 0){
75
			FreeMrSIDImageReaderNat(cPtr);
76
			cPtr = 0;
77
		}
78
	}
79
		
80
	/**
81
	 * Constructor
82
	 *
83
	 * @param pszFilename	Nombre del fichero
84
	 * @throws MrSIDException, IOException
85
	 */
86
	
87
	public MrSIDImageReader(String pszFilename)throws MrSIDException, IOException{
88
		
89
		/*if ((pszFilename == null) || (pszFilename.equals("")))
90
			throw new MrSIDException("Nombre de fichero incorrecto");
91
		
92
		File f = new File( pszFilename );
93
		if(!f.exists())
94
			throw new IOException("The file "+pszFilename+" don't exists");
95
	  
96
		if(!f.canRead())
97
			throw new IOException("I can't read the file");*/
98

  
99
		cPtr = MrSIDImageReaderArrayNat(pszFilename.getBytes());
100
    
101
		if(cPtr == 0)
102
			throw new MrSIDException("Error in MrDID Open");
103
 
104
	}
105
	
106
	/**
107
	 * Obtiene el n?mero de niveles
108
	 */
109
	public int getNumLevels()throws MrSIDException{
110
		String os = System.getProperty("os.name").toLowerCase();
111
		if(os.startsWith("mac os x")){
112
			return getNumLevelsFromMinMagnification();
113
		}else{
114
			String msg1="Error en getNumLevels. No se ha obtenido un puntero valido a LTIImage";
115
			String msg2="La llamada nativa a getNumLevels ha devuelto un c?digo de error";
116
			return baseSimpleFunction(2,msg1,msg2);
117
		}
118
		
119
	}
120
	
121
	/**
122
	 * Obtiene el n?mero de niveles s partir de getMinMagnification. 
123
	 * (Funcion creada para Mac sobre Power PC por los problemas con getNumLevels)
124
	 */
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff