Revision 5911 trunk/libraries/libjni-gdal/src/es/gva/cit/jgdal/GdalRasterBand.java
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 | 81 |
|
81 | 82 |
|
82 | 83 |
/** |
... | ... | |
364 | 365 |
else return res; |
365 | 366 |
|
366 | 367 |
} |
368 |
|
|
369 |
/** |
|
370 |
* Obtiene identificador que representa el tipo de banda de color. |
|
371 |
* @return identificador del tipo de banda de color |
|
372 |
* @throws GdalException |
|
373 |
*/ |
|
374 |
|
|
375 |
public int getRasterColorInterpretation(int band)throws GdalException{ |
|
376 |
if(cPtr <= 0) |
|
377 |
throw new GdalException("Error en getColorInterpretationName(). La llamada Open no tuvo exito"); |
|
378 |
int bandType = getRasterColorInterpretationNat(cPtr, band); |
|
379 |
return bandType; |
|
380 |
} |
|
367 | 381 |
} |
Also available in: Unified diff