Esempio n. 1
0
 protected static long getCPtrAndDisown(Layer obj) {
   if (obj != null) {
     obj.swigCMemOwn = false;
     obj.parentReference = null;
   }
   return getCPtr(obj);
 }
Esempio n. 2
0
 public int Erase(Layer method_layer, Layer result_layer) {
   return ogrJNI.Layer_Erase__SWIG_3(
       swigCPtr,
       this,
       Layer.getCPtr(method_layer),
       method_layer,
       Layer.getCPtr(result_layer),
       result_layer);
 }
Esempio n. 3
0
 public int Identity(Layer method_layer, Layer result_layer) {
   return ogrJNI.Layer_Identity__SWIG_3(
       swigCPtr,
       this,
       Layer.getCPtr(method_layer),
       method_layer,
       Layer.getCPtr(result_layer),
       result_layer);
 }
Esempio n. 4
0
 public int SymDifference(Layer method_layer, Layer result_layer) {
   return ogrJNI.Layer_SymDifference__SWIG_3(
       swigCPtr,
       this,
       Layer.getCPtr(method_layer),
       method_layer,
       Layer.getCPtr(result_layer),
       result_layer);
 }
Esempio n. 5
0
 public int Intersection(Layer method_layer, Layer result_layer) {
   return ogrJNI.Layer_Intersection__SWIG_3(
       swigCPtr,
       this,
       Layer.getCPtr(method_layer),
       method_layer,
       Layer.getCPtr(result_layer),
       result_layer);
 }
Esempio n. 6
0
 public int Erase(Layer method_layer, Layer result_layer, java.util.Vector options) {
   return ogrJNI.Layer_Erase__SWIG_2(
       swigCPtr,
       this,
       Layer.getCPtr(method_layer),
       method_layer,
       Layer.getCPtr(result_layer),
       result_layer,
       options);
 }
Esempio n. 7
0
 public int Erase(
     Layer method_layer, Layer result_layer, java.util.Vector options, ProgressCallback callback) {
   return ogrJNI.Layer_Erase__SWIG_0(
       swigCPtr,
       this,
       Layer.getCPtr(method_layer),
       method_layer,
       Layer.getCPtr(result_layer),
       result_layer,
       options,
       callback);
 }
Esempio n. 8
0
  public static LinkedHashMap getFieldMap(Layer lyr, List<String> fieldList) {

    LinkedHashMap<String, Boolean> m = new LinkedHashMap<>();

    if (lyr == null || fieldList == null || fieldList.size() == 0) {
      return m;
    }

    FeatureDefn lyrDefn = lyr.GetLayerDefn();
    int numberOfFields = lyrDefn.GetFieldCount();

    // Set all fields to false by default
    for (String fieldName : fieldList) {
      m.put(fieldName, false);
    }

    // Loop through available fields and set matches to true
    for (int i = 0; i < numberOfFields; i++) {
      FieldDefn fd = lyrDefn.GetFieldDefn(i);
      if (m.containsKey(fd.GetName())) {
        m.put(fd.GetName(), true);
      }
    }

    return m;
  }