#1633 closed defect (fixed)
Function queryByRect returns resultsetmembers with negative classindex
Reported by: | Owned by: | mapserverbugs | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | MapScript-PHP | Version: | 4.4 |
Severity: | major | Keywords: | |
Cc: |
Description
The MapScript-PHP method queryByRect returns some ResultCacheMemberObjects containing a negative classindex if there are more than 128 classes defined in the queried layer. The constant MS_MAXCLASSES in map.h is set to 250 but MapScript seems not to take account of it. According to the description of method getClass the classindex starts with 0. Using the method getClass with a negative classindex results in a returned NULL value.
Change History (6)
comment:2 by , 17 years ago
Owner: | changed from | to
---|
Sounds like the right fix (that's a lot of classes). Do you want to make it or should I? Steve
comment:4 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in both 4.8.0 and 4.9-dev in CVS
comment:5 by , 17 years ago
Note that Sean pointed out that this change will impact on the format of the files saved by msSaveQuery(). That should not be a problem unless there are people using saved queries for longer than a given user's session. What do you think Steve?
comment:6 by , 17 years ago
Sean's right, but as you say the impact is minimal given the duration of query files. I can't see them ever being written and then read by different versions of the software. Steve
Note:
See TracTickets
for help on using tickets.