PHP MapScript queries

Thorsten Fischer thfischer at mapmedia.de
Wed Jan 31 12:50:29 EST 2001


Ladies and gentlemen,

I am trying to do a query on a map. The result is a segmentation fault in the
mapserver. Please show where to look for errors, maybe in my compiled mapserver.


I got a map file with a valid extent and a single layer:

name mmplz
status on
size 600 600
symbolset "symbols/newsym.sym"
extent <enter valid values here>
units meters
shapepath "data"
imagecolor 255 255 255

layer
 name leger
 type polygon
 status on
 data plz
 classitem "plz5"
 class
  symbol 2
  outlinecolor 0 0 0
  color 255 255 255
  end
end

In php I write:

$map = ms_newMapObj ("raderg.map");
$mylayer = $map -> getLayerByName ("leger");

which works fine. Then:

$qres = $mylayer -> queryUsingRect ($rect);

where $rect is a valid rectangle -- segfault.


MapServer was configured as follows:

./configure --with-apxs=/usr/sbin/apxs --with-tiff=/usr --with-jpeg
--with-eppl --with-ttf --without-gif --with-gd=/opt/GIS --with-proj=/opt/GIS
--with-php=/home/frosch/src/GIS/mapserver/php-4.0.3pl1

php was configured as follows:

./configure --prefix=/usr/lib/apache --without-ttf --disable-debug
--with-mysql --enable-calendar --enable-dbase --without-zlib
--with-regex=system --with-gd=/opt/GIS --with-apxs=/usr/sbin/apxs

Thanks in advance,


Thorsten


-- 

Thorsten Fischer          thfischer at mapmedia.de

---------------------------------------------------------
MapMedia - Kartographie und raumbezogene Informationssysteme
Am Borsigturm 42
13507 Berlin
Deutschland
http://www.mapmedia.de tel: +49 (0)30 43032102
---------------------------------------------------------





More information about the mapserver-users mailing list