[Git][debian-gis-team/mapserver][upstream] New upstream version 7.4.1

Bas Couwenberg gitlab at salsa.debian.org
Sat Jul 13 08:24:13 BST 2019



Bas Couwenberg pushed to branch upstream at Debian GIS Project / mapserver


Commits:
f628922f by Bas Couwenberg at 2019-07-13T04:37:56Z
New upstream version 7.4.1
- - - - -


12 changed files:

- CMakeLists.txt
- HISTORY.TXT
- cmake/FindOracle.cmake
- maplayer.c
- mapmssql2008.c
- mapogcfiltercommon.c
- mapogr.cpp
- mapscript/phpng/CMakeLists.txt
- mapscript/python/README.rst
- mapscript/python/tests/cases/map_test.py
- renderers/mvt/vector_tile.proto
- scripts/vagrant/packages.sh


Changes:

=====================================
CMakeLists.txt
=====================================
@@ -17,7 +17,7 @@ include(CheckCSourceCompiles)
 
 set (MapServer_VERSION_MAJOR 7)
 set (MapServer_VERSION_MINOR 4)
-set (MapServer_VERSION_REVISION 0)
+set (MapServer_VERSION_REVISION 1)
 set (MapServer_VERSION_SUFFIX "")
 
 set(TARGET_VERSION_MAJOR ${MapServer_VERSION_MAJOR})


=====================================
HISTORY.TXT
=====================================
@@ -12,6 +12,11 @@ For a complete change history, please see the Git log comments.  For more
 details about recent point releases, please see the online changelog at:
 http://mapserver.org/development/changelog/
 
+7.4.1 release (2019-7-12)
+-------------------------
+
+- No major changes, see detailed changelog for bug fixes
+
 7.4.0 release (2019-5-14)
 -------------------------
 


=====================================
cmake/FindOracle.cmake
=====================================
@@ -37,7 +37,7 @@ if(DEFINED ENV{ORACLE_HOME})
     ${ORACLE_HOME}/OCI/include) # Oracle XE on Windows
 
   set(ORACLE_OCI_NAMES clntsh libclntsh oci)
-  set(ORACLE_NNZ_NAMES nnz10 libnnz10 nnz11 libnnz11 nnz12 libnnz12 ociw32)
+  set(ORACLE_NNZ_NAMES nnz10 libnnz10 nnz11 libnnz11 nnz12 libnnz12 nnz18 libnnz18 ociw32)
   set(ORACLE_OCCI_NAMES libocci occi oraocci10 oraocci11 oraocci12)
 
   set(ORACLE_LIB_DIR 


=====================================
maplayer.c
=====================================
@@ -1680,7 +1680,7 @@ int msLayerApplyPlainFilterToLayer(FilterEncodingNode *psNode, mapObj *map, int
 int msLayerSupportsSorting(layerObj *layer)
 {
   if (layer && (
-    (layer->connectiontype == MS_OGR) || (layer->connectiontype == MS_POSTGIS) || (layer->connectiontype == MS_ORACLESPATIAL) || ((layer->connectiontype == MS_PLUGIN) && (strstr(layer->plugin_library,"msplugin_oracle") != NULL))
+    (layer->connectiontype == MS_OGR) || (layer->connectiontype == MS_POSTGIS) || (layer->connectiontype == MS_ORACLESPATIAL) || ((layer->connectiontype == MS_PLUGIN) && (strstr(layer->plugin_library,"msplugin_oracle") != NULL)) || ((layer->connectiontype == MS_PLUGIN) && (strstr(layer->plugin_library,"msplugin_mssql2008") != NULL))
                )
      )
     return MS_TRUE;


=====================================
mapmssql2008.c
=====================================
@@ -1506,8 +1506,21 @@ static int prepare_database(layerObj *layer, rectObj rect, char **query_string)
   query = msStringConcatenate(query, box3d);
   query = msStringConcatenate(query, ") = 1 ");
 
-  if (layerinfo->sort_spec)
+  if (layerinfo->sort_spec) {
       query = msStringConcatenate(query, layerinfo->sort_spec);
+  }
+
+  /* Add extra sort by */
+  if( layer->sortBy.nProperties > 0 ) {
+    char* pszTmp = msLayerBuildSQLOrderBy(layer);
+    if (layerinfo->sort_spec)
+        query = msStringConcatenate(query, ", ");
+    else
+        query = msStringConcatenate(query, " ORDER BY ");
+    query = msStringConcatenate(query, pszTmp);
+    msFree(pszTmp);
+  }
+
 
   if (layer->debug) {
       msDebug("query:%s\n", query);


=====================================
mapogcfiltercommon.c
=====================================
@@ -93,7 +93,7 @@ char *FLTGetIsLikeComparisonCommonExpression(FilterEncodingNode *psFilterNode)
   pszValue = psFilterNode->psRightNode->pszValue;
   nLength = strlen(pszValue);
   /* The 4 factor is in case of \. See below */
-  if( 1 + 4 * nLength + 1 + 1 >= sizeof(szTmp) )
+  if( 1 + 4 * nLength + 1 + 1 + 1 >= sizeof(szTmp) )
       return NULL;
 
   iTmp =0;
@@ -163,6 +163,10 @@ char *FLTGetIsLikeComparisonCommonExpression(FilterEncodingNode *psFilterNode)
       szTmp[iTmp] = '\0';
     }
   }
+  if (nLength > 0) {
+    szTmp[iTmp]= '$';
+    iTmp++;
+  }
   szTmp[iTmp] = '"';
   szTmp[++iTmp] = '\0';
 #if 0


=====================================
mapogr.cpp
=====================================
@@ -1934,12 +1934,14 @@ char *msOGRGetToken(layerObj* layer, tokenListNodeObjPtr *node) {
             }
             else if (c == '.')
                 c = wild_one;
-
-            if (i == 0 && c == '^') {
+            else if (i == 0 && c == '^') {
                 i++;
                 continue;
             }
-                
+            else if( c == '$' && c_next == 0 ) {
+                break;
+            }
+
             re[j++] = c;
             i++;
                 
@@ -3643,6 +3645,8 @@ static std::string msOGRTranslatePartialInternal(layerObj* layer,
             {
                 if( i == 0 && expr->m_aoChildren[1]->m_osVal[i] == '^' )
                     continue;
+                if( i == nSize-1 && expr->m_aoChildren[1]->m_osVal[i] == '$' )
+                    break;
                 if( expr->m_aoChildren[1]->m_osVal[i] == '.' )
                 {
                     if( i+1<nSize &&


=====================================
mapscript/phpng/CMakeLists.txt
=====================================
@@ -1,3 +1,5 @@
+find_package(SWIG REQUIRED)
+include(${SWIG_USE_FILE})
 if(WIN32 AND (${CMAKE_VERSION} EQUAL "3.12.0") OR (${CMAKE_VERSION} EQUAL "3.12.1") OR (${CMAKE_VERSION} EQUAL "3.12.2") OR (${CMAKE_VERSION} EQUAL "3.12.3"))
     message(FATAL_ERROR "Building with CMAKE ${CMAKE_VERSION} will not work. Please downgrade to 3.11.x or update to a higher version than 3.12.3")
 endif()


=====================================
mapscript/python/README.rst
=====================================
@@ -1,8 +1,8 @@
-Python MapScript for MapServer 7.2.1 README
+Python MapScript for MapServer 7.4.0 README
 ===========================================
 
 :Author: MapServer Team
-:Last Updated: 2018-11-28
+:Last Updated: 2019-06-04
 
 Introduction
 ------------
@@ -36,8 +36,8 @@ Advantages of ready-made wheels on PyPI include:
 
 Currently the following wheels are built:
 
-+ Python 2.7 x64 for MapServer 7.2
-+ Python 3.6 x64 for MapServer 7.2
++ Python 2.7 x64 for MapServer 7.4.0
++ Python 3.6 x64 for MapServer 7.4.0
 
 The mapscript wheels have been compiled using Visual Studio 2017 version 15.3 (``MSVC++ 14.11 _MSC_VER == 1911``). 
 Linux wheels are also planned, using the `manylinux <https://github.com/pypa/manylinux>`_ project. 
@@ -62,8 +62,8 @@ On Windows you can use the following, replacing ``C:\MapServer\bin`` with the lo
     SET PATH=C:\MapServer\bin;%PATH%
 
 Windows binary packages can be downloaded from `GIS Internals <https://www.gisinternals.com/stable.php>`_. 
-To ensure compatibility with the wheels, please use identical release packages, e.g. ``release-1911-x64-gdal-2-3-mapserver-7-2``
-for mapscript 7.2. 
+To ensure compatibility with the wheels, please use identical release packages, e.g. ``release-1911-x64-gdal-2-3-mapserver-7-4``
+for mapscript 7.4. 
 
 When using these packages the MapServer path will be similar to ``C:\release-1911-x64-gdal-2-3-mapserver-7-2\bin``. 
 
@@ -90,7 +90,7 @@ Now you should be able to import mapscript:
 .. code-block:: python
 
     python -c "import mapscript;print(mapscript.msGetVersion())"
-    MapServer version 7.2.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=SVGCAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
+    MapServer version 7.4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=SVGCAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
 
 If you failed to add the MapServer binaries to your system path you may see one of the following errors:
 
@@ -232,8 +232,8 @@ Make sure the MapServer binaries are on the system path, and that the PROJ_LIB v
 
 .. code-block:: bat
 
-    SET PATH=C:\release-1911-x64-gdal-2-3-mapserver-7-2\bin;%PATH%
-    SET PROJ_LIB=C:\release-1911-x64-gdal-2-3-mapserver-7-2\bin\proj\SHARE
+    SET PATH=C:\release-1911-x64-gdal-2-3-mapserver-7-4\bin;%PATH%
+    SET PROJ_LIB=C:\release-1911-x64-gdal-2-3-mapserver-7-4\bin\proj\SHARE
 
 Finally run the command below to run the test suite: 
 
@@ -254,4 +254,4 @@ Credits
 + Thomas Bonfort (developer)
 + Even Rouault (developer)
 + Seth Girvin (Python3 migration, documentation and builds)
-+ Claude Paroz (Python3 migration)
\ No newline at end of file
++ Claude Paroz (Python3 migration)


=====================================
mapscript/python/tests/cases/map_test.py
=====================================
@@ -290,15 +290,21 @@ class MapSizeTestCase(MapTestCase):
 class MapSetWKTTestCase(MapTestCase):
 
     def testOGCWKT(self):
-        self.map.setWKTProjection('PROJCS["unnamed", PROJECTION["Albers_Conic_Equal_Area"], '
-                                  'PARAMETER["standard_parallel_1", 65], PARAMETER["standard_parallel_2", 55], '
-                                  'PARAMETER["latitude_of_center", 0], PARAMETER["longitude_of_center", -153], '
-                                  'PARAMETER["false_easting", -4943910.68], PARAMETER["false_northing", 0]]')
+        self.map.setWKTProjection('''PROJCS["unnamed",GEOGCS["WGS 84",DATUM["WGS_1984",
+                                     SPHEROID["WGS 84",6378137,298.257223563]],
+                                     PRIMEM["Greenwich",0],
+                                     UNIT["Degree",0.0174532925199433]],
+                                     PROJECTION["Albers_Conic_Equal_Area"],
+                                     PARAMETER["standard_parallel_1", 65], PARAMETER["standard_parallel_2", 55],
+                                     PARAMETER["latitude_of_center", 0], PARAMETER["longitude_of_center", -153],
+                                     PARAMETER["false_easting", -4943910.68], PARAMETER["false_northing", 0],
+                                     UNIT["metre",1.0]
+                                     ]''')
         proj4 = self.map.getProjection()
 
         assert proj4.find('+proj=aea') != -1
-        assert proj4.find('+ellps=WGS84') != -1
-        assert (mapscript.projectionObj(proj4)).getUnits() != mapscript.MS_DD
+        assert proj4.find('+datum=WGS84') != -1
+        assert mapscript.projectionObj(proj4).getUnits() != mapscript.MS_DD
 
     def testESRIWKT(self):
         self.map.setWKTProjection('ESRI::PROJCS["Pulkovo_1995_GK_Zone_2", GEOGCS["GCS_Pulkovo_1995", '


=====================================
renderers/mvt/vector_tile.proto
=====================================
@@ -1,3 +1,6 @@
+//set version statement to avoid warnings thrown in protobuf >= 3
+syntax = "proto2";
+
 package vector_tile;
 
 option optimize_for = LITE_RUNTIME;


=====================================
scripts/vagrant/packages.sh
=====================================
@@ -6,7 +6,8 @@ export DEBIAN_FRONTEND=noninteractive
 
 apt-get update
 apt-get install -y python-software-properties
-add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
+add-apt-repository -y ppa:ubuntugis/ppa
+add-apt-repository -y ppa:ubuntugis/ubuntugis-testing
 apt-get update
 apt-get -y upgrade
 



View it on GitLab: https://salsa.debian.org/debian-gis-team/mapserver/commit/f628922f1d946049625d51f9df916e590adb9a6d

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/mapserver/commit/f628922f1d946049625d51f9df916e590adb9a6d
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20190713/35df3b92/attachment-0001.html>


More information about the Pkg-grass-devel mailing list