Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make WFS Query Extents Available for Templating #4405

Closed
DonaldKerr opened this issue Jul 24, 2012 · 7 comments
Closed

Make WFS Query Extents Available for Templating #4405

DonaldKerr opened this issue Jul 24, 2012 · 7 comments
Assignees
Milestone

Comments

@DonaldKerr
Copy link

I posted the following message to Mapserver Users:

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.

A reply from Andreas Eichner suggested looking at "[shpminx], [shpminy] etc." but this only applies to the individual features within [resultset]. Likewise, Steve Lime suggested "[rawext]" which has limitations as "[mapext]" which provides the extents as configured in the map file; they bear no relationship to the query extents as defined by BBOX in the querystring.

I have created this ticket as suggested by Steve Lime.

Regards,

Donald

What's required is a keyword to gives the overall extents of the whole query by providing access to the individual parts of querystring BBOX i.e. "bbox.minx" etc or

@sdlime
Copy link
Member

sdlime commented Jul 24, 2012

Are you interested more in the original bbox, the extent of matching features or both? Probably talking about adding couple of tags...

Steve

@ghost ghost assigned sdlime Jul 24, 2012
@DonaldKerr
Copy link
Author

I'm only really interested in being able to access the individual parts of the bbox e.g. bbox.minx, bbox.miny etc. so that I can reformat them a space between coordinate pairs rather than 4 comma-separated values as it is just now. That would certainly satisfy my requirements at this stage.

Many thanks.

Regards,

Donald

@aeichner
Copy link
Contributor

It guess accessing those components would require explicit splitting and populating the BBOX parameter via processExtentTag(). It seems it is currently only available as ordinary CGI request parameter.
Extending the template output driver by using msGetQueryResultBounds() to populate [query_bbox] or the like might be a good idea.

@sdlime
Copy link
Member

sdlime commented Jul 25, 2012

I agree. That extent is readily available just as the query bbox.

@DonaldKerr
Copy link
Author

Having looked at this again, I can get the required information and formating by adding querystring parameters to the WFS call from the client since querystring parameters all seem to be passed directly through and are available for templating. Therefore, in my case, I do not now need templating options extended.

As well as "bbox" formatted with a space between the coordinate pairs, I also needed a "linearring" where the coordinate pairs are formated thus: "ll.x,lly lt.x,lt.y rt.x,rt.y rb.x,rb.y ll.x,ll.y" i.e. a box with the last coordinates being the same as the first.

I would be happy to see this request closed if no one else has the same requirement.

Thank you all.

Regards,

Donald

@sdlime
Copy link
Member

sdlime commented Aug 3, 2012

I'll leave open but push to 6.4 release... Steve

@sdlime
Copy link
Member

sdlime commented Jul 24, 2013

Not feeling motivated in light of my other tickets... Closing.

@sdlime sdlime closed this as completed Jul 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants