Function queryByRect returns resultsetmembers with negative classindex
|Reported by:||Owned by:||mapserverbugs|
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)
Note: See TracTickets for help on using tickets.