outputformat and default image format output

Sandeep Bashyal gis at UNDPHAIS.ORG.NP
Wed Nov 17 23:02:02 PST 2004


On Thu, 18 Nov 2004 12:36:20 +0545, Sandeep Bashyal <gis at UNDPHAIS.ORG.NP> wrote:

> On Wed, 17 Nov 2004 10:45:07 -0500, Kralidis,Tom [Burlington] <Tom.Kralidis at EC.GC.CA> wrote:
>
>> Hi,
>>
>> In my mapfile, I've defined:
>>
>>  OUTPUTFORMAT
>>   NAME GEOTIFF_RGB
>>   DRIVER "GDAL/GTiff"
>>   MIMETYPE "image/tiff"
>>   IMAGEMODE RGB
>>   EXTENSION "tif"
>>  END
>>
>> ...for some raster data, which is fine.  However, it seems to have taken
>> over my app/service as the default format.  i.e. if I request:
>>
>> http://host/url?mode=legend&layers=roadlayer
>>
>> ..this gives me back a prompt to download a TIFF image.
>>
>> If I comment out the OUTPUTFORMAT object, I get back a GIF image, which
>> is web friendly.
>>
>> Any ideas on how to define OUTPUTFORMAT and making sure a web friendly
>> format is returned on requests?
>>
>> Thanks
>>
>> ..Tom
>>
>>
>
> OUTPUTFORMAT
>    NAME gif
>    DRIVER "GD/GIF"
>    MIMETYPE "image/gif"
>    IMAGEMODE PC256
>    EXTENSION "gif"
> END
>
> or
>
> OUTPUTFORMAT
>    NAME png
>    DRIVER "GD/PNG"
>    MIMETYPE "image/png"
>    IMAGEMODE PC256
>    EXTENSION "png"
> END
>
> HTH.
> --
> Sandeep Bashyal
> --
>    National GIS Officer
>    Humanitarian Assistance Information System (HAIS)
>    United Nations (NEP/01/008)
>    UN House, Pulchowk
>    G.P.O. Box 107
>    Kathmandu, Nepal
>    Tel: (+977) 01 5543957
>         (+977) 01 5554304
>    Cell:(+977) 9841270854
>    Fax: (+977) 01 5528059
> --------------------------------------------------
> mailto:gis at undphais.org.np
> mailto:sandeep at earthmapping.com
> http://www.un.org.np
>
>

Oh. Sorry. Please disregard the above post.


--
Sandeep Bashyal
--
   National GIS Officer
   Humanitarian Assistance Information System (HAIS)
   United Nations (NEP/01/008)
   UN House, Pulchowk
   G.P.O. Box 107
   Kathmandu, Nepal
   Tel: (+977) 01 5543957
        (+977) 01 5554304
   Cell:(+977) 9841270854
   Fax: (+977) 01 5528059
--------------------------------------------------
mailto:gis at undphais.org.np
mailto:sandeep at earthmapping.com
http://www.undp.org.np



More information about the MapServer-users mailing list