| 194 | | if((outputFormat = msSelectOutputFormat( mapserv->Map, queryFormat)) != NULL) { |
|---|
| 195 | | |
|---|
| 196 | | if( !MS_RENDERER_TEMPLATE(outputFormat) ) { /* got an image format, return the query results that way */ |
|---|
| 197 | | |
|---|
| | 194 | /* |
|---|
| | 195 | ** The functions in mapoutput.c rely on mime-type too and we don't want that with queries. So |
|---|
| | 196 | ** we do a name search only. |
|---|
| | 197 | */ |
|---|
| | 198 | for( i = 0; i < mapserv->Map->numoutputformats; i++ ) { |
|---|
| | 199 | if( strcasecmp(queryFormat, mapserv->Map->outputformatlist[i]->name) == 0 ) |
|---|
| | 200 | outputFormat = mapserv->Map->outputformatlist[i]; |
|---|
| | 201 | } |
|---|
| | 202 | |
|---|
| | 203 | if(outputFormat) { |
|---|
| | 204 | if( !MS_RENDERER_TEMPLATE(outputFormat) ) { /* got an image format, return the query results that way */ |
|---|
| | 205 | printf("got an image output format\n"); |
|---|
| | 206 | return MS_SUCCESS; |
|---|