Opened 18 years ago

Closed 16 years ago

#1518 closed enhancement (fixed)

MIME type XML for browse template

Reported by: j.l.h.hartmann@… Owned by: jmckenna
Priority: high Milestone: 5.0.3 release
Component: Documentation - MapServer Version: unspecified
Severity: minor Keywords:
Cc: jmckenna

Description (last modified by hobu)

You can change the MIME header returned by MapServer for queries by using the
parameter QUERYFORMAT (in the WEB section). This works for query templates, but
not for normal ones (mode=browse). 

There would be more possibilities for AJAX applications if Mapserver CGI 
could return these templates as XML too, with the correct MIME-type and 
without the  comment header.

This would probably  require a BROWSEFORMAT option and supressing the comment.
There's a [version] tag to get at the build parameters anyway. 

And please add both keywords to the documentation.

Jan

Change History (10)

comment:1 by sdlime, 18 years ago

Cc: mapserver-bugs@… added
Milestone: 4.8 release
Status: newassigned
Someone also wanted this level of control for HTML legends. Dan, this is a new 
feature, but a small one. Any objection to trying to get this into 4.8?

Steve

comment:2 by dmorissette, 18 years ago

No problem. This sounds simple enough and we still have at least 2 betas before
the release.

comment:3 by sdlime, 18 years ago

Ok, I have committed the fix for this. There are two new parameters 
(browseformat and legendformat). Both, like for queryformat, default 
to "text/html".

Todo's: 

 1) PHP/MapScript probably needs to explicitly be able to set them
 2) Documentation

Since something like this is CGI specific 1) is not a high priority. 2) is and 
I'll take care of that on the new website.

Leaving bug "as is" until those happen.

Steve

comment:4 by hobu, 17 years ago

Description: modified (diff)

Can this one be closed now? Does it need to go in the doc bug bucket?

comment:5 by sdlime, 17 years ago

Component: MapServer CGIMapServer Documentation

comment:6 by tomkralidis, 17 years ago

Should this be reassigned to Jeff?

comment:7 by dmorissette, 17 years ago

Cc: jmckenna added

For the record, I have created ticket #2309 about adding browseformat and legendformat to PHP MapScript (will have to wait until 5.2).

With respect to docs, I'll let Steve decide but have CC'd Jeff in case he wants to grab it.

comment:8 by jmckenna, 16 years ago

Owner: changed from sdlime to jmckenna
Status: assignednew

comment:9 by jmckenna, 16 years ago

Status: newassigned

comment:10 by jmckenna, 16 years ago

Resolution: fixed
Status: assignedclosed

i have added browseformat, legendformat, and queryformat to the web object in the mapfile reference (checked into SVN in /trunk/docs).

Note that I tested all 3, but I could never get legendformat to work at all...browseformat would always return the legend in whatever mime type specified, but legendformat would do nothing for me. maybe i was doing something wrong.

Note: See TracTickets for help on using tickets.