Revision 35403

View differences:

tags/v2_0_0_Build_2027/libjni-mrsid/.settings/org.eclipse.jdt.core.prefs
1
#Mon Sep 27 13:53:35 CEST 2010
2
encoding//src/test/java=ISO-8859-1
3
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
4
eclipse.preferences.version=1
5
encoding//src/test/resources=ISO-8859-1
6
org.eclipse.jdt.core.compiler.source=1.5
7
encoding//src/main/java=ISO-8859-1
8
encoding//src/main/resources=ISO-8859-1
9
org.eclipse.jdt.core.compiler.compliance=1.5
tags/v2_0_0_Build_2027/libjni-mrsid/build.xml
1
	<project name="libjni-mrsid" default="main" basedir=".">
2
	<description>
3
		Compila la librería jmrsid
4
	</description>
5
		
6
	<property name="src-java" location="src/main/java" />
7
	<property name="src-test-java" location="src/test/java" />
8
	<property name="jar-dist" location="jar-dist" />
9
	<property name="build" location="bin/" />
10
	<property name="build-test" location="bin-test/" />
11
	<property name="cmake_build" location="BMCMake/" />
12
	<property name="sdk-dir" location="/home/miguel/mrsid/Geo_DSDK-6.0.7.1407" />
13
	<property environment="env"/>
14
	<condition property="jmrsid_version" value="0.0.6">
15
		<os family="unix"/>
16
	</condition>
17
	<condition property="jmrsid_version" value="006">
18
		<os family="windows"/>
19
	</condition>
20
	<property name="jmrsid-jar" location="jmrsid-0.0.6.jar" />
21
	<condition property="cmake_generator" value="'Unix Makefiles'">
22
		<os family="unix"/>
23
	</condition>
24
	<condition property="cmake_generator" value="'NMake Makefiles'">
25
		<os family="windows"/>
26
	</condition>		
27

  
28
	<target name="main" description="compile java code, make jars, prepare and compile natives" depends="clean,jar,prepare-natives,compile-natives">
29
	</target>
30

  
31
	<target name="jar" description="makes jar file">
32
		<mkdir dir="${build}" />
33
		<javac srcdir="${src-java}" destdir="${build}" debug="true" />
34
		<mkdir dir="${jar-dist}" />
35
		<jar jarfile="${jmrsid-jar}" basedir="${build}" includes="es/gva/cit/jmrsid/**" />
36
		<move file="${jmrsid-jar}" todir="${jar-dist}" />
37
	</target>
38

  
39
	<target name="prepare-natives" description="prepares the natives to be compiled">
40
		<mkdir dir="${cmake_build}"/>
41
		<delete file="${cmake_build}/CMakeCache.txt"/>
42
		<exec dir="${cmake_build}" executable="cmake">
43
			<arg line=".." />
44
			<arg line="-G${cmake_generator}" />
45
			<arg line="-DMRSID_DIR=${sdk-dir}" />
46
			<arg line="-DCMAKE_BUILD_TYPE=Release" />
47
			<arg line="-DJMRSID_VERSION=${jmrsid_version}" />
48
		</exec>
49
	</target>
50

  
51
	<target name="compile-natives" description="compiles natives">
52
		<exec dir="${cmake_build}" executable="make" os="Linux">
53
			<arg line="install" />
54
		</exec>
55
		<exec dir="${cmake_build}" executable="nmake" os="Windows 98,Windows 2000,Windows XP,Windows NT (Unknown)">
56
			<arg line="install" />
57
		</exec>
58
	</target>
59

  
60
		
61
	<target name="clean" description="clean distribution">
62
		<delete dir="jar-dist"/>
63
		<delete dir="lib-dist"/>
64
		<delete dir="BMCMake"/>
65
	</target>
66

  
67
</project>
tags/v2_0_0_Build_2027/libjni-mrsid/.cdtproject
1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse-cdt version="2.0"?>
3

  
4
<cdtproject id="org.eclipse.cdt.make.core.make">
5
<extension point="org.eclipse.cdt.core.BinaryParser" id="org.eclipse.cdt.core.ELF"/>
6
<data>
7
<item id="org.eclipse.cdt.core.pathentry">
8
<pathentry kind="src" path=""/>
9
<pathentry kind="out" path=""/>
10
<pathentry kind="con" path="org.eclipse.cdt.make.core.DISCOVERED_SCANNER_INFO"/>
11
</item>
12
<item id="cdt_indexer">
13
<indexEnabled indexValue="true"/>
14
<indexerProblemsEnabled indexProblemsValue="0"/>
15
</item>
16
<item id="org.eclipse.cdt.make.core.buildtargets">
17
<buildTargets>
18
<target name="all" targetID="org.eclipse.cdt.make.MakeTargetBuilder" path="">
19
<buildCommand>make</buildCommand>
20
<buildTarget>all</buildTarget>
21
<stopOnError>false</stopOnError>
22
<useDefaultCommand>true</useDefaultCommand>
23
</target>
24
<target name="clean" targetID="org.eclipse.cdt.make.MakeTargetBuilder" path="">
25
<buildCommand>make</buildCommand>
26
<buildTarget>clean</buildTarget>
27
<stopOnError>false</stopOnError>
28
<useDefaultCommand>true</useDefaultCommand>
29
</target>
30
</buildTargets>
31
</item>
32
</data>
33
</cdtproject>
tags/v2_0_0_Build_2027/libjni-mrsid/.classpath
1
<classpath>
2
  <classpathentry kind="src" path="src/test/java" output="target/test-classes" including="**/*.java"/>
3
  <classpathentry kind="src" path="src/main/java" including="**/*.java"/>
4
  <classpathentry kind="src" path="src/main/resources" excluding="**/*.java"/>
5
  <classpathentry kind="output" path="target/classes"/>
6
  <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar" sourcepath="M2_REPO/junit/junit/3.8.1/junit-3.8.1-sources.jar"/>
7
  <classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14.jar" sourcepath="M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14-sources.jar"/>
8
  <classpathentry kind="var" path="M2_REPO/org/gvsig/org.gvsig.maven.base.tools/1.0.6-SNAPSHOT/org.gvsig.maven.base.tools-1.0.6-SNAPSHOT.jar"/>
9
  <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.5.5/slf4j-api-1.5.5.jar" sourcepath="M2_REPO/org/slf4j/slf4j-api/1.5.5/slf4j-api-1.5.5-sources.jar"/>
10
  <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-log4j12/1.5.5/slf4j-log4j12-1.5.5.jar" sourcepath="M2_REPO/org/slf4j/slf4j-log4j12/1.5.5/slf4j-log4j12-1.5.5-sources.jar"/>
11
  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
12
</classpath>
tags/v2_0_0_Build_2027/libjni-mrsid/depman.xml
1
<depman>
2
	<package>
3
		<group>org.gvsig</group>
4
		<artifact>org.gvsig.jmrsid</artifact>
5
		<version>2.0.0-SNAPSHOT</version>
6
		<libraryType>dynamic</libraryType>
7
	</package>
8
 	<dependencies platform="win, mac, linux">
9
 		<dependency>
10
			<group>com.lizardtech</group>
11
			<artifact>mrsid</artifact>
12
			<version>7.0.0.2164</version>
13
			<type>dynamic</type>
14
		</dependency>
15
	</dependencies>
16
</depman>
17

  
tags/v2_0_0_Build_2027/libjni-mrsid/include/es_gva_cit_jmrsid_LTIPixel.h
1
/* DO NOT EDIT THIS FILE - it is machine generated */
2
#include <jni.h>
3
/* Header for class es_gva_cit_jmrsid_LTIPixel */
4

  
5
#ifndef _Included_es_gva_cit_jmrsid_LTIPixel
6
#define _Included_es_gva_cit_jmrsid_LTIPixel
7
#ifdef __cplusplus
8
extern "C" {
9
#endif
10
/*
11
 * Class:     es_gva_cit_jmrsid_LTIPixel
12
 * Method:    LTIPixelNat
13
 * Signature: (III)J
14
 */
15
JNIEXPORT jlong JNICALL Java_es_gva_cit_jmrsid_LTIPixel_LTIPixelNat
16
  (JNIEnv *, jobject, jint, jint, jint);
17

  
18
/*
19
 * Class:     es_gva_cit_jmrsid_LTIPixel
20
 * Method:    FreeLTIPixelNat
21
 * Signature: (J)V
22
 */
23
JNIEXPORT void JNICALL Java_es_gva_cit_jmrsid_LTIPixel_FreeLTIPixelNat
24
  (JNIEnv *, jobject, jlong);
25

  
26
#ifdef __cplusplus
27
}
28
#endif
29
#endif
tags/v2_0_0_Build_2027/libjni-mrsid/include/es_gva_cit_jmrsid_JNIBase.h
1
/* DO NOT EDIT THIS FILE - it is machine generated */
2
#include <jni.h>
3
/* Header for class es_gva_cit_jmrsid_JNIBase */
4

  
5
#ifndef _Included_es_gva_cit_jmrsid_JNIBase
6
#define _Included_es_gva_cit_jmrsid_JNIBase
7
#ifdef __cplusplus
8
extern "C" {
9
#endif
10
/*
11
 * Class:     es_gva_cit_jmrsid_JNIBase
12
 * Method:    getIndexCountNat
13
 * Signature: (J)I
14
 */
15
JNIEXPORT jint JNICALL Java_es_gva_cit_jmrsid_JNIBase_getIndexCountNat
16
  (JNIEnv *, jobject, jlong);
17

  
18
/*
19
 * Class:     es_gva_cit_jmrsid_JNIBase
20
 * Method:    initializeNat
21
 * Signature: (J)I
22
 */
23
JNIEXPORT jint JNICALL Java_es_gva_cit_jmrsid_JNIBase_initializeNat
24
  (JNIEnv *, jobject, jlong);
25

  
26
/*
27
 * Class:     es_gva_cit_jmrsid_JNIBase
28
 * Method:    getNumLevelsNat
29
 * Signature: (J)I
30
 */
31
JNIEXPORT jint JNICALL Java_es_gva_cit_jmrsid_JNIBase_getNumLevelsNat
32
  (JNIEnv *, jobject, jlong);
33

  
34
/*
35
 * Class:     es_gva_cit_jmrsid_JNIBase
36
 * Method:    getWidthNat
37
 * Signature: (J)I
38
 */
39
JNIEXPORT jint JNICALL Java_es_gva_cit_jmrsid_JNIBase_getWidthNat
40
  (JNIEnv *, jobject, jlong);
41

  
42
/*
43
 * Class:     es_gva_cit_jmrsid_JNIBase
44
 * Method:    getHeightNat
45
 * Signature: (J)I
46
 */
47
JNIEXPORT jint JNICALL Java_es_gva_cit_jmrsid_JNIBase_getHeightNat
48
  (JNIEnv *, jobject, jlong);
49

  
50
/*
51
 * Class:     es_gva_cit_jmrsid_JNIBase
52
 * Method:    getStripHeightNat
53
 * Signature: (J)I
54
 */
55
JNIEXPORT jint JNICALL Java_es_gva_cit_jmrsid_JNIBase_getStripHeightNat
56
  (JNIEnv *, jobject, jlong);
57

  
58
/*
59
 * Class:     es_gva_cit_jmrsid_JNIBase
60
 * Method:    getNumBandsNat
61
 * Signature: (J)I
62
 */
63
JNIEXPORT jint JNICALL Java_es_gva_cit_jmrsid_JNIBase_getNumBandsNat
64
  (JNIEnv *, jobject, jlong);
65

  
66
/*
67
 * Class:     es_gva_cit_jmrsid_JNIBase
68
 * Method:    getColorSpaceNat
69
 * Signature: (J)I
70
 */
71
JNIEXPORT jint JNICALL Java_es_gva_cit_jmrsid_JNIBase_getColorSpaceNat
72
  (JNIEnv *, jobject, jlong);
73

  
74
/*
75
 * Class:     es_gva_cit_jmrsid_JNIBase
76
 * Method:    getDataTypeNat
77
 * Signature: (J)I
78
 */
79
JNIEXPORT jint JNICALL Java_es_gva_cit_jmrsid_JNIBase_getDataTypeNat
80
  (JNIEnv *, jobject, jlong);
81

  
82
#ifdef __cplusplus
83
}
84
#endif
85
#endif
tags/v2_0_0_Build_2027/libjni-mrsid/include/es_gva_cit_jmrsid_LTIImage.h
1
/* DO NOT EDIT THIS FILE - it is machine generated */
2
#include <jni.h>
3
/* Header for class es_gva_cit_jmrsid_LTIImage */
4

  
5
#ifndef _Included_es_gva_cit_jmrsid_LTIImage
6
#define _Included_es_gva_cit_jmrsid_LTIImage
7
#ifdef __cplusplus
8
extern "C" {
9
#endif
10
/*
11
 * Class:     es_gva_cit_jmrsid_LTIImage
12
 * Method:    getMetadataNat
13
 * Signature: (J)J
14
 */
15
JNIEXPORT jlong JNICALL Java_es_gva_cit_jmrsid_LTIImage_getMetadataNat
16
  (JNIEnv *, jobject, jlong);
17

  
18
/*
19
 * Class:     es_gva_cit_jmrsid_LTIImage
20
 * Method:    getDimsAtMagWidthNat
21
 * Signature: (JD)I
22
 */
23
JNIEXPORT jint JNICALL Java_es_gva_cit_jmrsid_LTIImage_getDimsAtMagWidthNat
24
  (JNIEnv *, jobject, jlong, jdouble);
25

  
26
/*
27
 * Class:     es_gva_cit_jmrsid_LTIImage
28
 * Method:    getDimsAtMagHeightNat
29
 * Signature: (JD)I
30
 */
31
JNIEXPORT jint JNICALL Java_es_gva_cit_jmrsid_LTIImage_getDimsAtMagHeightNat
32
  (JNIEnv *, jobject, jlong, jdouble);
33

  
34
/*
35
 * Class:     es_gva_cit_jmrsid_LTIImage
36
 * Method:    getPixelPropsNat
37
 * Signature: (J)J
38
 */
39
JNIEXPORT jlong JNICALL Java_es_gva_cit_jmrsid_LTIImage_getPixelPropsNat
40
  (JNIEnv *, jobject, jlong);
41

  
42
/*
43
 * Class:     es_gva_cit_jmrsid_LTIImage
44
 * Method:    getBackgroundPixelNat
45
 * Signature: (J)J
46
 */
47
JNIEXPORT jlong JNICALL Java_es_gva_cit_jmrsid_LTIImage_getBackgroundPixelNat
48
  (JNIEnv *, jobject, jlong);
49

  
50
/*
51
 * Class:     es_gva_cit_jmrsid_LTIImage
52
 * Method:    getNoDataPixelNat
53
 * Signature: (J)J
54
 */
55
JNIEXPORT jlong JNICALL Java_es_gva_cit_jmrsid_LTIImage_getNoDataPixelNat
56
  (JNIEnv *, jobject, jlong);
57

  
58
/*
59
 * Class:     es_gva_cit_jmrsid_LTIImage
60
 * Method:    getGeoCoordNat
61
 * Signature: (JLes/gva/cit/jmrsid/LTIGeoCoord;)I
62
 */
63
JNIEXPORT jint JNICALL Java_es_gva_cit_jmrsid_LTIImage_getGeoCoordNat
64
  (JNIEnv *, jobject, jlong, jobject);
65

  
66
/*
67
 * Class:     es_gva_cit_jmrsid_LTIImage
68
 * Method:    FreeLTIImageNat
69
 * Signature: (J)V
70
 */
71
JNIEXPORT void JNICALL Java_es_gva_cit_jmrsid_LTIImage_FreeLTIImageNat
72
  (JNIEnv *, jobject, jlong);
73

  
74
/*
75
 * Class:     es_gva_cit_jmrsid_LTIImage
76
 * Method:    getMinMagnificationNat
77
 * Signature: (J)D
78
 */
79
JNIEXPORT jdouble JNICALL Java_es_gva_cit_jmrsid_LTIImage_getMinMagnificationNat
80
  (JNIEnv *, jobject, jlong);
81

  
82
/*
83
 * Class:     es_gva_cit_jmrsid_LTIImage
84
 * Method:    getMaxMagnificationNat
85
 * Signature: (J)D
86
 */
87
JNIEXPORT jdouble JNICALL Java_es_gva_cit_jmrsid_LTIImage_getMaxMagnificationNat
88
  (JNIEnv *, jobject, jlong);
89

  
90
#ifdef __cplusplus
91
}
92
#endif
93
#endif
tags/v2_0_0_Build_2027/libjni-mrsid/include/jmrsid.h
1
#ifndef _Included_jmrsid
2
#define _Included_jmrsid
3

  
4
typedef struct {
5
	lt_uint32 siz;
6
	lt_uint8* membuf;
7
	void* bufs[3];
8
}t_buffer;
9

  
10

  
11
#endif
12

  
tags/v2_0_0_Build_2027/libjni-mrsid/include/es_gva_cit_jmrsid_LTIMetadataDatabase.h
1
/* DO NOT EDIT THIS FILE - it is machine generated */
2
#include <jni.h>
3
/* Header for class es_gva_cit_jmrsid_LTIMetadataDatabase */
4

  
5
#ifndef _Included_es_gva_cit_jmrsid_LTIMetadataDatabase
6
#define _Included_es_gva_cit_jmrsid_LTIMetadataDatabase
7
#ifdef __cplusplus
8
extern "C" {
9
#endif
10
/*
11
 * Class:     es_gva_cit_jmrsid_LTIMetadataDatabase
12
 * Method:    getDataByIndexNat
13
 * Signature: (JI)J
14
 */
15
JNIEXPORT jlong JNICALL Java_es_gva_cit_jmrsid_LTIMetadataDatabase_getDataByIndexNat
16
  (JNIEnv *, jobject, jlong, jint);
17

  
18
/*
19
 * Class:     es_gva_cit_jmrsid_LTIMetadataDatabase
20
 * Method:    FreeLTIMetadataDatabaseNat
21
 * Signature: (J)V
22
 */
23
JNIEXPORT void JNICALL Java_es_gva_cit_jmrsid_LTIMetadataDatabase_FreeLTIMetadataDatabaseNat
24
  (JNIEnv *, jobject, jlong);
25

  
26
#ifdef __cplusplus
27
}
28
#endif
29
#endif
tags/v2_0_0_Build_2027/libjni-mrsid/include/es_gva_cit_jmrsid_LTIImageStage.h
1
/* DO NOT EDIT THIS FILE - it is machine generated */
2
#include <jni.h>
3
/* Header for class es_gva_cit_jmrsid_LTIImageStage */
4

  
5
#ifndef _Included_es_gva_cit_jmrsid_LTIImageStage
6
#define _Included_es_gva_cit_jmrsid_LTIImageStage
7
#ifdef __cplusplus
8
extern "C" {
9
#endif
10
/*
11
 * Class:     es_gva_cit_jmrsid_LTIImageStage
12
 * Method:    readNat
13
 * Signature: (JJJJLes/gva/cit/jmrsid/LTISceneBuffer;)I
14
 */
15
JNIEXPORT jint JNICALL Java_es_gva_cit_jmrsid_LTIImageStage_readNat
16
  (JNIEnv *, jobject, jlong, jlong, jlong, jlong, jobject);
17

  
18
/*
19
 * Class:     es_gva_cit_jmrsid_LTIImageStage
20
 * Method:    FreeLTIImageStageNat
21
 * Signature: (J)V
22
 */
23
JNIEXPORT void JNICALL Java_es_gva_cit_jmrsid_LTIImageStage_FreeLTIImageStageNat
24
  (JNIEnv *, jobject, jlong);
25

  
26
/*
27
 * Class:     es_gva_cit_jmrsid_LTIImageStage
28
 * Method:    readNat
29
 * Signature: (JJJJLes/gva/cit/jmrsid/LTISceneBuffer;)I
30
 */
31
JNIEXPORT void JNICALL Java_es_gva_cit_jmrsid_LTIImageStage_readSceneNat
32
  (JNIEnv *, jobject, jlong, jdouble, jdouble, jdouble, jdouble, jdouble, jlong, jint, jint, jboolean, jobject);
33

  
34
#ifdef __cplusplus
35
}
36
#endif
37
#endif
tags/v2_0_0_Build_2027/libjni-mrsid/include/es_gva_cit_jmrsid_MrSIDImageReaderBase.h
1
/* DO NOT EDIT THIS FILE - it is machine generated */
2
#include <jni.h>
3
/* Header for class es_gva_cit_jmrsid_MrSIDImageReaderBase */
4

  
5
#ifndef _Included_es_gva_cit_jmrsid_MrSIDImageReaderBase
6
#define _Included_es_gva_cit_jmrsid_MrSIDImageReaderBase
7
#ifdef __cplusplus
8
extern "C" {
9
#endif
10
/*
11
 * Class:     es_gva_cit_jmrsid_MrSIDImageReaderBase
12
 * Method:    FreeMrSIDImageReaderBaseNat
13
 * Signature: (J)V
14
 */
15
JNIEXPORT void JNICALL Java_es_gva_cit_jmrsid_MrSIDImageReaderBase_FreeMrSIDImageReaderBaseNat
16
  (JNIEnv *, jobject, jlong);
17

  
18
#ifdef __cplusplus
19
}
20
#endif
21
#endif
tags/v2_0_0_Build_2027/libjni-mrsid/include/es_gva_cit_jmrsid_LTISceneBuffer.h
1
/* DO NOT EDIT THIS FILE - it is machine generated */
2
#include <jni.h>
3
/* Header for class es_gva_cit_jmrsid_LTISceneBuffer */
4

  
5
#ifndef _Included_es_gva_cit_jmrsid_LTISceneBuffer
6
#define _Included_es_gva_cit_jmrsid_LTISceneBuffer
7
#ifdef __cplusplus
8
extern "C" {
9
#endif
10
/*
11
 * Class:     es_gva_cit_jmrsid_LTISceneBuffer
12
 * Method:    LTISceneBufferNat
13
 * Signature: (JIII)J
14
 */
15
JNIEXPORT jlong JNICALL Java_es_gva_cit_jmrsid_LTISceneBuffer_LTISceneBufferNat
16
  (JNIEnv *, jobject, jlong, jint, jint, jint);
17

  
18
/*
19
 * Class:     es_gva_cit_jmrsid_LTISceneBuffer
20
 * Method:    LTISceneBuffer1Nat
21
 * Signature: (JIIIIIII)J
22
 */
23
JNIEXPORT jlong JNICALL Java_es_gva_cit_jmrsid_LTISceneBuffer_LTISceneBuffer1Nat
24
  (JNIEnv *, jobject, jlong, jint, jint, jint, jint, jint, jint, jint);
25

  
26
/*
27
 * Class:     es_gva_cit_jmrsid_LTISceneBuffer
28
 * Method:    FreeLTISceneBufferNat
29
 * Signature: (JJ)V
30
 */
31
JNIEXPORT void JNICALL Java_es_gva_cit_jmrsid_LTISceneBuffer_FreeLTISceneBufferNat
32
  (JNIEnv *, jobject, jlong, jlong);
33

  
34
#ifdef __cplusplus
35
}
36
#endif
37
#endif
tags/v2_0_0_Build_2027/libjni-mrsid/include/es_gva_cit_jmrsid_MrSIDImageReader.h
1
/* DO NOT EDIT THIS FILE - it is machine generated */
2
#include <jni.h>
3
/* Header for class es_gva_cit_jmrsid_MrSIDImageReader */
4

  
5
#ifndef _Included_es_gva_cit_jmrsid_MrSIDImageReader
6
#define _Included_es_gva_cit_jmrsid_MrSIDImageReader
7
#ifdef __cplusplus
8
extern "C" {
9
#endif
10
/*
11
 * Class:     es_gva_cit_jmrsid_MrSIDImageReader
12
 * Method:    MrSIDImageReaderNat
13
 * Signature: (Ljava/lang/String;)J
14
 */
15
JNIEXPORT jlong JNICALL Java_es_gva_cit_jmrsid_MrSIDImageReader_MrSIDImageReaderNat
16
  (JNIEnv *, jobject, jstring);
17

  
18
/*
19
 * Class:     es_gva_cit_jmrsid_MrSIDImageReader
20
 * Method:    MrSIDImageReaderArrayNat
21
 * Signature: ([B)J
22
 */
23
JNIEXPORT jlong JNICALL Java_es_gva_cit_jmrsid_MrSIDImageReader_MrSIDImageReaderArrayNat
24
  (JNIEnv *, jobject, jbyteArray);
25

  
26
/*
27
 * Class:     es_gva_cit_jmrsid_MrSIDImageReader
28
 * Method:    FreeMrSIDImageReaderNat
29
 * Signature: (J)V
30
 */
31
JNIEXPORT void JNICALL Java_es_gva_cit_jmrsid_MrSIDImageReader_FreeMrSIDImageReaderNat
32
  (JNIEnv *, jobject, jlong);
33

  
34
#ifdef __cplusplus
35
}
36
#endif
37
#endif
tags/v2_0_0_Build_2027/libjni-mrsid/include/es_gva_cit_jmrsid_LTIScene.h
1
/* DO NOT EDIT THIS FILE - it is machine generated */
2
#include <jni.h>
3
/* Header for class es_gva_cit_jmrsid_LTIScene */
4

  
5
#ifndef _Included_es_gva_cit_jmrsid_LTIScene
6
#define _Included_es_gva_cit_jmrsid_LTIScene
7
#ifdef __cplusplus
8
extern "C" {
9
#endif
10
/*
11
 * Class:     es_gva_cit_jmrsid_LTIScene
12
 * Method:    LTISceneNat
13
 * Signature: (DDDDD)J
14
 */
15
JNIEXPORT jlong JNICALL Java_es_gva_cit_jmrsid_LTIScene_LTISceneNat
16
  (JNIEnv *, jobject, jdouble, jdouble, jdouble, jdouble, jdouble);
17

  
18
/*
19
 * Class:     es_gva_cit_jmrsid_LTIScene
20
 * Method:    FreeLTISceneNat
21
 * Signature: (J)V
22
 */
23
JNIEXPORT void JNICALL Java_es_gva_cit_jmrsid_LTIScene_FreeLTISceneNat
24
  (JNIEnv *, jobject, jlong);
25

  
26
#ifdef __cplusplus
27
}
28
#endif
29
#endif
tags/v2_0_0_Build_2027/libjni-mrsid/include/es_gva_cit_jmrsid_LTIMetadataRecord.h
1
/* DO NOT EDIT THIS FILE - it is machine generated */
2
#include <jni.h>
3
/* Header for class es_gva_cit_jmrsid_LTIMetadataRecord */
4

  
5
#ifndef _Included_es_gva_cit_jmrsid_LTIMetadataRecord
6
#define _Included_es_gva_cit_jmrsid_LTIMetadataRecord
7
#ifdef __cplusplus
8
extern "C" {
9
#endif
10
#undef es_gva_cit_jmrsid_LTIMetadataRecord_LTI_METADATA_DATATYPE_INT
11
#define es_gva_cit_jmrsid_LTIMetadataRecord_LTI_METADATA_DATATYPE_INT 0L
12
#undef es_gva_cit_jmrsid_LTIMetadataRecord_LTI_METADATA_DATATYPE_FLOAT
13
#define es_gva_cit_jmrsid_LTIMetadataRecord_LTI_METADATA_DATATYPE_FLOAT 1L
14
#undef es_gva_cit_jmrsid_LTIMetadataRecord_LTI_METADATA_DATATYPE_STRING
15
#define es_gva_cit_jmrsid_LTIMetadataRecord_LTI_METADATA_DATATYPE_STRING 2L
16
/*
17
 * Class:     es_gva_cit_jmrsid_LTIMetadataRecord
18
 * Method:    getTagNameNat
19
 * Signature: (J)Ljava/lang/String;
20
 */
21
JNIEXPORT jstring JNICALL Java_es_gva_cit_jmrsid_LTIMetadataRecord_getTagNameNat
22
  (JNIEnv *, jobject, jlong);
23

  
24
/*
25
 * Class:     es_gva_cit_jmrsid_LTIMetadataRecord
26
 * Method:    isScalarNat
27
 * Signature: (J)I
28
 */
29
JNIEXPORT jint JNICALL Java_es_gva_cit_jmrsid_LTIMetadataRecord_isScalarNat
30
  (JNIEnv *, jobject, jlong);
31

  
32
/*
33
 * Class:     es_gva_cit_jmrsid_LTIMetadataRecord
34
 * Method:    isVectorNat
35
 * Signature: (J)I
36
 */
37
JNIEXPORT jint JNICALL Java_es_gva_cit_jmrsid_LTIMetadataRecord_isVectorNat
38
  (JNIEnv *, jobject, jlong);
39

  
40
/*
41
 * Class:     es_gva_cit_jmrsid_LTIMetadataRecord
42
 * Method:    isArrayNat
43
 * Signature: (J)I
44
 */
45
JNIEXPORT jint JNICALL Java_es_gva_cit_jmrsid_LTIMetadataRecord_isArrayNat
46
  (JNIEnv *, jobject, jlong);
47

  
48
/*
49
 * Class:     es_gva_cit_jmrsid_LTIMetadataRecord
50
 * Method:    getDataTypeNat
51
 * Signature: (J)I
52
 */
53
JNIEXPORT jint JNICALL Java_es_gva_cit_jmrsid_LTIMetadataRecord_getDataTypeNat
54
  (JNIEnv *, jobject, jlong);
55

  
56
/*
57
 * Class:     es_gva_cit_jmrsid_LTIMetadataRecord
58
 * Method:    getScalarDataNat
59
 * Signature: (J)Ljava/lang/String;
60
 */
61
JNIEXPORT jstring JNICALL Java_es_gva_cit_jmrsid_LTIMetadataRecord_getScalarDataNat
62
  (JNIEnv *, jobject, jlong);
63

  
64
/*
65
 * Class:     es_gva_cit_jmrsid_LTIMetadataRecord
66
 * Method:    getVectorDataNat
67
 * Signature: (J)Les/gva/cit/jmrsid/StringArray;
68
 */
69
JNIEXPORT jobject JNICALL Java_es_gva_cit_jmrsid_LTIMetadataRecord_getVectorDataNat
70
  (JNIEnv *, jobject, jlong);
71

  
72
/*
73
 * Class:     es_gva_cit_jmrsid_LTIMetadataRecord
74
 * Method:    getArrayDataNat
75
 * Signature: (J)Les/gva/cit/jmrsid/StringArray;
76
 */
77
JNIEXPORT jobject JNICALL Java_es_gva_cit_jmrsid_LTIMetadataRecord_getArrayDataNat
78
  (JNIEnv *, jobject, jlong);
79

  
80
/*
81
 * Class:     es_gva_cit_jmrsid_LTIMetadataRecord
82
 * Method:    getNumDimsNat
83
 * Signature: (J)I
84
 */
85
JNIEXPORT jint JNICALL Java_es_gva_cit_jmrsid_LTIMetadataRecord_getNumDimsNat
86
  (JNIEnv *, jobject, jlong);
87

  
88
/*
89
 * Class:     es_gva_cit_jmrsid_LTIMetadataRecord
90
 * Method:    getDimsNat
91
 * Signature: (J)[I
92
 */
93
JNIEXPORT jintArray JNICALL Java_es_gva_cit_jmrsid_LTIMetadataRecord_getDimsNat
94
  (JNIEnv *, jobject, jlong);
95

  
96
/*
97
 * Class:     es_gva_cit_jmrsid_LTIMetadataRecord
98
 * Method:    FreeLTIMetadataRecordNat
99
 * Signature: (J)V
100
 */
101
JNIEXPORT void JNICALL Java_es_gva_cit_jmrsid_LTIMetadataRecord_FreeLTIMetadataRecordNat
102
  (JNIEnv *, jobject, jlong);
103

  
104
#ifdef __cplusplus
105
}
106
#endif
107
#endif
tags/v2_0_0_Build_2027/libjni-mrsid/include/es_gva_cit_jmrsid_LTIUtils.h
1
/* DO NOT EDIT THIS FILE - it is machine generated */
2
#include <jni.h>
3
/* Header for class es_gva_cit_jmrsid_LTIUtils */
4

  
5
#ifndef _Included_es_gva_cit_jmrsid_LTIUtils
6
#define _Included_es_gva_cit_jmrsid_LTIUtils
7
#ifdef __cplusplus
8
extern "C" {
9
#endif
10
/*
11
 * Class:     es_gva_cit_jmrsid_LTIUtils
12
 * Method:    levelToMagNat
13
 * Signature: (I)D
14
 */
15
JNIEXPORT jdouble JNICALL Java_es_gva_cit_jmrsid_LTIUtils_levelToMagNat
16
  (JNIEnv *, jclass, jint);
17

  
18
/*
19
 * Class:     es_gva_cit_jmrsid_LTIUtils
20
 * Method:    FreeLTIUtilsNat
21
 * Signature: (J)V
22
 */
23
JNIEXPORT void JNICALL Java_es_gva_cit_jmrsid_LTIUtils_FreeLTIUtilsNat
24
  (JNIEnv *, jobject, jlong);
25

  
26
#ifdef __cplusplus
27
}
28
#endif
29
#endif
tags/v2_0_0_Build_2027/libjni-mrsid/.project
1
<projectDescription>
2
  <name>libjni-mrsid</name>
3
  <comment>Base POM for all GvSIG JNI projects. This pom knows how to
4
		build and made an libraries for GvSIG. The property
5
		&quot;gvsig-path&quot; must be set up correctly. NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse.</comment>
6
  <projects/>
7
  <buildSpec>
8
    <buildCommand>
9
      <name>org.eclipse.jdt.core.javabuilder</name>
10
    </buildCommand>
11
  </buildSpec>
12
  <natures>
13
    <nature>org.eclipse.jdt.core.javanature</nature>
14
  </natures>
15
</projectDescription>
tags/v2_0_0_Build_2027/libjni-mrsid/.cproject
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
<?fileVersion 4.0.0?>
3

  
4
<cproject>
5
<storageModule moduleId="org.eclipse.cdt.core.settings">
6
<cconfiguration id="converted.config.931178486">
7
<storageModule moduleId="org.eclipse.cdt.core.pathentry">
8
<pathentry kind="src" path=""/>
9
<pathentry kind="out" path=""/>
10
<pathentry kind="con" path="org.eclipse.cdt.make.core.DISCOVERED_SCANNER_INFO"/>
11
</storageModule>
12
<storageModule moduleId="cdt_indexer">
13
<indexEnabled indexValue="true"/>
14
<indexerProblemsEnabled indexProblemsValue="0"/>
15
</storageModule>
16
<storageModule moduleId="org.eclipse.cdt.make.core.buildtargets">
17
<buildTargets>
18
<target name="all" path="" targetID="org.eclipse.cdt.make.MakeTargetBuilder">
19
<buildCommand>make</buildCommand>
20
<buildTarget>all</buildTarget>
21
<stopOnError>false</stopOnError>
22
<useDefaultCommand>true</useDefaultCommand>
23
</target>
24
<target name="clean" path="" targetID="org.eclipse.cdt.make.MakeTargetBuilder">
25
<buildCommand>make</buildCommand>
26
<buildTarget>clean</buildTarget>
27
<stopOnError>false</stopOnError>
28
<useDefaultCommand>true</useDefaultCommand>
29
</target>
30
</buildTargets>
31
</storageModule>
32
<storageModule buildSystemId="org.eclipse.cdt.core.defaultConfigDataProvider" id="converted.config.931178486" moduleId="org.eclipse.cdt.core.settings" name="convertedConfig">
33
<externalSettings/>
34
<extensions>
35
<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
36
</extensions>
37
</storageModule>
38
</cconfiguration>
39
</storageModule>
40
</cproject>
tags/v2_0_0_Build_2027/libjni-mrsid/src/main/java/es/gva/cit/jmrsid/LTIPixel.java
1
/**********************************************************************
2
 * $Id: LTIPixel.java 3539 2006-01-09 12:23:20Z nacho $
3
 *
4
 * Name:     LTIPixel.java
5
 * Project:  JMRSID. Interface java to mrsid (Lizardtech).
6
 * Purpose:   
7
 * Author:   Nacho Brodin, brodin_ign@gva.es
8
 *
9
 **********************************************************************/
10
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
11
*
12
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
13
*
14
* This program is free software; you can redistribute it and/or
15
* modify it under the terms of the GNU General Public License
16
* as published by the Free Software Foundation; either version 2
17
* of the License, or (at your option) any later version.
18
*
19
* This program is distributed in the hope that it will be useful,
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
* GNU General Public License for more details.
23
*
24
* You should have received a copy of the GNU General Public License
25
* along with this program; if not, write to the Free Software
26
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
27
*
28
* For more information, contact:
29
*
30
*  Generalitat Valenciana
31
*   Conselleria d'Infraestructures i Transport
32
*   Av. Blasco Ib??ez, 50
33
*   46010 VALENCIA
34
*   SPAIN
35
*
36
*      +34 963862235
37
*   gvsig@gva.es
38
*      www.gvsig.gva.es
39
*
40
*    or
41
*
42
*   IVER T.I. S.A
43
*   Salamanca 50
44
*   46005 Valencia
45
*   Spain
46
*
47
*   +34 963163400
48
*   dac@iver.es
49
*/
50

  
51
package es.gva.cit.jmrsid;
52

  
53

  
54
/**
55
 * Propiedades b?sicas de un pixel.
56
 * @author Nacho Brodin <brodin_ign@gva.es>.<BR> Equipo de desarrollo gvSIG.<BR> http://www.gvsig.gva.es
57
 * @version 0.0
58
 * @link http://www.gvsig.gva.es
59
 */
60
public class LTIPixel extends JNIBase{
61
	
62
   private native long LTIPixelNat(int eColorSpace, int nBands, int SampleType);	
63
   private native void FreeLTIPixelNat(long cPtr);
64
	
65
	/**
66
	 * Destructor 
67
	 */
68
	
69
	protected void finalize(){
70
		if(cPtr != 0)
71
			FreeLTIPixelNat(cPtr);
72
	}
73
	
74
	public LTIPixel(){}
75
	
76
   /**
77
    * Constructor a partir de su identificador de C.
78
    * @param cPtr	puntero al objeto creado en C.
79
    */
80
   
81
   public LTIPixel(long cPtr){
82
		
83
		super.cPtr=cPtr;
84
   }
85
	
86
   /**
87
    * Constructor
88
    * @param eColorSpace	Espacio de color
89
    * @param nBands	N?mero de bandas
90
    * @param eSampleType	
91
    */
92
   public LTIPixel(int eColorSpace, int nBands, int eSampleType)throws MrSIDException{
93
   	
94
   	 cPtr = LTIPixelNat(eColorSpace, nBands, eSampleType);
95
   	 
96
	 if(cPtr == 0)
97
			throw new MrSIDException("Error in native constructor LTIPixel");
98
   	 
99
   }
100
}
tags/v2_0_0_Build_2027/libjni-mrsid/src/main/java/es/gva/cit/jmrsid/LTIImage.java
1
/**********************************************************************
2
 * $Id: LTIImage.java 8460 2006-10-31 16:26:34Z nacho $
3
 *
4
 * Name:     LTIImage.java
5
 * Project:  JMRSID. Interface java to mrsid (Lizardtech).
6
 * Purpose:   
7
 * Author:   Nacho Brodin, brodin_ign@gva.es
8
 *
9
 **********************************************************************/
10
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
11
*
12
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
13
*
14
* This program is free software; you can redistribute it and/or
15
* modify it under the terms of the GNU General Public License
16
* as published by the Free Software Foundation; either version 2
17
* of the License, or (at your option) any later version.
18
*
19
* This program is distributed in the hope that it will be useful,
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
* GNU General Public License for more details.
23
*
24
* You should have received a copy of the GNU General Public License
25
* along with this program; if not, write to the Free Software
26
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
27
*
28
* For more information, contact:
29
*
30
*  Generalitat Valenciana
31
*   Conselleria d'Infraestructures i Transport
32
*   Av. Blasco Ib��ez, 50
33
*   46010 VALENCIA
34
*   SPAIN
35
*
36
*      +34 963862235
37
*   gvsig@gva.es
38
*      www.gvsig.gva.es
39
*
40
*    or
41
*
42
*   IVER T.I. S.A
43
*   Salamanca 50
44
*   46005 Valencia
45
*   Spain
46
*
47
*   +34 963163400
48
*   dac@iver.es
49
*/
50

  
51
package es.gva.cit.jmrsid;
52

  
53

  
54
/**
55
 * Clase base que representa a una im�gen.
56
 * 
57
 * @author Nacho Brodin <brodin_ign@gva.es>.<BR> Equipo de desarrollo gvSIG.<BR> http://www.gvsig.gva.es
58
 * @version 0.0
59
 * @link http://www.gvsig.gva.es
60
 */
61
public class LTIImage extends JNIBase{
62
	
63
	private int[] magsize=new int[2];
64
	private native long getMetadataNat(long cPtr);
65
	private native int getDimsAtMagWidthNat(long cPtr, double mag);
66
	private native int getDimsAtMagHeightNat(long cPtr, double mag);
67
	private native long getPixelPropsNat(long cPtr);
68
	private native long getBackgroundPixelNat(long cPtr);
69
	private native long getNoDataPixelNat(long cPtr);
70
	private native int getGeoCoordNat(long cPtr, LTIGeoCoord geocoord);
71
	private native void FreeLTIImageNat(long cPtr);
72
	private native double getMinMagnificationNat(long cPtr);
73
	private native double getMaxMagnificationNat(long cPtr);
74
	
75
	LTIGeoCoord geocoord=null;
76
	
77
	public LTIImage(){}
78
	
79
	/**
80
	 * Constructor
81
	 * @param cPtr	direcci�n de memoria al objeto LTIImage de C. 
82
	 */
83
	public LTIImage(long cPtr){
84
		this.cPtr=cPtr;
85
	}
86
	
87
	/**
88
	 * Destructor 
89
	 */
90
	protected void finalize(){
91
		if(cPtr != 0){
92
			FreeLTIImageNat(cPtr);
93
			cPtr = -1;
94
		}
95
	}
96
	
97
	
98
	/**
99
	 * Inicializa el objeto im�gen.
100
	 * @throws MrSIDException, IOException
101
	 */
102
	public void initialize()throws MrSIDException{
103

  
104
		String msg1="Error en initialize. El Open del MrSID no tuvo �xito";
105
		String msg2="La llamada nativa a initialize ha devuelto un c�digo de error";
106
		int codigo = 0;//super.baseSimpleFunction(1,msg1,msg2);
107
		
108
		if( codigo > 0)
109
			throw new MrSIDException("La llamada nativa a initialize ha devuelto el c�digo de error "+codigo);
110
			
111
	}
112
	
113
	
114
	/**
115
	 * Obtiene los metadatos de la im�gen.
116
	 * @throws MrSIDException, IOException
117
	 * @return Objeto LTIMetadataDatabase que contiene los metadatos de la im�gen
118
	 */
119
	public LTIMetadataDatabase getMetadata()throws MrSIDException{
120

  
121
		if(cPtr == 0)
122
			throw new MrSIDException("Error en getMetadataDatabase. El Open del MrSID no tuvo �xito");
123

  
124
		LTIMetadataDatabase metadata = new LTIMetadataDatabase(getMetadataNat(cPtr));
125

  
126
		if(metadata==null)
127
			throw new MrSIDException("Objeto LTIMetadataDatabase nulo");
128

  
129
		return metadata;
130
	}
131

  
132
	/**
133
	 * Obtiene el ancho de la im�gen.
134
	 * 
135
	 * @throws MrSIDException
136
	 * @return entero con el ancho de la im�gen
137
	 */
138
	public int getWidth()throws MrSIDException{
139
		
140
		String msg1="Error en getNumLevels. No se ha obtenido un puntero valido a LTIImage";
141
		String msg2="La llamada nativa a getNumLevels ha devuelto un c�digo de error";
142
		return baseSimpleFunction(3,msg1,msg2);
143
		
144
	}
145
	
146
	/**
147
	 * Obtiene el alto de la im�gen.
148
	 * 
149
	 * @throws MrSIDException
150
	 * @return alto de la im�gen
151
	 */
152
	public int getHeight()throws MrSIDException{
153
		
154
		String msg1="Error en getNumLevels. No se ha obtenido un puntero valido a LTIImage";
155
		String msg2="La llamada nativa a getNumLevels ha devuelto un c�digo de error";
156
		return baseSimpleFunction(4,msg1,msg2);
157
		
158
	}
159
	
160
	/**
161
	 * Obtiene el n�mero de bandas.
162
	 * 
163
	 * @throws MrSIDException
164
	 * @return n�mero de bandas
165
	 */
166
	public int getNumBands()throws MrSIDException{
167
		
168
		String msg1="Error en getNumBands. No se ha obtenido un puntero valido a LTIImage";
169
		String msg2="La llamada nativa a getNumBands ha devuelto un c�digo de error";
170
		return baseSimpleFunction(6,msg1,msg2);
171
		
172
	}
173
	
174
	/**
175
	 * Obtiene el tipo de espacio de color usado en la im�gen.
176
	 * 
177
	 * @throws MrSIDException
178
	 * @return entero que representa una constante de la clase LTIColorSpace. 
179
	 */
180
	public int getColorSpace()throws MrSIDException{
181
		
182
		String msg1="Error en getColorSpace. No se ha obtenido un puntero valido a LTIImage";
183
		String msg2="La llamada nativa a getColorSpace ha devuelto un c�digo de error";
184
		return baseSimpleFunction(7,msg1,msg2);
185
		
186
	}
187
	
188
	/**
189
	 * Obtiene el tipo de datos usado en la im�gen.
190
	 * 
191
	 * @throws MrSIDException
192
	 * @return entero que representa una constante de la clase LTIDataType. 
193
	 */
194
	public int getDataType()throws MrSIDException{
195
		
196
		String msg1="Error en getDataType. No se ha obtenido un puntero valido a LTIImage";
197
		String msg2="La llamada nativa a getDataType ha devuelto un c�digo de error";
198
		return baseSimpleFunction(8,msg1,msg2);
199
		
200
	}
201

  
202
	
203
	/**
204
	 * Obtiene el ancho y alto de la im�gen a partir de una valor de ampliaci�n dado.
205
	 * 
206
	 * @throws MrSIDException
207
	 * @return el ancho y alto de la im�gen
208
	 */
209
	public int[] getDimsAtMag(double mag)throws MrSIDException{
210
		
211
		if(cPtr == 0)
212
		 	throw new MrSIDException("Error en getDimsAtMag. El Open del MrSID no tuvo �xito");
213

  
214
		magsize[0]=getDimsAtMagWidthNat(cPtr,mag);
215
		magsize[1]=getDimsAtMagHeightNat(cPtr,mag);
216
		
217
		if(magsize[0] < 0 || magsize[1] < 0)
218
			throw new MrSIDException("Error en getDimsAtMag. El Open del MrSID no tuvo �xito");
219
				
220
		return magsize;
221
	}
222
	
223
	/**
224
	 * Obtiene las propiedades del pixel de la im�gen.
225
	 * @throws MrSIDException 
226
	 * @return un objeto de tipo LTIPixel conteniendo las propiedades
227
	 */
228
	 public LTIPixel getPixelProps()throws MrSIDException{
229
	 	
230
	 	if(cPtr == 0)
231
		 	throw new MrSIDException("Error en getPixelProps. El Open del MrSID no tuvo �xito");
232

  
233
	 	LTIPixel props=new LTIPixel(getPixelPropsNat(cPtr));
234
	 	
235
	 	if(props == null)
236
	 		throw new MrSIDException("Error en getPixelProps. No se ha podido obtener LTIPixel");
237
	 	
238
	 	return props;
239
	 	
240
	 }
241
	 
242
	 /**
243
	  * Obtiene la informaci�n de georeferenciaci�n de la im�gen si la tiene. 
244
	  * @throws MrSIDException
245
	  * @return un objeto de tipo LTIGeoCoord con la informaci�n de georeferenciaci�n 
246
	  */
247
	 public LTIGeoCoord getGeoCoord()throws MrSIDException{
248
	 	
249
	 	int res=0;
250
	 	
251
	 	if(cPtr == 0)
252
		 	throw new MrSIDException("Error en getGeoCoord. El Open del MrSID no tuvo �xito");
253
	 	
254
	 	if(geocoord == null){
255
	 		geocoord= new LTIGeoCoord();
256
	 		res = getGeoCoordNat(cPtr,geocoord);
257
	 	}
258
	 	
259
	 	if(res < 0)
260
	 		throw new MrSIDException("Error en getGeoCoord. No se ha podido obtener un LTIGeoCoord valido");
261
	 	
262
	 	return geocoord;
263
	 	
264
	 }
265
	 
266
	 /**
267
	  * Obtiene el valor del fondo del pixel. Si devuelve null es que no ha sido definido un valor para 
268
	  * el fondo.
269
	  * @throws MrSIDException
270
	  * @return un objeto del tipo LTIPixel con los valores del fondo del pixel
271
	  */
272
	 public LTIPixel getBackgroundPixel()throws MrSIDException{
273
	 	
274
	 	if(cPtr == 0)
275
		 	throw new MrSIDException("Error en getBackgroundPixel. El Open del MrSID no tuvo �xito");
276
	 	
277
	 	LTIPixel pixel=new LTIPixel(getBackgroundPixelNat(cPtr));
278
	 	
279
	 	if(pixel.getPtr() == 0)return null;
280
	 	else return pixel;
281
	 	
282
	 }
283
	 
284
	 /**
285
	  * Obtiene los valores de transparencia de un pixel. Si devuelve null es que la im�gen no tiene
286
	  * definido un valor de transparencia. 
287
	  * @throws MrSIDException
288
	  * @return un objeto de tipo LTIPixel
289
	  */
290
	 public LTIPixel getNoDataPixel()throws MrSIDException{
291
	 	
292
	 	if(cPtr == 0)
293
		 	throw new MrSIDException("Error en getNoData. El Open del MrSID no tuvo �xito");
294
	 	
295
	 	LTIPixel pixel = new LTIPixel(getNoDataPixelNat(cPtr));
296
	 	
297
	 	if(pixel.getPtr() == 0)return null;
298
	 	else return pixel;
299

  
300
	 }
301
	 
302
	 /**
303
	  * This function returns the minimum magnification of the image. 
304
	  * Images that do not support "zooming out" will return 1.0; images that contain "overviews"
305
	  * 
306
	  * @throws MrSIDException
307
	  * @return the minimum magnification
308
	  */
309
	 public double getMinMagnification()throws MrSIDException{
310

  
311
		 if(cPtr == 0)
312
			 throw new MrSIDException("Error en getMinMagnification(). El Open del MrSID no tuvo �xito");
313

  
314
		 return this.getMinMagnificationNat(cPtr);
315

  
316
	 }
317
	  
318
	  /**
319
	   * This function returns the minimum magnification of the image. 
320
	   * Images that do not support "zooming out" will return 1.0; images that contain "overviews"
321
	   * 
322
	   * @throws MrSIDException
323
	   * @return the minimum magnification
324
	   */
325
	   public double getMaxMagnification()throws MrSIDException{
326
				
327
		if(cPtr == 0)
328
		 	throw new MrSIDException("Error en getMaxMagnification(). El Open del MrSID no tuvo �xito");
329
				
330
		return this.getMaxMagnificationNat(cPtr);
331
		
332
	   }
333
	
334

  
335
}
tags/v2_0_0_Build_2027/libjni-mrsid/src/main/java/es/gva/cit/jmrsid/MrSIDException.java
1
/**********************************************************************
2
 * $Id: MrSIDException.java 3539 2006-01-09 12:23:20Z nacho $
3
 *
4
 * Name:     GdalException.java
5
 * Project:  JGDAL. Interface java to gdal (Frank Warmerdam).
6
 * Purpose:  Class for exceptions produced into mrsid. 
7
 * Author:   Nacho Brodin, brodin_ign@gva.es
8
 *
9
 **********************************************************************/
10
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
11
*
12
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
13
*
14
* This program is free software; you can redistribute it and/or
15
* modify it under the terms of the GNU General Public License
16
* as published by the Free Software Foundation; either version 2
17
* of the License, or (at your option) any later version.
18
*
19
* This program is distributed in the hope that it will be useful,
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
* GNU General Public License for more details.
23
*
24
* You should have received a copy of the GNU General Public License
25
* along with this program; if not, write to the Free Software
26
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
27
*
28
* For more information, contact:
29
*
30
*  Generalitat Valenciana
31
*   Conselleria d'Infraestructures i Transport
32
*   Av. Blasco Ib??ez, 50
33
*   46010 VALENCIA
34
*   SPAIN
35
*
36
*      +34 963862235
37
*   gvsig@gva.es
38
*      www.gvsig.gva.es
39
*
40
*    or
41
*
42
*   IVER T.I. S.A
43
*   Salamanca 50
44
*   46005 Valencia
45
*   Spain
46
*
47
*   +34 963163400
48
*   dac@iver.es
49
*/
50
 
51
package es.gva.cit.jmrsid;
52

  
53
/**
54
 * Es generada cuando los c?digos de retorno de las funciones de Mrsid significan que algo ha ido mal.
55
 * 
56
 * @author Nacho Brodin <brodin_ign@gva.es>.<BR> Equipo de desarrollo gvSIG.<BR> http://www.gvsig.gva.es
57
 * @version 0.0
58
 * @link http://www.gvsig.gva.es
59
 */
60
public class MrSIDException extends Exception{
61

  
62
	MrSIDException(String msg){
63
		super(msg);
64
	}
65
	
66
}
tags/v2_0_0_Build_2027/libjni-mrsid/src/main/java/es/gva/cit/jmrsid/MrSIDImageReaderBase.java
1
/**********************************************************************
2
 * $Id: MrSIDImageReaderBase.java 3539 2006-01-09 12:23:20Z nacho $
3
 *
4
 * Name:     MrSIDImageReaderBase.java
5
 * Project:  JMRSID. Interfaz java to MrSID (Lizardtech).
6
 * Purpose:  
7
 * Author:   Nacho Brodin, brodin_ign@gva.es
8
 *
9
 **********************************************************************/
10
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
11
*
12
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
13
*
14
* This program is free software; you can redistribute it and/or
15
* modify it under the terms of the GNU General Public License
16
* as published by the Free Software Foundation; either version 2
17
* of the License, or (at your option) any later version.
18
*
19
* This program is distributed in the hope that it will be useful,
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
* GNU General Public License for more details.
23
*
24
* You should have received a copy of the GNU General Public License
25
* along with this program; if not, write to the Free Software
26
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
27
*
28
* For more information, contact:
29
*
30
*  Generalitat Valenciana
31
*   Conselleria d'Infraestructures i Transport
32
*   Av. Blasco Ib??ez, 50
33
*   46010 VALENCIA
34
*   SPAIN
35
*
36
*      +34 963862235
37
*   gvsig@gva.es
38
*      www.gvsig.gva.es
39
*
40
*    or
41
*
42
*   IVER T.I. S.A
43
*   Salamanca 50
44
*   46005 Valencia
45
*   Spain
46
*
47
*   +34 963163400
48
*   dac@iver.es
49
*/
50
package es.gva.cit.jmrsid;
51

  
52
/**
53
 * @author Nacho Brodin <brodin_ign@gva.es>.<BR> Equipo de desarrollo gvSIG.<BR> http://www.gvsig.gva.es
54
 * @version 0.0
55
 * @link http://www.gvsig.gva.es
56
 */
57
public class MrSIDImageReaderBase extends LTIImageReader{
58
	
59
	private native void FreeMrSIDImageReaderBaseNat(long cPtr);
60
	
61
	public MrSIDImageReaderBase(){}
62
	
63
	/**
64
	 * Constructor
65
	 * @param cPtr	direcci?n de memoria 
66
	 */
67
	
68
	public MrSIDImageReaderBase(long cPtr){
69
		this.cPtr=cPtr;
70
	}
71
	
72
	/**
73
	 * Destructor 
74
	 */
75
	
76
	protected void finalize(){
77
		this.close();
78
	}
79
		
80
	/**
81
	 * Cierra el MrSIDImageReader
82
	 *
83
	 */
84
	public void close(){
85
		if(cPtr != 0){
86
			FreeMrSIDImageReaderBaseNat(cPtr);
87
			cPtr = 0;
88
		}
89
	}
90
}
tags/v2_0_0_Build_2027/libjni-mrsid/src/main/java/es/gva/cit/jmrsid/LTISceneBuffer.java
1
/**********************************************************************
2
 * $Id: LTISceneBuffer.java 3539 2006-01-09 12:23:20Z nacho $
3
 *
4
 * Name:     LTISceneBuffer.java
5
 * Project:  JMRSID. Interface java to mrsid (Lizardtech).
6
 * Purpose:   
7
 * Author:   Nacho Brodin, brodin_ign@gva.es
8
 *
9
 **********************************************************************/
10
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
11
*
12
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
13
*
14
* This program is free software; you can redistribute it and/or
15
* modify it under the terms of the GNU General Public License
16
* as published by the Free Software Foundation; either version 2
17
* of the License, or (at your option) any later version.
18
*
19
* This program is distributed in the hope that it will be useful,
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
* GNU General Public License for more details.
23
*
24
* You should have received a copy of the GNU General Public License
25
* along with this program; if not, write to the Free Software
26
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
27
*
28
* For more information, contact:
29
*
30
*  Generalitat Valenciana
31
*   Conselleria d'Infraestructures i Transport
32
*   Av. Blasco Ib��ez, 50
33
*   46010 VALENCIA
34
*   SPAIN
35
*
36
*      +34 963862235
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff