Summing up what I've found, the feature request at http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=786 isn't actually about at what I was after. After re reading it (and a quite chat with Howard Butler) I can see that this feature request is just about querying the extent of a layer not limiting what is shown (don't I feel stupid :) ).
So since mapserver doesn’t really support limiting a layer with "show this layer only when my view is completely within it", I've build some code in php which checks the extent of the current view (using mapscript) and then I do a "within" query over the extents of some tiles. If it returns a tile id, I turn that tile on. Cheers, Benjamin -----Original Message----- From: UMN MapServer Users List [mailto:[EMAIL PROTECTED] On Behalf Of Benjamin Wragg Sent: Wednesday, 8 November 2006 9:02 AM To: [email protected] Subject: Re: [UMN_MAPSERVER-USERS] limiting layer visibility by extent Thanks for the response, not quite what I mean't though. I need the layer to turn only when your view extent is completely within the extent of the layer. Its what a client whats for some raster tiles. E.g if your completely within a tile turn it on but if your half over the extent of one tile and half over the extent of another, turn them both off. I know it sounds a little silly to do this (why not just display both tiles!) but this what the client watns and I'm just trying to figure out if its possible. :) Cheers, Benjamin -----Original Message----- From: UMN MapServer Users List [mailto:[EMAIL PROTECTED] On Behalf Of Steve Lime Sent: Wednesday, 8 November 2006 2:29 AM To: [email protected] Subject: Re: [UMN_MAPSERVER-USERS] limiting layer visibility by extent If I understand you correctly MapServer does this automatically if you set STATUS DEFAULT. The layer is always on and is shown if it's extent overlaps the view extent. Steve >>> Benjamin Wragg <[EMAIL PROTECTED]> 11/07/06 6:15 AM >>> Hi All, I was wondering if anyone knows if it's possible to limit a layers visibility by the current extent? E.g if the current extent is within the layers extent, turn the layer on I looked around and all I could find was this feature request http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=786 . It seems like Howard Butler may have got something going but I can't see mention of it in the mapfile reference on the site? Cheers, Benjamin -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.29/520 - Release Date: 6/11/2006 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.29/520 - Release Date: 6/11/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.29/520 - Release Date: 6/11/2006 -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.13.29/520 - Release Date: 6/11/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.14.0/524 - Release Date: 8/11/2006
