queryByShape on PostGIS-Layer segfault in php-mapscript

Uwe Junge ujunge at PMCENTRAL.COM
Fri May 6 15:08:27 EDT 2005


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



More information about the mapserver-users mailing list