[mapserver-users] simple question regarding output image

Benoît Andrieu bea at ixsea.com
Tue Dec 16 05:54:26 PST 2008


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
bea at ixsea.com
benoit.andrieu at gmail.com


  ----- Original Message ----- 
  From: Amiya Patra 
  To: mapserver-users at lists.osgeo.org 
  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
  mapserver-users at lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081216/eaeeb1fc/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cdot2.map
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20081216/eaeeb1fc/attachment.ksh>


More information about the MapServer-users mailing list