I tried doing ratio:1 unfortunately it doesn't seem like enough of a performance increase. Separate layers for each category is an option, however, there are over a hundred categories, and any combination of categories can be on at any given time, so this could prove to have performance issues of it's own. However, I thank you guys Steve and Kaipi for your advice. I think I am just going to go back to my old method, which was using php mapscript to generate the tiles, then each time the user selected new categories, purge the cache and remake the mapfile. It's not the ideal solution but it seems to be the only one.<br>
<br>Thanks again,<br><br>-Adam<br><br><div class="gmail_quote">On Thu, Apr 29, 2010 at 3:50 PM, Lime, Steve D (DNR) <span dir="ltr"><<a href="mailto:Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Note that by default I believe openlayers will request an image that is *much* larger than what is visible. Setting the layers (OL) ratio:1 makes it the same size as the view port and that can speed up rendering considerably.<br>
<br>
Alternatively you could create a separate set of tiles for each category I suppose and switch OL layers as necessary...<br>
<div class="im"><br>
Steve<br>
<br>
________________________________________<br>
From: <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a> [<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>] On Behalf Of Adam Eskreis [<a href="mailto:aeskreis@gmail.com">aeskreis@gmail.com</a>]<br>
</div>Sent: Thursday, April 29, 2010 2:25 PM<br>
<div class="im">To: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
Subject: Re: [mapserver-users] Re: WMS and tiles cutting off<br>
<br>
</div><div class="im">Ok, I just gave an untiled layer a try, unfortunately though, due to the large amount of symbols being displayed on the screen, there is about a 2 second delay every time the map is panned. My client will most certainly find this unacceptable. I have tried using smaller images, but I cannot sacrifice any more quality. I believe my database query to be as optimized as it can be (has about 50 ms runtime, I honestly don't think I can get it any lower than that).<br>
<br>
If these are the only options, is there something else besides WMS that you all would recommend using to solve this issue?<br>
<br>
Thanks,<br>
-Adam<br>
<br>
</div><div class="im">On Thu, Apr 29, 2010 at 2:54 PM, Lime, Steve D (DNR) <<a href="mailto:Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a><mailto:<a href="mailto:Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a>>> wrote:<br>
So use two layers. One for the background, use tilecache for that. Then use an untiled wms/mapserver layer for the overlayed points. - Steve<br>
________________________________________<br>
</div>From: <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a><mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>> [<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a><mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>>] On Behalf Of Adam Eskreis [<a href="mailto:aeskreis@gmail.com">aeskreis@gmail.com</a><mailto:<a href="mailto:aeskreis@gmail.com">aeskreis@gmail.com</a>>]<br>
<div class="im">Sent: Thursday, April 29, 2010 1:24 PM<br>
</div>To: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><mailto:<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><br>
<div class="im">Subject: Re: [mapserver-users] Re: WMS and tiles cutting off<br>
<br>
I have thought about using tilecache with metatiling, however there is a caveat about this map that i forgot to mention in my main post, and it has to do with that "categories" parameter. Basically, each point/symbol on the map has an associated category in the database backend. I am using mapserver/WMS parameters to change the categories which are called. Each time the user selects a category, only the points in that category are shown. My query in the mapfile looks something like thi:<br>
<br>
SELECT point_geom,gid,symbol,angle FROM mapdata WHERE category IN(%CATEGORIES%)";<br>
<br>
And each time the user changes the categories, I use openlayers to merge new parameters, and input the new category values that should be used. Is tilecache still useable if I have a system like this set up?<br>
<br>
Thanks,<br>
-Adam<br>
<br>
<br>
</div><div class="im">On Thu, Apr 29, 2010 at 6:14 AM, kaipi <<a href="mailto:mapcollect@gmx.net">mapcollect@gmx.net</a><mailto:<a href="mailto:mapcollect@gmx.net">mapcollect@gmx.net</a>><mailto:<a href="mailto:mapcollect@gmx.net">mapcollect@gmx.net</a><mailto:<a href="mailto:mapcollect@gmx.net">mapcollect@gmx.net</a>>>> wrote:<br>
<br>
Hi,<br>
<br>
you can use <a href="http://tilecache.org/" target="_blank">http://tilecache.org/</a> Tilecache with the option metatiling<br>
enabled. With metatiling enabled Tilecache will fetch larger tiles (eg.<br>
4096x4096) from Mapserver and will cut them into smaller tiles (eg.<br>
256x256). It will also increase performance because Mapserver does not need<br>
to render tiles when they are already in cache.<br>
<br>
kaipi<br>
--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/WMS-and-tiles-cutting-off-tp4978418p4979280.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/WMS-and-tiles-cutting-off-tp4978418p4979280.html</a><br>
Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
mapserver-users mailing list<br>
</div><a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><mailto:<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><mailto:<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><mailto:<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>>><br>
<div><div></div><div class="h5"><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br>
<br>
</div></div></blockquote></div><br>