protected static long getCPtrAndDisown(Layer obj) { if (obj != null) { obj.swigCMemOwn = false; obj.parentReference = null; } return getCPtr(obj); }
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); }
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); }
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); }
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); }
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); }
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); }
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; }