Opened 21 years ago

Closed 18 years ago

#352 closed defect (fixed)

Query (click) on layer with overlapping polygons gives error message

Reported by: havard.tveite@… Owned by: refractions
Priority: high Milestone:
Component: PostGIS Interface Version: 4.0
Severity: normal Keywords:
Cc:

Description

I have a PostGIS layer with overlapping polygons. Querying by
clicking returns the expected result (info about the polygon
object and a map) when clicking on points where there is no
overlap between polygons.
When clicking on points where there is an overlap of polygons,
only information about one polygon plus a strange error message
is returned (no map, and no information about the rest of the
polygon objects):
"Content-type: text/html  msSearchDiskTree(): Unable to access file. Unable to
open spatial index for /home/www/mapserver/o-kart/../data/n5000/fylk-bal.qix. In
most cases you can safely ignore this message, otherwise check file names and
permissions."

For point layers, everyting seems to be working correctly (multiple
point objects are returned by the query when clicking close to many
points.
I checked an earlier 3.7 build, and it gives exactly the same error
message.

Change History (4)

comment:1 by sdlime, 21 years ago

Status: newassigned
Interesting bug. The error message itself is just what was the last error set by
the software so it doesn't tell us much except that it's bailing without
properly setting an error message. So, it may really help. It's not a query
error so I suspect but rather something in the template code. Could also be
something specific to PostGIS itself. My test query interface doesn't include
overlapping polygons but it does cover selecting multiple polygons with a single
point and I've seen no problems there. 

Any chance you could convert the PostGIS polygon layer to a polygon shapefile?
That would help me eliminate PostGIS as the culprit.

Steve

comment:2 by havard.tveite@…, 21 years ago

I exported the polygon data from PostGIS to shape (pgsql2shp).
Substituting the resulting shape file for the PostGIS connection
gives the expected (correct) nquery behaviour, so according to
Steve Lime, this bug has probably something to do with the
PostGIS interface.

comment:3 by sdlime, 21 years ago

Component: MapServer CGIPostGIS Interface
Owner: changed from sdlime to refractions
Status: assignednew

comment:4 by mark@…, 18 years ago

Resolution: fixed
Status: newclosed
This resulted from a change in PostgreSQL 7.4 that required cursors to be
explicitly closed at the end of transactions.  It was fixed in rev1.31.
Note: See TracTickets for help on using tickets.