[mapserver-users] Mapscript shapeObj->toWKt() or ms_shapeObjfromWkt problem.
Moen, Paul T.
pmoen at nd.gov
Wed Apr 1 09:24:59 PDT 2009
I get a segmentation fault when I run the following simple script with PHP MapScript on Mac OSX 10.5.6 running the latest versions from www.kyngchaos.com
#!/usr/local/php5cgi/bin/php -q
<?php
dl('php_mapscript.so');
$newwkt = 'MULTIPOLYGON(((1207657 478875,1208230 478275,1207452 477811,1207043 478520,1207657 478875)))';
$drawnShp = ms_shapeObjFromWkt($newwkt);
echo $drawnShp->toWKT();
?>
/Library/WebServer/CGI-Executables/mapserv -v
MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
The only output is;
Segmentation fault
The php version is 5.2.9 and the same thing happens with php versions 5.2.8, 5.2.5.
MapServer Version MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
PHP MapScript Version ($Revision: 7937 $ $Date: 2008-09-30 07:37:46 -0700 (Tue, 30 Sep 2008) $)
Anybody else run into this this error? How do I get more debug information?
Thanks,
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090401/8e3d4ed8/attachment.htm>
More information about the MapServer-users
mailing list