[MapServer-users] Python MapScript - GEOS

Nicol Hermann mapserver at geoworld.de
Thu Nov 23 10:16:14 PST 2023


Hello all,

it there a way to verify that GEOS Support is properly working with
Python mapscript.
The below buffer method fails but the msGetVersion claims
'SUPPORTS=GEOS'. Anything else im overlooking?


Python 3.9.2 (default, Feb 28 2021, 17:03:44) 
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mapscript
>>> pktObj= mapscript.pointObj( 49.9653578, 8.1601308, 100 )
>>> shpObj= pktObj.toShape()
>>> shpObjBuffer= shpObj.buffer( 0.0005 )
>>> if shpObjBuffer == mapscript.MS_SUCCESS:
...    rectObj = shpObjBuffer['bounds']
...    print( rectObj )
... else:
...    print('Error')
... 
Error
>>> print(mapscript.msGetVersion())
MapServer version 8.0.1 PROJ version 7.2 GDAL version 3.2 OUTPUT=PNG
OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
SUPPORTS=OGCAPI_SERVER SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR
INPUT=GDAL INPUT=SHAPEFILE INPUT=FLATGEOBUF


Thanks for any help

Nicol





More information about the MapServer-users mailing list