Ignore:
Timestamp:
Jun 6, 2016, 3:29:50 PM (4 years ago)
Author:
djay
Message:

Add support for GDAL 2 (base-vect-ops).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-api/java/zoo-api.c

    r525 r766  
    55
    66JNIEXPORT jstring JNICALL Java_ZOO__1
    7   (JNIEnv *env, jclass class, jstring msg){
    8   const char *message = (*env)->GetStringUTFChars(env,msg, 0);
     7  (JNIEnv *env, jclass _class, jstring msg){
     8  const char *message =
     9#ifdef JAVA7
     10    (*env).GetStringUTFChars(msg,0);
     11  return (*env).NewStringUTF(_(message));
     12#else
     13    (*env)->GetStringUTFChars(env,msg, 0);
    914  return (*env)->NewStringUTF(env, _(message));
     15#endif
    1016
    1117}
    1218
    1319JNIEXPORT jobject JNICALL Java_ZOO_updateStatus
    14   (JNIEnv *env, jclass class, jobject conf, jstring pourc, jstring msg){
     20  (JNIEnv *env, jclass _class, jobject conf, jstring pourc, jstring msg){
    1521
    1622  jclass scHashMapClass,scHashMap_class;
    1723#ifdef JAVA7
    1824  scHashMapClass = (*env).FindClass("java/util/HashMap");
     25  const char *pourcent = (*env).GetStringUTFChars(pourc,0);
     26  const char *message = (*env).GetStringUTFChars(msg,0);
    1927#else
    2028  scHashMapClass = (*env)->FindClass(env, "java/util/HashMap");
    21 #endif
    2229  const char *pourcent = (*env)->GetStringUTFChars(env,pourc, 0);
    2330  const char *message = (*env)->GetStringUTFChars(env,msg, 0);
     31#endif
    2432  maps* m = mapsFromHashMap(env,conf,scHashMapClass);
    2533  setMapInMaps(m,"lenv","status",pourcent);
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png