Revision 22081 trunk/libraries/libjni-gdal/src/main/java/es/gva/cit/jgdal/JNIBase.java
JNIBase.java | ||
---|---|---|
102 | 102 |
case 8: res = getGCPCountNat(cPtr);break; |
103 | 103 |
case 9: res = getRasterDataTypeNat(cPtr);break; |
104 | 104 |
} |
105 |
|
|
106 |
if(res<0) |
|
107 |
throw new GdalException(msg2); |
|
108 |
else return res; |
|
105 |
|
|
106 |
if (res < 0) |
|
107 |
throw new GdalException(msg2); |
|
108 |
else |
|
109 |
return res; |
|
109 | 110 |
} |
110 | 111 |
|
111 |
|
|
112 |
|
|
113 |
static{ |
|
112 |
static { |
|
114 | 113 |
String os = System.getProperty("os.name"); |
115 |
if(os.toLowerCase().startsWith("windows")) |
|
116 |
System.loadLibrary("jgdal080");
|
|
114 |
if (os.toLowerCase().startsWith("windows"))
|
|
115 |
System.loadLibrary("jgdal090");
|
|
117 | 116 |
else |
118 | 117 |
System.loadLibrary("jgdal"); |
119 | 118 |
} |
120 |
|
|
121 |
} |
|
119 |
} |
Also available in: Unified diff