Opened 12 years ago
#4134 new defect
PHP Mapscript - setBinding() function for labelObj "size" field incorectly initialized
Reported by: | khaitang | Owned by: | aboudreault |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | MapScript-PHP | Version: | 6.0 |
Severity: | normal | Keywords: | |
Cc: |
Description
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:
- Set up a layer to connect via OGR to another database, which contains several rows of label data including the size.
- Bind the layer label's "size" field to the result from the OGR query. i.e. $style->setBinding(MS_STYLE_BINDING_SIZE, 'mySizeItem');
- Generate a map with this layer enabled.
- The first result from the query will not show up on the map because the size field is -1.
Note:
See TracTickets
for help on using tickets.