Revision 32301 branches/v2_0_0_prep/libraries/libjni-gdal/src/main/native/jgdal/gdal_interfaz.c

View differences:

gdal_interfaz.c
142 142
	free(pszFilename);
143 143
  	
144 144
  	jresult = (long)dataset;
145
  	
145

  
146 146
  	if(dataset == NULL)
147 147
  		return -1; 
148 148
  	else 
......
161 161
  	
162 162
  	int res=-1;
163 163
  	GDALDatasetH *dt  = (GDALDatasetH *) 0 ;
164
    	
165 164
	dt = (GDALDatasetH **)cPtr;
166 165
  	if(dt!=NULL)
167 166
	  	res = GDALGetRasterXSize(dt);
......
202 201
  	
203 202
  	int res=-1;
204 203
  	GDALDatasetH *dt  = (GDALDatasetH *) 0 ;
205
  	
206 204
  	dt = (GDALDatasetH **)cPtr;
207 205
  	if(dt!=NULL)
208 206
	  	res = GDALGetRasterCount(dt);
......
272 270
/******************************************************************************/
273 271

  
274 272

  
275
  JNIEXPORT jint JNICALL Java_es_gva_cit_jgdal_Gdal_getRasterBandNat
273
  JNIEXPORT jlong JNICALL Java_es_gva_cit_jgdal_Gdal_getRasterBandNat
276 274
  (JNIEnv *env, jobject obj, jlong cPtr, jint hBand) {
277 275
  	
278 276
  	GDALDatasetH *dt  = (GDALDatasetH *) 0 ;
......
280 278
  	jlong jresult = 0;
281 279

  
282 280
	dt = (GDALDatasetH **)cPtr;
283
    
284 281
	if(dt!=NULL) {
285 282
		rasterband = GDALGetRasterBand(dt, (int)hBand);
286 283
		jresult = (long)rasterband;

Also available in: Unified diff