Revision 970 trunk/libraries/libjni-gdal/src/ogrlayer_interfaz.cpp
ogrlayer_interfaz.cpp | ||
---|---|---|
109 | 109 |
return res; |
110 | 110 |
} |
111 | 111 |
|
112 |
|
|
113 | 112 |
/******************************************************************************/ |
113 |
// getNextFeature |
|
114 |
/******************************************************************************/ |
|
115 |
|
|
116 |
JNIEXPORT jlong JNICALL Java_es_gva_cit_jogr_OGRLayer_getNextFeatureNat |
|
117 |
(JNIEnv *env, jobject obj, jlong cPtr){ |
|
118 |
|
|
119 |
OGRLayer *capa = (OGRLayer *) 0 ; |
|
120 |
OGRFeature *feature; |
|
121 |
long ptro_feat = -1; |
|
122 |
|
|
123 |
capa = *(OGRLayer **)&cPtr; |
|
124 |
if(capa!=NULL){ |
|
125 |
feature = capa->GetNextFeature(); |
|
126 |
if(feature !=NULL) |
|
127 |
ptro_feat = (long)&(*feature); |
|
128 |
else return -1; |
|
129 |
} |
|
130 |
|
|
131 |
return ptro_feat; |
|
132 |
|
|
133 |
} |
|
134 |
|
|
135 |
/******************************************************************************/ |
|
114 | 136 |
// ~OGRLayer |
115 | 137 |
/******************************************************************************/ |
116 | 138 |
|
Also available in: Unified diff