Revision 823 trunk/libraries/libjni-gdal/src/rasterband_interfaz.c
rasterband_interfaz.c | ||
---|---|---|
255 | 255 |
return pnYSize; |
256 | 256 |
} |
257 | 257 |
|
258 |
/******************************************************************************/ |
|
259 |
// GetRasterDataType |
|
260 |
/******************************************************************************/ |
|
261 |
|
|
262 |
JNIEXPORT jint JNICALL Java_es_gva_cit_jgdal_JNIBase_getRasterDataTypeNat |
|
263 |
(JNIEnv *env, jobject obj, jlong cPtr){ |
|
264 |
|
|
265 |
int datatype = -1; |
|
266 |
GDALRasterBandH *rb = (GDALRasterBandH *) 0 ; |
|
267 |
|
|
268 |
rb = *(GDALRasterBandH **)&cPtr; |
|
269 |
|
|
270 |
if(rb!=NULL) |
|
271 |
datatype = GDALGetRasterDataType( rb ); |
|
272 |
|
|
273 |
return datatype; |
|
274 |
} |
|
275 |
|
|
258 | 276 |
|
Also available in: Unified diff