queryByShape on PostGIS-Layer segfault in php-mapscript

Bart van den Eijnden bartvde at XS4ALL.NL
Sat May 7 06:00:04 EDT 2005


Hi Uwe,

are you able to try with 4.6 beta1? Maybe you even need to update
mapquery.c from current CVS.

I had a few querybyshape crashes also with 4.4.2, some of them were
solved, but not all of them. They disappeared magically when I moved to
4.6 beta1 and got a fix for bug 1335.

This might or might not be related:

http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1335

Assefa: "There was a missing call to msInitShape in function
msQueryByShape. I have
corrected this the cvs head."

Best regards,
Bart

On Fri, 06 May 2005 21:08:27 +0200, Uwe Junge <ujunge at PMCENTRAL.COM> wrote:

> I have a similar Problem to the one posted on Sat, 18 May 2002 17:35:25
> -0400 by <rburghol at vt.edu>
> ([mapserver-users] querybyshape on postgis layer segfault in php
> mapscript ):
>
>
> When executing queryByShape on PostGis-Layer i receive the following
> errors:
>
>
> 1) A windows-message
>  "The .. in 0x00d3bac5 points to memory in 0xffff. Unable to Read from
> memory "
>   (original message was not in english)
> 2) followed by
>  "The CGI application misbehaved by not returning a complete set of
> HTTP headers."
>
>
> *** Map-File: ***
>
> LAYER
>    TYPE POLYGON
>    CONNECTION "user=postgres password=xxxx dbname=dcmms host=localhost
> port=5432"
>    CONNECTIONTYPE POSTGIS
>    DATA "the_geom from county"
>    ...
> END
>
>
> LAYER
>    TYPE POINT
>    CONNECTION "user=postgres password=xxxx dbname=dcmms host=localhost
> port=5432"
>    CONNECTIONTYPE POSTGIS
>    DATA "the_geom from netbts"
>    ...
> END
>
>
> *** The PostGis-Table includes an indexed oid. ***
>
> *** Configuration: ***
>   - php4.3.11 (cgi-mode)
>   - mapserver-4.4.2-win32-php4.3.11.zip
>   - postgresql-8.0.2.zip
>   - postgis-setup-1.0.0-1.exe
>
>
> When using the original Shape Files (DATA "county.shp" and DATA
> "netbts.shp")
> as the Layer-Data instead, everything works.
> Also, when using either queryByPoint or queryByRect, everything works.
>
>
> Any help would be most appreciated.
>
> Uwe
>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/



More information about the mapserver-users mailing list