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:

  1. Set up a layer to connect via OGR to another database, which contains several rows of label data including the size.
  1. Bind the layer label's "size" field to the result from the OGR query. i.e. $style->setBinding(MS_STYLE_BINDING_SIZE, 'mySizeItem');
  1. Generate a map with this layer enabled.
  1. The first result from the query will not show up on the map because the size field is -1.

Change History (0)

Note: See TracTickets for help on using tickets.