Hello.<div><br></div><div>Thank You for your suggestion.</div><div><br></div><div>I tried to display my map using the CGI directly... and got the same segmentation fault error.</div><div>It would be very nice of You to tell me, how I may create the ticket (I mean using which site).</div>
<div><br></div><div>Regards,</div><div>Joseph</div><div><br><div class="gmail_quote">On Wed, Sep 8, 2010 at 9:24 PM, Alan Boudreault <span dir="ltr"><<a href="mailto:aboudreault@mapgears.com">aboudreault@mapgears.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
I'd say that php mapscript is not the cause. Could you try to display your map<br>
using the CGI directly. If you get the same seg fault error, it would be good<br>
if you could create a ticket with a minimal test case with a mapfile and data<br>
(perhaps you could do a simple ogr2gr from postgis to shapefile).<br>
<br>
regards,<br>
Alan<br>
<div class="im"><br>
On September 8, 2010 03:14:22 am Joseph Mamuchishvili wrote:<br>
> Hello,<br>
><br>
> I have compiled MapServer 5.6.4 with PHPMapscript on FreeBSD 8.1.<br>
> During configuration Ming support was added.<br>
> phpinfo() returns the following:<br>
</div>> MapScriptMapServer VersionMapServer version 5.6.4 OUTPUT=GIF OUTPUT=PNG<br>
<div class="im">> OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG<br>
> SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER<br>
> SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR<br>
</div>> INPUT=SHAPEFILEPHP MapScript Version<br>
<div class="im">> ($Revision: 10204 $ $Date: 2010-06-02 06:57:48 -0700 (Wed, 02 Jun 2010) $)<br>
><br>
</div>> mingMing SWF output libraryenabledVersion0.4.3<br>
<div><div></div><div class="h5">> I am using the following php script (*testmap.php*):<br>
><br>
> <?php<br>
> $map = ms_newMapObj("/map/apache/htdocs/map/mapsql.map");<br>
> $image=$map->draw();<br>
> $image_url=$image->saveImage("\\tmp");<br>
> ?><br>
><br>
> <HTML><br>
><br>
> <HEAD><br>
> <TITLE>Example 1: Displaying a map</TITLE><br>
> </HEAD><br>
><br>
> <BODY><br>
> <br><br>
> <IMG SRC=<?php echo $image_url; ?> ><br>
> </BODY><br>
><br>
> </HTML><br>
><br>
> and the contents for *mapsql.map* file is:<br>
><br>
> MAP NAME "Europe in purple"<br>
><br>
> SIZE 400 400<br>
> STATUS ON<br>
> EXTENT 478895 4615055 485900 4620056<br>
><br>
> UNITS METERS<br>
> SHAPEPATH "/home/map/SHP"<br>
><br>
> WEB<br>
> IMAGEPATH "/map/apache/htdocs/tmp/"<br>
> IMAGEURL "/tmp/"<br>
> METADATA<br>
> "wms_title" "wms_title" ##required<br>
> "wms_onlineresource" "<br>
> <a href="http://soso.freebsd.host/cg-bin/mapserv?map=/map/apache/htdocs/mapsql.map&" target="_blank">http://soso.freebsd.host/cg-bin/mapserv?map=/map/apache/htdocs/mapsql.map&</a>"<br>
> "wms_srs" "EPSG:32638"<br>
> END<br>
> END<br>
> PROJECTION<br>
> "proj=utm"<br>
> "zone=38"<br>
> "ellps=WGS84"<br>
> "datum=WGS84"<br>
> "units=m"<br>
> "no_defs"<br>
> END<br>
><br>
> QUERYMAP<br>
> COLOR 0 0 255<br>
> STATUS ON<br>
> STYLE HILITE<br>
> END<br>
><br>
><br>
> LAYER<br>
> NAME "main_streets"<br>
> TOLERANCE 1<br>
> TOLERANCEUNITS meters<br>
> CONNECTIONTYPE postgis<br>
> CONNECTION "user=pgsql dbname=pgsql host=soso.freebsd.host"<br>
> TEMPLATE "../query/query_template.html"<br>
> METADATA<br>
> QUERYABLE "true"<br>
> fields 'quca_ge:ქუჩის დასახელება,gid:გიდი'<br>
> hyperlink 'quca|<a href="http://myurl.com" target="_blank">http://myurl.com</a>'<br>
> searchfield "quca"<br>
> RESULT_FIELDS "quca_ge"<br>
> RESULT_HEADERS "the_geom"<br>
> END<br>
> TYPE POLYGON<br>
> STATUS ON<br>
> DATA "the_geom from main_streets"<br>
> CLASS<br>
> STYLE<br>
> COLOR 110 50 100<br>
> OUTLINECOLOR 200 200 200<br>
> END<br>
> END<br>
> END<br>
><br>
> END<br>
><br>
> *Everything works fine*, but now *i want to generate flash output*. So I<br>
> added the following block to *mapsql.map *file:<br>
><br>
> OUTPUTFORMAT<br>
> NAME swf<br>
> DRIVER "SWF"<br>
> MIMETYPE "application/x-shockwave-flash"<br>
> EXTENSION "swf"<br>
> IMAGEMODE PC256<br>
> FORMATOPTION "OUTPUT_MOVIE=SINGLE"<br>
> END<br>
><br>
> flash output is not generated and the following is appeared in apache error<br>
> log: *Segmentation fault (11).*<br>
> When trying to *launch *the testmap.php script from* the shell* the<br>
> following happens:<br>
> /php/bin/php ./testmap.php<br>
> *newSFWBitmapFillStyle: not a valid Bitmap FillStyle: 0*<br>
> Segmentation fault (core dumped)<br>
><br>
> What is the reason of this ? What am I doing wrong ?<br>
><br>
> Any suggestions or help will be appreciated.<br>
><br>
> Joseph.<br>
</div></div>> *<br>
> *<br>
><br>
<font color="#888888"><br>
--<br>
Alan Boudreault<br>
Mapgears<br>
<a href="http://www.mapgears.com" target="_blank">http://www.mapgears.com</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>With Best Regards,<br><br>Joseph Alex Mamuchishvili<br>
</div>