Opened 18 years ago

Last modified 17 years ago

#1727 closed defect

wrong arrguments order in msAddLabel — at Initial Version

Reported by: bogdan@… Owned by: mapserverbugs
Priority: highest Milestone:
Component: MapServer C Library Version: 4.8
Severity: critical Keywords:
Cc:

Description

Currently  signature for msAddLabel:
-----------------------------------
int msAddLabel(mapObj *map, int layerindex, int classindex, int shapeindex, int
tileindex, pointObj *point, char *string, double featuresize)

should be changed to:
----------------------
int msAddLabel(mapObj *map, int layerindex, int classindex, int tileindex, int
shapeindex, pointObj *point, char *string, double featuresize)

All calls to msAddLabel are using  shp->tileindex, shp->index as 4th and 5th
argument.
The current implementation will swap tileindex to shapeindex and when it comes
to find the tile file it will try o find the file to which the shapeidx points to.

As an example:  I have tileidx 64 and  a shapeidx 122. Instead getting a tile
file for Canada for shape 122 (a steet) I will get a tile file for Germany for
shape 64 ( a park).

Change History (0)

Note: See TracTickets for help on using tickets.