Revision 7847 branches/v10/libraries/libjni-gdal/src/es/gva/cit/jgdal/GdalRasterBand.java

View differences:

GdalRasterBand.java
77 77
										int eBufType);
78 78
	private native double getRasterNoDataValueNat(long cPtr);
79 79
	private native String[] getMetadataNat(long cPtr,String pszDomain);
80
	private native int getRasterColorInterpretationNat(long cPtr, int band);
80
	private native int getRasterColorInterpretationNat(long cPtr);
81 81
	
82 82
	
83 83
	/**
......
290 290
	}
291 291
	
292 292
	/**
293
	 * 
293
	 * Obtiene la tabla de color asociada a la imagen
294 294
	 */
295 295
	public GdalColorTable getRasterColorTable()throws GdalException{
296
		
297 296
		if(cPtr <= 0)
298 297
			throw new GdalException("Error en getRasterColorTable(). La llamada GDALOpen no tuvo exito");
299 298
		
......
372 371
	 * @throws GdalException
373 372
	 */
374 373
		
375
	 public int getRasterColorInterpretation(int band)throws GdalException{
374
	 public int getRasterColorInterpretation()throws GdalException{
376 375
		if(cPtr <= 0)
377 376
			throw new GdalException("Error en getColorInterpretationName(). La llamada Open no tuvo exito");
378
		int bandType = getRasterColorInterpretationNat(cPtr, band);
377
		int bandType = getRasterColorInterpretationNat(cPtr);
379 378
		return bandType;		
380 379
	 }
381 380
}

Also available in: Unified diff