Steve, "[rawext]" has the same limitations as "[mapext]" which provides the overall extents as defined in the map file.
I have created a ticket as you suggested: https://github.com/mapserver/mapserver/issues/4405 Many thanks. Regards, Donald -----Original Message----- From: Lime, Steve D (DNR) [mailto:[email protected]] Sent: 24 July 2012 16:07 To: Donald Kerr; 'Eichner, Andreas - SID-NLKM'; [email protected] Subject: RE: [mapserver-users] Mapserver Template - BBOX Wonder if [rawext] will work? Worth a quick try but I doubt it. That value will get you the un-altered extent used for map draws or queries but only through CGI calls. I think what's happening is that because WFS works generally outside the CGI object that that some of the tracking variables referenced by the template code aren't being populated. The fix is relatively easy but there are a number of ways to go about it. Donald, can you create a ticket so this can get into 6.2 (I hope)... Steve -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Donald Kerr Sent: Tuesday, July 24, 2012 7:26 AM To: 'Eichner, Andreas - SID-NLKM'; [email protected] Subject: Re: [mapserver-users] Mapserver Template - BBOX Andreas, Thanks, but this only works for the individual features within [resultset]. I need to get the BBOX values which is basicallly the overall bounds of the query. [mapext] doesn't work either as that takes the bounds from the map file which are much greater than the BBOX for the query. Many thanks. Regards, Donald -----Original Message----- From: Eichner, Andreas - SID-NLKM [mailto:[email protected]] Sent: 24 July 2012 12:35 To: Donald Kerr; [email protected] Subject: AW: [mapserver-users] Mapserver Template - BBOX You might try: [shpminx], [shpminy], [shpmaxx], [shpmaxy] Minimum / maximum X or Y coordinate of shape extent. Available only when processing query results. See http://mapserver.org/mapfile/template.html#query HTH > -----Ursprüngliche Nachricht----- > Von: [email protected] > [mailto:[email protected]] Im Auftrag > von Donald Kerr > Gesendet: Dienstag, 24. Juli 2012 11:57 > An: [email protected] > Betreff: [mapserver-users] Mapserver Template - BBOX > > Hi list, > > I am trying to use BBOX in a WFS query template where I need to get > the minx, miny etc in the following format: > > "258481,665862 258607,665956" i.e. a space between coordinate pairs > which are separated by a comma. > > In the template, [bbox] returns "258481,665862,258607,665956" with > each value separated by a comma. > > I have tried "[bbox.minx],[bbox.miny] [bbox.maxx],[bbox.maxy]" without > success. > > Is there a way to achieve what I am looking for? > > Many thanks. > > Regards, > > Donald > > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
