Ticket #1518 (closed enhancement: fixed)

Opened 8 years ago

Last modified 5 years ago

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) (diff)

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

Changed 7 years ago by sdlime

  • cc mapserver-bugs@… added
  • status changed from new to assigned
  • milestone set to 4.8 release
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

Changed 7 years ago by dmorissette

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

Changed 7 years ago by sdlime

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

Changed 6 years ago by hobu

  • description modified (diff)

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

Changed 6 years ago by sdlime

  • component changed from MapServer CGI to MapServer Documentation

Changed 6 years ago by tomkralidis

Should this be reassigned to Jeff?

Changed 6 years ago by dmorissette

  • 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.

Changed 5 years ago by jmckenna

  • owner changed from sdlime to jmckenna
  • status changed from assigned to new

Changed 5 years ago by jmckenna

  • status changed from new to assigned

Changed 5 years ago by jmckenna

  • status changed from assigned to closed
  • resolution set to fixed

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.