Opened 17 years ago

Closed 13 years ago

#305 closed defect (fixed)

OGR Provider gives infinite Loop

Reported by: ksgeograf Owned by:
Priority: medium Milestone:
Component: Feature Service Version: 2.1.0
Severity: major Keywords: OGR Infinite loop 100% CPU GEOMETRY query SELECTFEATURES
Cc: External ID:

Description

Text from the mailing list:

Query the layer with an attribute query, gives expected results. Query the layer with a geometry query, gives expected results, UNLESS there is exactly one feature in the result set. In this case the server goes into a nearly infinite loop. Investigating the issue by debugging, I found out that the query completes perfectly, and then the client sends an infinite stream of GetFeature packages. Breaking the run in the debugger, gave me the same feature in the result multiple times. Quering an SDF feature source gave no such problems. Changing the columns returned gave the same result.

The new thing that I have found out, is that the QUERYMAPFEATURES does not exhibit this problem. I find that very weird, as it should do exactly the same: query by geometry. I can now simulate a SELECTFEATURES by making a dummy runtime map, with a dummy layer visible. With the resultset, I can query the featuresource with the ID's. It works, but it is cumbersome and very slow.

With this new info, can anyone give a guess as to what the problem might be?

Attachments (4)

MGTest.zip (1003 bytes ) - added by ksgeograf 17 years ago.
Sample TAB file with a single polygon
TestOGR.FeatureProvider (439 bytes ) - added by ksgeograf 17 years ago.
A config for the data files
OGR Provider Output.xml (2.2 KB ) - added by ksgeograf 17 years ago.
Output from a successful run
OGR Infinite Loop Error.mgp (3.8 KB ) - added by ksgeograf 15 years ago.
Package with a complete OGR featuresource that fits the links in the issue

Download all attachments as: .zip

Change History (9)

by ksgeograf, 17 years ago

Attachment: MGTest.zip added

Sample TAB file with a single polygon

by ksgeograf, 17 years ago

Attachment: TestOGR.FeatureProvider added

A config for the data files

by ksgeograf, 17 years ago

Attachment: OGR Provider Output.xml added

Output from a successful run

comment:2 by tomfukushima, 17 years ago

Milestone: 2.0

comment:3 by jbirch, 15 years ago

Resolution: wontfix
Status: newclosed

Old ticket; closing. If still a concern, please retest at version 2.1 and re-open.

comment:4 by ksgeograf, 15 years ago

Resolution: wontfix
Status: closedreopened
Version: 1.2.02.1.0

Stil a problem in 2.1, I will attach an MGP for easier reproduction.

by ksgeograf, 15 years ago

Attachment: OGR Infinite Loop Error.mgp added

Package with a complete OGR featuresource that fits the links in the issue

comment:5 by jng, 13 years ago

Resolution: fixed
Status: reopenedclosed

Cannot observe this problem in 2.4. Considering it fixed.

Note: See TracTickets for help on using tickets.