Opened 12 years ago

Closed 12 years ago

#4119 closed defect (fixed)

PHP MapScript documentation for layer function getClassIndex() not correct

Reported by: armin Owned by: jmckenna
Priority: low Milestone:
Component: Documentation - MapScript Version: 6.0
Severity: normal Keywords: PHP MapScript documentation
Cc:

Description

The PHP Mapscript documentation defines the function "getClassIndex()" for the layer class as

int getClassIndex(shape, scaledenom [, classgroup, numclasses])

This however seems not to be correct since if you put a scale as second argument it complains that as second argument it expects an array (the classgroup array). Checking the code in mapscript/php/layer.c the function it is defined without the "scaledenom"

  proto int layer.getClassIndex(shapeObj shape [, string classGroup, int numClasses])

So I guess the docs would needed to be updated to

int getClassIndex(shape [, classgroup, numclasses])

Change History (2)

comment:1 by havatv, 12 years ago

Component: Documentation - MapServerDocumentation - MapScript

comment:2 by havatv, 12 years ago

Resolution: fixed
Status: newclosed

Fixed for 6.0 and trunk in r13302.

Note: See TracTickets for help on using tickets.