[mapserver-users] Mapscript shapeObj->toWKt() or ms_shapeObjfromWkt problem.
Yewondwossen Assefa
yassefa at dmsolutions.ca
Wed Apr 1 10:33:09 PDT 2009
Not helping here but I have tested your script on windows with Mapserver
5.2.2 and 5.4 and the script runs ok. The geos version used in this
case is geos 2.2.3. Do you know what version of geos you are using?
There was a recent fix done toward geos support in MapServer and the
problem from what I remember was occurring with geos 3.1 (Is that
correct Tom ?)
(http://trac.osgeo.org/mapserver/ticket/2929
Best Regards
Moen, Paul T. wrote:
> 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
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
More information about the MapServer-users
mailing list