PHP MapScript queries
Robert Ofarrell
s371538 at student.uq.edu.au
Wed Jan 31 14:35:08 PST 2001
I think you need a QUERY with a QUERYITEM in you map file. I would see
the accompanying information about map files and especially layers in the
mapserver documentation on their web site.
On Wed, 31 Jan 2001, Thorsten Fischer wrote:
>
> 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
> ---------------------------------------------------------
>
>
>
Robert O'Farrell
University of Queensland, Brisbane, Australia
More information about the MapServer-users
mailing list