[Git][debian-gis-team/jeolib-jiplib][upstream] New upstream version 1.2.3+ds

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Thu Nov 5 18:51:21 GMT 2026



Bas Couwenberg pushed to branch upstream at Debian GIS Project / jeolib-jiplib


Commits:
84e6cae6 by Bas Couwenberg at 2026-11-05T19:42:40+01:00
New upstream version 1.2.3+ds
- - - - -


11 changed files:

- CMakeLists.txt
- cmake/config.h
- doc/conf.py
- src/imageclasses/Jim.cc
- src/imageclasses/JimList.cc
- src/imageclasses/Mia.h
- src/imageclasses/rename.txt
- src/python/__init__.py
- src/python/setup.py
- src/swig/jiplib.i
- src/swig/miallib_tmp.i


Changes:

=====================================
CMakeLists.txt
=====================================
@@ -25,7 +25,7 @@ project(jiplib LANGUAGES CXX)
 # --- 1. Project Metadata ---
 set(JIPLIB_VERSION_MAJOR 1)
 set(JIPLIB_VERSION_MINOR 2)
-set(JIPLIB_VERSION_PATCH 1)
+set(JIPLIB_VERSION_PATCH 3)
 set(JIPLIB_VERSION "${JIPLIB_VERSION_MAJOR}.${JIPLIB_VERSION_MINOR}.${JIPLIB_VERSION_PATCH}")
 set(JIPLIB_SOVERSION "${JIPLIB_VERSION_MAJOR}")
 
@@ -388,7 +388,7 @@ INCLUDE(CTest)
 
 SET(JIPLIB_VERSION_MAJOR 1)
 SET(JIPLIB_VERSION_MINOR 2)
-SET(JIPLIB_VERSION_PATCH 1)
+SET(JIPLIB_VERSION_PATCH 3)
 SET(JIPLIB_VERSION "${JIPLIB_VERSION_MAJOR}.${JIPLIB_VERSION_MINOR}.${JIPLIB_VERSION_PATCH}")
 SET(PACKAGE_VERSION "${JIPLIB_VERSION}")
 SET(JIPLIB_SOVERSION "${JIPLIB_VERSION_MAJOR}")


=====================================
cmake/config.h
=====================================
@@ -1,6 +1,6 @@
 // the configured options and settings for jiplib
 #define JIPLIB_VERSION_MAJOR 1
 #define JIPLIB_VERSION_MINOR 2
-#define JIPLIB_VERSION_PATCH 1
+#define JIPLIB_VERSION_PATCH 3
 #define VERSION 1
 #define CLASSIF 0


=====================================
doc/conf.py
=====================================
@@ -67,9 +67,9 @@ author = u'Pieter Kempeneers and Pierre Soille'
 # built documents.
 #
 # The short X.Y version.
-version = u'1.2.1'
+version = u'1.2.3'
 # The full version, including alpha/beta/rc tags.
-release = u'1.2.1'
+release = u'1.2.3'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.


=====================================
src/imageclasses/Jim.cc
=====================================
@@ -3386,7 +3386,7 @@ std::string Jim::jim2json() {
     // 2. Handle StreamWriterBuilder
     // This is the specific source of your StreamWriterBuilderixERKSs error.
     Json::StreamWriterBuilder builder;
-    builder[Json::String("indentation")] = "";
+    builder["indentation"] = "";
     return Json::writeString(builder, custom);
 }
 


=====================================
src/imageclasses/JimList.cc
=====================================
@@ -184,7 +184,7 @@ std::string JimList::jl2json() {
 
     // 5. Handle StreamWriterBuilder specifically
     Json::StreamWriterBuilder builder;
-    builder[Json::String("indentation")] = "";
+    builder["indentation"] = "";
 
     return Json::writeString(builder, custom);
 }


=====================================
src/imageclasses/Mia.h
=====================================
@@ -24,6 +24,7 @@ along with jiplib.  If not, see <https://www.gnu.org/licenses/>.
 #include <vector>
 #include <queue>
 #include <limits>
+#include <cstdint>
 #include "Jim.h"
 
 /* #define  FICT_PIX  1 */


=====================================
src/imageclasses/rename.txt
=====================================
@@ -36,7 +36,7 @@ miallib_dist.h:extern ERROR_TYPE dst2d4(IMAGE *im); distance2d4
 miallib_dist.h:extern ERROR_TYPE dst2dchamfer(IMAGE *im); distance2dChamfer57
 miallib_dist.h:extern ERROR_TYPE chamfer2d(IMAGE *im, int type); distance2dChamfer
 miallib_dist.h:extern IMAGE *edistfifo2d(IMAGE *im, int graph); distance2dEuclideanFifo
-miallib_dist.h:extern IMAGE *sqedt(IMAGE *im); distance2dEuclideanSquared
+miallib_dist.h:extern IMAGE *sqedt(IMAGE *im, int out_type); distance2dEuclideanSquared
 miallib_dist.h:extern IMAGE *iz(IMAGE *im); distanceInfluenceZones2dEuclidean
 miallib_dist.h:extern ERROR_TYPE oiiz(IMAGE *im); distanceInfluenceZones2dOrderedIndependent
 miallib_dist.h:extern ERROR_TYPE geodist(IMAGE *im_m, IMAGE *im_r, int graph); distanceGeodesic
@@ -245,7 +245,7 @@ miallib_segment.h:extern ERROR_TYPE IsPartitionFiner(IMAGE *im1, IMAGE *im2, int
 miallib_segment.h:extern IMAGE **imgc(IMAGE *imlbl); imgc
 miallib_segment.h:extern ERROR_TYPE dendro(IMAGE **imap, int nc, char *fn); dendrogram
 miallib_segment.h:extern IMAGE **PartitionSimilarity(IMAGE *part1, IMAGE *part2, int graph); partitionSimilarity
-miallib_segment.h:extern IMAGE *segmentBinaryPatterns(IMAGE *imin, float size, int graphfg, int transition, int internal); segmentBinaryPatterns
+miallib_segment.h:extern IMAGE *segmentBinaryPatterns(IMAGE *imin, float size, int graphfg, int transition, int internal, int sqedt_type); segmentBinaryPatterns
 
 miallib_stats.h:extern IMAGE *histo1d(IMAGE *im); histo1d
 miallib_stats.h:extern IMAGE *histo2d(IMAGE *im1, IMAGE *im2); histo2d


=====================================
src/python/__init__.py
=====================================
@@ -23,4 +23,4 @@ from __future__ import absolute_import
 from .jiplib import *
 
 
-__version__ = '1.2.1'
+__version__ = '1.2.3'


=====================================
src/python/setup.py
=====================================
@@ -27,7 +27,7 @@ from setuptools import find_packages
 
 setup(
     name='jiplib',
-    version='1.2.1',
+    version='1.2.3',
     author='Pieter Kempeneers',
     author_email='pieter.kempeneers at ec.europa.eu',
     url='https://jeodpp.jrc.ec.europa.eu/apps/gitlab/JIPlib/jiplib',


=====================================
src/swig/jiplib.i
=====================================
@@ -90,11 +90,11 @@ along with jiplib.  If not, see <https://www.gnu.org/licenses/>.
     while (PyDict_Next($input, &ppos, &pKey, &pValue)) {
       std::string theKey;
       std::string theValue;
-      if(PyString_Check(pKey)){
-        theKey=PyString_AsString(pKey);
+      if(PyBytes_Check(pKey)){
+        theKey=PyBytes_AsString(pKey);
       }
       else if(PyUnicode_Check(pKey)){
-        theKey=PyString_AsString(PyUnicode_AsUTF8String(pKey));
+        theKey=PyBytes_AsString(PyUnicode_AsUTF8String(pKey));
       }
       else{
         PyErr_SetString(PyExc_TypeError,"Expected a string.");
@@ -106,16 +106,16 @@ along with jiplib.  If not, see <https://www.gnu.org/licenses/>.
         for(Py_ssize_t i=0;i<PyList_Size(pValue);++i){
           PyObject *rValue;
           rValue=PyList_GetItem(pValue,i);
-          if (PyString_Check(rValue))
-            theValue=PyString_AsString(rValue);
+          if (PyBytes_Check(rValue))
+            theValue=PyBytes_AsString(rValue);
           else if (PyUnicode_Check(rValue))
-            theValue = PyString_AsString(PyUnicode_AsUTF8String(rValue));
+            theValue = PyBytes_AsString(PyUnicode_AsUTF8String(rValue));
           else if(rValue != Py_None){
             PyObject *tmp_obj = PyObject_Repr(rValue);
-            if (PyString_Check(tmp_obj))
-              theValue=PyString_AsString(tmp_obj);
+            if (PyBytes_Check(tmp_obj))
+              theValue=PyBytes_AsString(tmp_obj);
             else if (PyUnicode_Check(tmp_obj))
-              theValue=PyString_AsString(PyUnicode_AsUTF8String(tmp_obj));
+              theValue=PyBytes_AsString(PyUnicode_AsUTF8String(tmp_obj));
           }
           else{
             PyErr_SetString(PyExc_TypeError,"Expected a string.");
@@ -125,12 +125,12 @@ along with jiplib.  If not, see <https://www.gnu.org/licenses/>.
         }
         continue;
       }
-      else if(PyString_Check(pValue)){
-        theValue=PyString_AsString(pValue);
+      else if(PyBytes_Check(pValue)){
+        theValue=PyBytes_AsString(pValue);
         $1->pushLongOption(theKey,theValue);
       }
       else if (PyUnicode_Check(pValue)){
-        theValue = PyString_AsString(PyUnicode_AsUTF8String(pValue));
+        theValue = PyBytes_AsString(PyUnicode_AsUTF8String(pValue));
         $1->pushLongOption(theKey,theValue);
       }
       else if(PyBool_Check(pValue)){
@@ -143,10 +143,10 @@ along with jiplib.  If not, see <https://www.gnu.org/licenses/>.
       }
       else if(pValue != Py_None){
         PyObject *tmp_obj = PyObject_Repr(pValue);
-        if (PyString_Check(tmp_obj))
-          theValue=PyString_AsString(tmp_obj);
+        if (PyBytes_Check(tmp_obj))
+          theValue=PyBytes_AsString(tmp_obj);
         else if (PyUnicode_Check(tmp_obj))
-          theValue=PyString_AsString(PyUnicode_AsUTF8String(tmp_obj));
+          theValue=PyBytes_AsString(PyUnicode_AsUTF8String(tmp_obj));
         $1->pushLongOption(theKey,theValue);
       }
     }
@@ -309,6 +309,12 @@ along with jiplib.  If not, see <https://www.gnu.org/licenses/>.
 %typemap(in,numinputs=0) double& lrx (double temp) "$1 = &temp;"
 %typemap(in,numinputs=0) double& lry (double temp) "$1 = &temp;"
 
+ /* for sqedt function in efedt.c */
+%typemap(in, numinputs=0) int out_type "$1 = t_UINT32;"
+
+ /* for segmentBinaryPatterns (MSPA) in mspa.c: hide sqedt_type from Python */
+%typemap(in, numinputs=0) int sqedt_type "$1 = t_UINT32;"
+
 %typemap(argout) double& ulx {
   %append_output(PyFloat_FromDouble(*$1));
  }
@@ -411,7 +417,7 @@ along with jiplib.  If not, see <https://www.gnu.org/licenses/>.
  }
 
 %typemap(argout) unsigned long int* ofs{
-  %append_output(PyInt_FromLong(*$1));
+  %append_output(PyLong_FromLong(*$1));
  }
 
 %typemap(in) double* gt(double temp[6]){
@@ -468,7 +474,7 @@ along with jiplib.  If not, see <https://www.gnu.org/licenses/>.
   pyList=PyList_New(n);
   for (i=0; i<n; i++) {
     std::string theField=(*$1).at(i);
-    PyList_SET_ITEM(pyList, i, PyString_FromString(theField.c_str()));
+    PyList_SET_ITEM(pyList, i, PyUnicode_FromString(theField.c_str()));
   }
   $result = pyList;
 }
@@ -649,11 +655,11 @@ along with jiplib.  If not, see <https://www.gnu.org/licenses/>.
           PyList_Append(lh,PyFloat_FromDouble(histValue));
         }
         std::string keyBin="bin";
-        PyDict_SetItem(d, PyString_FromString(keyBin.c_str()), lb);
-        PyDict_SetItem(d, PyString_FromString(key.c_str()), lh);
+        PyDict_SetItem(d, PyUnicode_FromString(keyBin.c_str()), lb);
+        PyDict_SetItem(d, PyUnicode_FromString(key.c_str()), lh);
       }
       else if(val.find("[")==std::string::npos)
-          PyDict_SetItem(d, PyString_FromString(key.c_str()), PyFloat_FromDouble(std::stod(val.c_str())));
+          PyDict_SetItem(d, PyUnicode_FromString(key.c_str()), PyFloat_FromDouble(std::stod(val.c_str())));
       else{
         PyObject *lb = PyList_New(0);
         val.erase(std::remove(val.begin(), val.end(), '['), val.end());
@@ -667,7 +673,7 @@ along with jiplib.  If not, see <https://www.gnu.org/licenses/>.
           if (ss.peek() == ',')
             ss.ignore();
         }
-        PyDict_SetItem(d, PyString_FromString(key.c_str()), lb);
+        PyDict_SetItem(d, PyUnicode_FromString(key.c_str()), lb);
       }
       ++mit;
     }
@@ -676,16 +682,16 @@ along with jiplib.  If not, see <https://www.gnu.org/licenses/>.
 /* } */
 
 /* %typemap(out) std::string getUniquePixels { */
-/*   $result=PyString_FromString($1.c_str()); */
+/*   $result=PyUnicode_FromString($1.c_str()); */
 /*  } */
 /* %typemap(out) std::map<std::vector<unsigned short>,unsigned short>& getUniquePixels { */
-/*     $result=PyString_FromString("hello"); */
+/*     $result=PyUnicode_FromString("hello"); */
 /* } */
 /* %typemap(out) std::map<unsigned short,unsigned short> getUniquePixels { */
-/*     $result=PyString_FromString("hello"); */
+/*     $result=PyUnicode_FromString("hello"); */
 /* } */
 /* %typemap(out) std::vector<unsigned short> getUniquePixels { */
-/*   $result=PyString_FromString("hello"); */
+/*   $result=PyUnicode_FromString("hello"); */
 /* } */
 //convert map to PyDict
 /* %typemap(out) std::map<std::vector<unsigned short>,std::vector<std::pair<unsigned short,unsigned short> > > getUniquePixels { */
@@ -695,15 +701,15 @@ along with jiplib.  If not, see <https://www.gnu.org/licenses/>.
 /*     std::vector<unsigned short> pv=mit->first; */
 /*     PyObject *pyv = PyList_New(mit->first.size()); */
 /*     for(int index=0;index<mit->first.size();++index) */
-/*       PyList_SetItem(pyv, index,PyInt_FromLong(mit->first[index])); */
+/*       PyList_SetItem(pyv, index,PyLong_FromLong(mit->first[index])); */
 /*     PyObject *coordinates = PyList_New(mit->second.size()); */
 /*     //construct dictionary as list of values */
 /*     for(int icoord=0;icoord<mit->second.size();++icoord){ */
 /*       PyObject *lc = PyList_New(2); */
 /*       unsigned int xcoord=mit->second[icoord].first; */
 /*       unsigned int ycoord=mit->second[icoord].second; */
-/*       PyList_SetItem(lc,0,PyInt_FromLong(xcoord)); */
-/*       PyList_SetItem(lc,1,PyInt_FromLong(ycoord)); */
+/*       PyList_SetItem(lc,0,PyLong_FromLong(xcoord)); */
+/*       PyList_SetItem(lc,1,PyLong_FromLong(ycoord)); */
 /*       PyList_SetItem(coordinates,icoord,lc); */
 /*     } */
 /*     PyDict_SetItem(d, pyv, coordinates); */
@@ -973,7 +979,7 @@ along with jiplib.  If not, see <https://www.gnu.org/licenses/>.
           PyList_SET_ITEM(pyListVector[ifield], ifeature, PyFloat_FromDouble(thisFeature->GetFieldAsDouble(*fit)));
           break;
         case(OFTString):
-          PyList_SET_ITEM(pyListVector[ifield], ifeature, PyString_FromString(thisFeature->GetFieldAsString(*fit)));
+          PyList_SET_ITEM(pyListVector[ifield], ifeature, PyUnicode_FromString(thisFeature->GetFieldAsString(*fit)));
           break;
         case(OFTInteger):
         case(OFTInteger64):
@@ -1005,7 +1011,7 @@ along with jiplib.  If not, see <https://www.gnu.org/licenses/>.
     PyObject *returnDict = PyDict_New();
     for(std::vector<size_t>::const_iterator fit=fieldindexes.begin();fit!=fieldindexes.end();++fit){
       std::string key = fields[*fit]->GetNameRef();
-      PyDict_SetItem(returnDict, PyString_FromString(key.c_str()), pyListVector[ifield]);
+      PyDict_SetItem(returnDict, PyUnicode_FromString(key.c_str()), pyListVector[ifield]);
       ++ifield;
     }
     if(returnDict)


=====================================
src/swig/miallib_tmp.i
=====================================
@@ -39,8 +39,8 @@ along with jiplib.  If not, see <https://www.gnu.org/licenses/>.
     for (i = 0; i < dim; i++) {
       PyObject *o = PySequence_GetItem($input,i);
       // https://docs.python.org/3.5/c-api/long.html
-      if (PyInt_Check(o)) {
-	$1[i] = (int)PyInt_AsLong(o);
+      if (PyLong_Check(o)) {
+	$1[i] = (int)PyLong_AsLong(o);
       }
       else {
 	PyErr_SetString(PyExc_ValueError,"Sequence elements must be integers");



View it on GitLab: https://salsa.debian.org/debian-gis-team/jeolib-jiplib/-/commit/84e6cae6a17a16d04e7b4515a9b78c5257dc3b5c

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/jeolib-jiplib/-/commit/84e6cae6a17a16d04e7b4515a9b78c5257dc3b5c
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20261105/11f17a66/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list