Well...

If you look at the size of your output file, the size is quite huge... ^^
12345 x 23456 pixels, that's quite a big image !! ;)

Here is the result of gdalinfo on the image :

Driver: PNG/Portable Network Graphics
Files: f:\temp\4947ac7e_29f5_0.png
Size is 12345, 23456
Coordinate System is `'
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0,23456.0)
Upper Right (12345.0,    0.0)
Lower Right (12345.0,23456.0)
Center      ( 6172.5,11728.0)
Band 1 Block=12345x1 Type=Byte, ColorInterp=Palette
  Color Table (RGB with 256 entries)
    0: 255,255,255,255
    1: 0,0,0,255
    2: 255,0,0,255
    3: 234,233,233,255
    4: 233,232,233,255
    5: 234,233,234,255
    6: 233,233,233,255
    7: 215,148,53,255
...

Now, you should look at your map file to see why this output size :
IMAGETYPE png
#NAME "mapa"
SIZE 12345 23456#583 421


So, you put 12345 23456 as the optimal size for rendering the whole map and you 
commented another size (583 421).
You should try to put the size of your input file instead of 12345 23456.

Something else is coming to my mind ? Why do you want to use Mapserver to serve 
a file like this one ? Couldn't you use your web server to serve it ?

Regards,

Benoît Andrieu
+33.(0)1.30.08.95.21
[email protected]
[email protected]


  ----- Original Message ----- 
  From: Amiya Patra 
  To: [email protected] 
  Sent: Tuesday, December 16, 2008 2:23 PM
  Subject: [mapserver-users] simple question regarding output image


  hi
  Yeah If I put imagetype as gif then also o/p image size big than i/p gif..As 
well as if I put   imagetype(map file) is png or other o/p image size is still 
big........



------------------------------------------------------------------------------


  _______________________________________________
  mapserver-users mailing list
  [email protected]
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
MAP
        IMAGETYPE png
        #NAME "mapa"
        SIZE 12345 23456#583 421
        STATUS ON
        IMAGECOLOR     255 255 255
        EXTENT  0.0 0.0 475.0 486.0 #583.0 421.0
        UNITS MILES
        SHAPEPATH "/home/nms/MapServerData/data"
        #####################################
        # Symbol for drawing cup symbols
        #
        SYMBOL
                NAME "xy"

                TYPE pixmap
                IMAGE "/home/nms/MapServerData/data/z.gif"
        END
    
        WEB
                #TEMPLATE  "/home/nms/MapServerData/data/amiya.phtml"
                IMAGEPATH "/home/nms/MapServerData/img/"
                IMAGEURL "/img/"
        END

        #####################################
        # Reference map
        #
        REFERENCE
                IMAGE "/home/nms/MapServerData/data/st_india.gif"
                SIZE 300 225
                EXTENT 0.0 0.0 475.0 486.0
                STATUS ON
                COLOR -1 -1 -1
                OUTLINECOLOR 255 0 0
                MARKER "/home/nms/MapServerData/data/z.gif"
                MARKERSIZE 8
        END

        #####################################
        # Scalebar
        #
                SCALEBAR
                LABEL
                        COLOR 0 0 0
                        ANTIALIAS true
                        SIZE small
                END
                POSITION lr
                INTERVALS 2
                STATUS embed
                SIZE 144 5
                STYLE 0
                UNITS miles

                BACKGROUNDCOLOR 255 0 0
                IMAGECOLOR 255 255 255
                COLOR 128 128 128
                OUTLINECOLOR 0 0 255
                TRANSPARENT off
        END

        LAYER
                 NAME "Layer1"
                 TYPE RASTER
                 STATUS ON
                 DATA "st_india.gif"
                 CLASS
                        STYLE
                                # COLOR 110 50 100
                                # OUTLINECOLOR 200 200 200
                                
                        END
                 END


        END
        LAYER
                 NAME "Layer2"
                 TYPE RASTER
                 STATUS OFF
                 DATA "st_karnatka.gif"
                 CLASS
                        STYLE
                                # COLOR 110 50 100
                                # OUTLINECOLOR 200 200 200
                                
                        END
                 END


        END
LAYER
                 NAME "Layer4"
                 TYPE RASTER
                 STATUS OFF
                 DATA "Bangalore"
                 CLASS
                        STYLE
                                # COLOR 110 50 100
                                # OUTLINECOLOR 200 200 200
                                
                        END
                 END


        END
        #####################################
        # GRID layer - 
        #
        LAYER
                NAME "grid"
   


                SIZEUNITS PIXELS
                STATUS ON
                TOLERANCE 0
                TOLERANCEUNITS PIXELS
                TYPE LINE
                UNITS MILES
                CLASS
      

                        STYLE
                                COLOR 255 0 0
                                MAXSIZE 100
                                MINSIZE 1
                                SIZE 1
                                #SYMBOL 0
                        END
                END
                GRID
                        LABELFORMAT "%5.0f"
                        
                        MAXARCS 10
                        MAXINTERVAL 10
                        #MAXSUBDIVIDE 2
                END

                #      GRID
                #        MINSUBDIVIDE 0
                #        MAXSUBDIVIDE 0
                #        MININTERVAL 0.000000
                #        MAXINTERVAL 5.000000
                #        MINARCS 0
                #        MAXARCS 0
                #        LABELFORMAT DDMM
                #      END
        END


        #####################################
        # POI layer - points of interest
        #
        LAYER
                NAME "poi"
                STATUS default
                TYPE point
                LABELCACHE on
                TOLERANCEUNITS miles
                CLASS
                        SYMBOL "xy"
                        SIZE 15
                        STYLE
                                COLOR 255 0 0
                        END
                        
                        TEXT ""
                        LABEL
                                 BUFFER 20
                        END
                END
        END

END

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to