[mapguide-trac] #1997: ITileService.GetTile has row/col swapped for LocalNative connection

MapGuide Open Source trac_mapguide at osgeo.org
Wed May 9 07:00:55 EDT 2012


#1997: ITileService.GetTile has row/col swapped for LocalNative connection
-----------------------+----------------------------------------------------
   Reporter:  hm       |       Owner:  jng                            
       Type:  defect   |      Status:  new                            
   Priority:  low      |   Milestone:  Maestro-4.0-maintenance        
  Component:  Maestro  |     Version:                                 
   Severity:  minor    |    Keywords:  ITileService GetTile row column
External_id:           |  
-----------------------+----------------------------------------------------
 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.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1997>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list