Revision 32289 branches/v2_0_0_prep/libraries/libjni-gdal/src/main/native/jgdal/rasterband_interfaz.c
rasterband_interfaz.c | ||
---|---|---|
63 | 63 |
GDALRasterBandH *rb = (GDALRasterBandH *) 0 ; |
64 | 64 |
int res = -1; |
65 | 65 |
|
66 |
rb = *(GDALRasterBandH **)&cPtr;
|
|
66 |
rb = (GDALRasterBandH **)cPtr;
|
|
67 | 67 |
|
68 | 68 |
if(rb!=NULL) |
69 | 69 |
res = GDALGetRasterBandXSize(rb); |
... | ... | |
84 | 84 |
GDALRasterBandH *rb = (GDALRasterBandH *) 0 ; |
85 | 85 |
int res = -1; |
86 | 86 |
|
87 |
rb = *(GDALRasterBandH **)&cPtr;
|
|
87 |
rb = (GDALRasterBandH **)cPtr;
|
|
88 | 88 |
|
89 | 89 |
if(rb!=NULL) |
90 | 90 |
res = GDALGetRasterBandYSize(rb); |
... | ... | |
104 | 104 |
GDALRasterBandH *rb = (GDALRasterBandH *) 0 ; |
105 | 105 |
int res = -1; |
106 | 106 |
|
107 |
rb = *(GDALRasterBandH **)&cPtr;
|
|
107 |
rb = (GDALRasterBandH **)cPtr;
|
|
108 | 108 |
|
109 | 109 |
if(rb!=NULL) |
110 | 110 |
res = GDALGetOverviewCount(rb); |
... | ... | |
125 | 125 |
GDALRasterBandH *res = NULL; |
126 | 126 |
jlong jresult = 0; |
127 | 127 |
|
128 |
rb = *(GDALRasterBandH **)&cPtr;
|
|
128 |
rb = (GDALRasterBandH **)cPtr;
|
|
129 | 129 |
|
130 | 130 |
if(rb!=NULL) |
131 | 131 |
res = GDALGetOverview(rb,(int)noverview); |
132 | 132 |
|
133 |
*(GDALDatasetH **)&jresult = res;
|
|
133 |
jresult = (long)res;
|
|
134 | 134 |
|
135 | 135 |
if(res==NULL)return -1; |
136 | 136 |
else return jresult; |
... | ... | |
177 | 177 |
float *buffFloat=NULL; |
178 | 178 |
double *buffDouble=NULL; |
179 | 179 |
|
180 |
rb = *(GDALRasterBandH **)&cPtr;
|
|
180 |
rb = (GDALRasterBandH **)cPtr;
|
|
181 | 181 |
|
182 | 182 |
if(rb!=NULL){ |
183 | 183 |
|
... | ... | |
345 | 345 |
GByte abyPCT[256][4]; |
346 | 346 |
int i = 0; |
347 | 347 |
|
348 |
rb = *(GDALRasterBandH **)&cPtr;
|
|
348 |
rb = (GDALRasterBandH **)cPtr;
|
|
349 | 349 |
|
350 | 350 |
if(rb!=NULL){ |
351 | 351 |
|
... | ... | |
463 | 463 |
jlong jresult = 0; |
464 | 464 |
GDALRasterBandH *rb = (GDALRasterBandH *) 0 ; |
465 | 465 |
|
466 |
rb = *(GDALRasterBandH **)&cPtr;
|
|
466 |
rb = (GDALRasterBandH **)cPtr;
|
|
467 | 467 |
hTable = GDALGetRasterColorTable( rb ); |
468 | 468 |
|
469 |
*(GDALColorTableH **)&jresult = hTable;
|
|
469 |
jresult = (long)hTable;
|
|
470 | 470 |
|
471 | 471 |
if(hTable == NULL) |
472 | 472 |
return -1; |
... | ... | |
485 | 485 |
GDALRasterBandH *rb = (GDALRasterBandH *) 0 ; |
486 | 486 |
int pnXSize=-1,pnYSize=-1; |
487 | 487 |
|
488 |
rb = *(GDALRasterBandH **)&cPtr;
|
|
488 |
rb = (GDALRasterBandH **)cPtr;
|
|
489 | 489 |
|
490 | 490 |
if(rb!=NULL) |
491 | 491 |
GDALGetBlockSize( rb,&pnXSize, &pnYSize ); |
... | ... | |
556 | 556 |
metodo = (*env)->GetMethodID(env, clase, "getSize","()I"); |
557 | 557 |
tam = (*env)->CallIntMethod(env,buffer,metodo); |
558 | 558 |
|
559 |
rb = *(GDALRasterBandH **)&cPtr;
|
|
559 |
rb = (GDALRasterBandH **)cPtr;
|
|
560 | 560 |
|
561 | 561 |
switch(eBufType){ |
562 | 562 |
case 1: |
... | ... | |
626 | 626 |
GDALRasterBandH *rb = (GDALRasterBandH *) 0 ; |
627 | 627 |
int pnXSize=-1,pnYSize=-1; |
628 | 628 |
|
629 |
rb = *(GDALRasterBandH **)&cPtr;
|
|
629 |
rb = (GDALRasterBandH **)cPtr;
|
|
630 | 630 |
|
631 | 631 |
if(rb!=NULL) |
632 | 632 |
GDALGetBlockSize( rb,&pnXSize, &pnYSize ); |
... | ... | |
644 | 644 |
int datatype = -1; |
645 | 645 |
GDALRasterBandH *rb = (GDALRasterBandH *) 0 ; |
646 | 646 |
|
647 |
rb = *(GDALRasterBandH **)&cPtr;
|
|
647 |
rb = (GDALRasterBandH **)cPtr;
|
|
648 | 648 |
|
649 | 649 |
if(rb!=NULL) |
650 | 650 |
datatype = GDALGetRasterDataType( rb ); |
... | ... | |
663 | 663 |
int bGotNodata = 0; |
664 | 664 |
GDALRasterBandH *rb = (GDALRasterBandH *) 0 ; |
665 | 665 |
|
666 |
rb = *(GDALRasterBandH **)&cPtr;
|
|
666 |
rb = (GDALRasterBandH **)cPtr;
|
|
667 | 667 |
|
668 | 668 |
if(rb!=NULL) |
669 | 669 |
nodata = GDALGetRasterNoDataValue( rb, &bGotNodata ); |
... | ... | |
681 | 681 |
int bGotNodata = 0; |
682 | 682 |
GDALRasterBandH *rb = (GDALRasterBandH *) 0 ; |
683 | 683 |
|
684 |
rb = *(GDALRasterBandH **)&cPtr;
|
|
684 |
rb = (GDALRasterBandH **)cPtr;
|
|
685 | 685 |
|
686 | 686 |
if(rb!=NULL) |
687 | 687 |
GDALGetRasterNoDataValue( rb, &bGotNodata ); |
... | ... | |
705 | 705 |
|
706 | 706 |
//Obtenemos los metadatos sobre papszMetadata |
707 | 707 |
|
708 |
rb = *(GDALRasterBandH **)&cPtr;
|
|
708 |
rb = (GDALRasterBandH **)cPtr;
|
|
709 | 709 |
|
710 | 710 |
|
711 | 711 |
if(rb!=NULL){ |
... | ... | |
741 | 741 |
GDALRasterBandH *rb = (GDALRasterBandH *) 0 ; |
742 | 742 |
int interp; |
743 | 743 |
|
744 |
rb = *(GDALRasterBandH **)&cPtr;
|
|
744 |
rb = (GDALRasterBandH **)cPtr;
|
|
745 | 745 |
interp = GDALGetRasterColorInterpretation(rb); |
746 | 746 |
|
747 | 747 |
return (jint)interp; |
... | ... | |
758 | 758 |
jint err; |
759 | 759 |
GDALColorInterp interp = (GDALColorInterp)bandType; |
760 | 760 |
|
761 |
rb = *(GDALRasterBandH **)&cPtr;
|
|
761 |
rb = (GDALRasterBandH **)cPtr;
|
|
762 | 762 |
|
763 | 763 |
if (rb != NULL){ |
764 | 764 |
err = GDALSetRasterColorInterpretation(rb, GCI_CyanBand); |
Also available in: Unified diff