In order to improve the performance of my app, I am trying to integrate Mapserver+Tilecache with ThinkGeo. I have tried many method to to that, but got little progress.
We tested against MapServer 5.2.1 and it works fine.
Could you try set different URL as following way ( the difference is that we set the Map), hope it helps. OnlineResource: ...hostname.../cgi-bin/mapserv.exe?MAP=C:/ms4w/apps/gmap/htdocs/gmap75_wms.map
Yale, I know how to integrate ThinkGeo and Mapserver, and it works well, but I don’t know how to use TileCache(another open source software) to enhance performance by using the tiles pre-created. Do you have any idea?
I think it depends on the TileCache of open source software, as mentioned in your post, we do not support the WMS-C standards now. Just curious that why you do not use the built in TileCache system of MapSuite component?
Yale, Thank you for your time. TileCache system of MapSuite component works only when I have created local cache(by panning/zooming etc.), and it works not bad if there is cache on local disk, but at the first time we use the system, we have no local cache yet. My customer can not accept the peformance when there is still no local cache. More information about my requirement: We are using C/S archetechre, we put the map data on serve. At first, we tried to access map data directly, but found bad performance during map manipulation. then we use Mapserver as WMS server. it’s better, but it took too long to create WMS aftermy client application(with ThinkGeo) send request. because Mapserver created WMS directly, so I want to pre-create the tiles on the server, then we can improve the server side’ performance. What’s more, the data on server may be updated frequently.
Yale, Thank you. I pre-generated 9 zoom levels cache as sacles following: 1000,000 500,000 250,500 100,000 50,000 25,000 10,000 5,000 2,500 But some times my client application don’t use the scales I pre-generated as above, for example, when I zoom to 50,000, client application may generate new cache directory named 50,000.00001, So my pre-generated cache will not be used. my code: this.winformsMap1.ZoomLevelSnapping =ThinkGeo.MapSuite.DesktopEdition.ZoomLevelSnappingMode.None; this.winformsMap1.ExtentOverlay.MouseWheelMode =ThinkGeo.MapSuite.DesktopEdition.MapMouseWheelMode.Disabled; this.winformsMap1.MouseWheel += new System.Windows.Forms.MouseEventHandler(winformsMap1_MouseWheel);
long[] m_Scales = new long[] { 1000000, 500000, 250000, 100000, 50000,25000, 10000, 5000, 2500 }; private int m_zoomIndex = 1;
public void ZoomIn() { if (m_zoomIndex < m_scales.GetLength(0)) { ++m_zoomIndex; } else { return; } this.winformsMap1.ZoomToScale(m_scales[m_zoomIndex - 1]); this.winformsMap1.Refresh();
}
public void ZoomOut() { if (m_zoomIndex >= 2) { --m_zoomIndex; } else { return; } this.winformsMap1.ZoomToScale(m_scales[m_zoomIndex - 1]); this.winformsMap1.Refresh(); }
What your map unit, is it in Meter & Feet instead of DecimalDegrees? If yes, I think that is because there was a potential bug hidden there.
About the MouseWheel solution, this solution is only a temporary way to go around the problem, while in next public release with this problem solved, there is a better way for it.
My map unit is Meter ,I think maybe there is a bug in function ZoomToScale . But I also tried to zoom my map to a certain scale by following the sample code. tWHeelWheelgis.thinkgeo.com/S...fault.aspx
So I think maybe the problem is the scale is a double type. I hope it will help you. I wanto to when you can release the next version with this problem is solved?