IMAGETYPE

Jacob Delfos jacob.delfos at MAUNSELL.COM
Thu Dec 2 16:50:12 PST 2004


Nasir,

You haven't actually specified an output format in your mapfile. Look at:
http://mapserver.gis.umn.edu/doc42/mapfile-reference.html#outputformat

You must have an output format in there with a name that matches your imagetype. Your outputformat contain the instructions on what kind of image to create for that imagetype. Once your put the outputformat object in there (can be more than 1), your imagetype should work.

It probably works when you commented it out because mapserver uses a default imagetype if it cannot find any output format object in the mapfile.

regards,

Jacob


-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of nasir mahmood
Sent: 3 December 2004 06:42
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] IMAGETYPE


Hi,

I am trying to understand mapserver's tutorial examples. I am facing a problem with IMAGETYPE tag. when I set IMAGETYPE PNG, map isn't displayed but when I comment it out then it 's ok. Why it is so? Here is map files:

MAP
#IMAGETYPE PNG
EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514
SIZE 400 300
SHAPEPATH "C:\Program Files\Apache Group\Apache2\htdocs\tutorial\data\"
IMAGECOLOR 255 255 255
      PROJECTION
         "proj=laea"
          ellps=clrk66"
         "lat_0=45"
         "lon_0=-100"
         
        # Alternatively, you can specify an EPSG code.
          # "init=epsg:2163"
      END
LAYER # States polygon layer begins here

NAME states

DATA states_ugl

STATUS DEFAULT

TYPE POLYGON

PROJECTION

"init=epsg:4326"

END

CLASS

COLOR 232 232 232

OUTLINECOLOR 32 32 32

END

END 

END # end of map file/object

Nasir



--------------------------------------------------------------------------------
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20041203/005147f2/attachment.htm>


More information about the MapServer-users mailing list