Ticket #4134 (new defect)
Opened 17 months ago
PHP Mapscript - setBinding() function for labelObj "size" field incorectly initialized
|Reported by:||khaitang||Owned by:||aboudreault|
When binding the "size" field to the result of an OGR connected database, the first label of several is initialized to a size of -1 no matter what value is returned from the OGR connection's query.
To test: 1. Set up a layer to connect via OGR to another database, which contains several rows of label data including the size.
2. Bind the layer label's "size" field to the result from the OGR query. i.e. $style->setBinding(MS_STYLE_BINDING_SIZE, 'mySizeItem');
3. Generate a map with this layer enabled.
4. The first result from the query will not show up on the map because the size field is -1.