Skip to content
Permalink
Browse files

Merge pull request #5819 from mapserver/geographika-patch-2

Update Python MapScript README version numbers and date
  • Loading branch information...
geographika committed Jun 6, 2019
2 parents aa57708 + af2f4fb commit c56f6e2cfd44a9e0135a9dfb269ad7b9ddf9e77a
Showing with 22 additions and 16 deletions.
  1. +10 −10 mapscript/python/README.rst
  2. +12 −6 mapscript/python/tests/cases/map_test.py
@@ -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)
+ Claude Paroz (Python3 migration)
@@ -290,15 +290,21 @@ def testSetSize(self):
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", '

0 comments on commit c56f6e2

Please sign in to comment.
You can’t perform that action at this time.