[mapserver-users] Compatibility between mapserver versions: nquery issue

Arthur Delorme delorme.ipgp at gmail.com
Tue Nov 27 01:53:42 PST 2012


Thank you for your help Steve, you're right: after some testing, it 
seems that template files with a .php extension are not working.

I have general header.php and footer.php files (described in the WEB 
section of the mapfile) and several header, body and footer php files 
for the layers.

By replacing all the extensions with html, it's working but I'd like to 
execute some php, which were possible before. Is it still possible?

Arthur

Le 26/11/12 17:47, Lime, Steve D (DNR) a écrit :
> The nquery mode is still supported, that hasn't changed. The error message is fairly informative, what are your templates named?
>
> Steve
>
> -----Original Message-----
> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Arthur Delorme
> Sent: Monday, November 26, 2012 10:38 AM
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] Compatibility between mapserver versions: nquery issue
>
> Hello,
>
> A few years ago, I developed a web interface to access data (informations and download) through spatial queries. It was based on mapserver 5.2.0 but I would like to update my code to mapserver 6.2.0 and I don't get how spatial queries are working nowadays.
>
> As far as I understood, nquery mode is not supported anymore for URL templates (the error is "msReturnPage(): Web application error.
> Malformed template name") but I can't figure how it is supposed to work then.
>
> On mapserver 5.2.0, a selection were made by drawing a rectangle and sending the query with:
>
> <select name="mode" id="mode">
> 	<option id="search" value="browse" selected="selected"
> [browse_select]>Display</option>
> 	<option id="selection" value="nquery" onclick="document.jbox.boxon();"
> [nquery_select]>Selection</option>
> </select>
>
> The result was displayed through template files, with a table containing some informations for each object selected on each activated layer (one line per object).
>
> If someone could give me some informations about the "new" way to obtain such a result, it would be great, because I am quite lost.
>
> Many thanks,
>
> Arthur
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>


More information about the mapserver-users mailing list