[mapguide-users] Pre-generating and populating the TileCache

Walt Welton-Lair walt.welton-lair at autodesk.com
Sun Aug 20 20:12:37 EDT 2006


The TileService has a GetTile API.  All you need to do is write a script which calls GetTile for all the tiles you're interested in, and those tiles will be placed in the cache.
 
Walt

	-----Original Message----- 
	From: Srikanth Nadhamuni [mailto:srikanth at egovernments.org] 
	Sent: Sat 8/19/2006 9:48 AM 
	To: users at mapguide.osgeo.org 
	Cc: 
	Subject: [mapguide-users] Pre-generating and populating the TileCache
	
	

	We would like to pre-generate tiles at various zoom levels (MapLayerGroup) and pre-populate the TileCache (Program Files/MapGuideOpenSource/Server/Repositories/TileCache) so as to improve performance of map rendering on the browser (to give the end-user google like interactivity for pan and zoom operations).

	 

	The TileService does not seem to have any APIs for tile creation, but the RenderingService has a RenderTile function:

	 

	virtual MgByteReader <file:///C:\Program%20Files\MapGuideOpenSource\WebServerExtensions\Help\d8\d50\class_mg_byte_reader.html>  * RenderTile <file:///C:\Program%20Files\MapGuideOpenSource\WebServerExtensions\Help\de\dbd\class_mg_rendering_service_568e4437f486cf2b7095039695662b69.html#568e4437f486cf2b7095039695662b69>  (MgMap <file:///C:\Program%20Files\MapGuideOpenSource\WebServerExtensions\Help\da\df8\class_mg_map.html>  *map, CREFSTRING baseMapLayerGroupName, INT32 tileColumn, INT32 tileRow)=0  Returns the specified base map tile for the given map. If a cached tile image exists it will return it, otherwise the tile is rendered and added to the cache.

	 

	Has anybody created a program using the above function to pre-populate the cache?

	 

	Regards,

	 

	-Srikanth

	 

	 

 

Technology for Social Change 

Srikanth Nadhamuni 
Managing Trustee 
www.egovernments.org <http://www.egovernments.org/> 

eGovernments Foundation 
303 Ashok Terrace, 2nd Floor, 100 ft Road, Indiranagar Bangalore 560 038

	 

	 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 11602 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapguide_users/attachments/20060820/0db905b2/attachment.bin


More information about the Mapguide_users mailing list