#1119 closed defect (fixed)
MgSpatialContextReader shouldn't clear internal data when close
Reported by: | christinebao | Owned by: | Christine Bao |
---|---|---|---|
Priority: | medium | Milestone: | 2.2 |
Component: | General | Version: | 2.0.2 |
Severity: | trivial | Keywords: | |
Cc: | Bruce Dechant | External ID: | 1262439 |
Description
In MapGuide build 23.6 Query widget can't work.
Steps:
- Open one flexible web layout with Polygon layer in IE.
- Do Query on that layer.
Results:
No matched result returned.
Expected Results:
The matched result should be returned.
Attachments (2)
Change History (7)
by , 15 years ago
Attachment: | ClassDiagram.JPG added |
---|
comment:1 by , 15 years ago
comment:2 by , 15 years ago
How to fix:
The architecture for the readers is suppose to be:
Get reader
Use reader
Close reader
As the reader is cached inside, the Close() function shouldn't clear the internal data. Fixing is not to clear internal data when close:
void MgSpatialContextReader::Close() { } MgSpatialContextReader::~MgSpatialContextReader() { m_spatialContextCol.Clear(); }
by , 15 years ago
Attachment: | SpatialContextReader.patch added |
---|
comment:3 by , 15 years ago
Attach https://trac.osgeo.org/mapguide/attachment/ticket/1119/SpatialContextReader.patch for fixing the defect.
comment:4 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
One related ticket: https://trac.osgeo.org/mapguide/ticket/1107.
Note:
See TracTickets
for help on using tickets.
Tech diagnosis:
The relationship of the classes
Brief code snippet to demo how they work
How the defect happens