Opened 13 years ago

Closed 13 years ago

#1997 closed defect (fixed)

ITileService.GetTile has row/col swapped for LocalNative connection

Reported by: hm Owned by: jng
Priority: low Milestone: Maestro-4.0-maintenance
Component: Maestro Version:
Severity: minor Keywords: ITileService GetTile row column
Cc: External ID:

Description

When using the ITileService to generate tiles, I have discovered that when using a Maestro.LocalNative connection (instead of Http) the row and col parameter should be swapped or else the wrong tile is generated. However the API states that row comes first. I have made the following code in my application to bypass the bug (this also explains the problem better):

Stream image = null; if (isLocalNative)

image = tileSvc.GetTile(mapdef, basegroupname, col, row, scaleindex, format); Bug in MaestroAPI

else

image = tileSvc.GetTile(mapdef, basegroupname, row, col, scaleindex, format);

Please fix the MaestroAPI 4.0 branch to make the properties in the same order for both LocalNative and Http.

Change History (1)

comment:1 by jng, 13 years ago

Resolution: fixed
Status: newclosed

Fixed trunk (r6629) and 4.0.x (r6630)

It is actually the HTTP implementation which got the row/cols mixed up

Note: See TracTickets for help on using tickets.