Opened 18 years ago
Closed 16 years ago
#1518 closed enhancement (fixed)
MIME type XML for browse template
Reported by: | Owned by: | jmckenna | |
---|---|---|---|
Priority: | high | Milestone: | 5.0.3 release |
Component: | Documentation - MapServer | Version: | unspecified |
Severity: | minor | Keywords: | |
Cc: | jmckenna |
Description (last modified by )
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:2 by , 18 years ago
No problem. This sounds simple enough and we still have at least 2 betas before the release.
comment:3 by , 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 , 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 , 17 years ago
Component: | MapServer CGI → MapServer Documentation |
---|
comment:7 by , 17 years ago
Cc: | added |
---|
comment:8 by , 16 years ago
Owner: | changed from | to
---|---|
Status: | assigned → new |
comment:9 by , 16 years ago
Status: | new → assigned |
---|
comment:10 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
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.