[mapserver-users] Re: Image shrinking problem

Juozas Urbonas juozas.urbonas at teltonika.lt
Wed Feb 27 02:01:06 EST 2008


I'm sorry, I forgot to mention, that I'm creating GDAL driver, which I'm trying to use with MapServer.

Here is the gdalinfo for my map:
Driver: AkisAx/Akis Map Link (.mln)
Size is 60879, 47344
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.257223563,
            AUTHORITY["EPSG","7030"]],
        TOWGS84[0,0,0,0,0,0,0],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0,
        AUTHORITY["EPSG","8901"]],
    UNIT["degree",0.0174532925199433,
        AUTHORITY["EPSG","9108"]],
    AXIS["Lat",NORTH],
    AXIS["Long",EAST],
    AUTHORITY["EPSG","4326"]]
Origin = (20.660000000000000,56.659999999999997)
Pixel Size = (0.000104141001002,-0.000059352821899)
Corner Coordinates:
Upper Left  (  20.6600000,  56.6600000)
Lower Left  (  20.6600000,  53.8500000)
Upper Right (  27.0000000,  56.6600000)
Lower Right (  27.0000000,  53.8500000)
Center      (  23.8300000,  55.2550000)
Band 1 Block=256x256 Type=Byte, ColorInterp=Red
  Overviews: arbitrary
Band 2 Block=256x256 Type=Byte, ColorInterp=Green
  Overviews: arbitrary
Band 3 Block=256x256 Type=Byte, ColorInterp=Blue
  Overviews: arbitrary

And layer section from MapServer's .map file:
  LAYER
    NAME Lietuva
    TYPE RASTER
    DATA 'D:\Programs\AkisAX-trial\Lietuva.mln'
    MAXSCALE 3000000
    MINSCALE 50000
    METADATA
      'wms_title' 'Lietuva'
      'wms_srs' 'epsg:4326'
    END
    STATUS ON
    TRANSPARENCY 100
    PROJECTION
      'proj=longlat'
      'ellps=WGS84'
      'datum=WGS84'
      'no_defs'
    END
    DUMP TRUE
  END

Hope someone can help me.
Juozas.
  ----- Original Message ----- 
  From: Juozas Urbonas 
  To: mapserver-users at lists.osgeo.org 
  Sent: Tuesday, February 26, 2008 11:12 AM
  Subject: Image shrinking problem


  Hi All,

  When I'm requesting some image using WMS, my overridden IRasterIO gets called with nBufXSize and nBufYSize nearly double the size I'm requesting in WMS call and in the process image returned by WMS gets shrinked. What may cause this problem?
  I'm expecting nBufXSize and nBufYSize to be approximately the same size as in WMS request.

  Thanks for any help.
  Juozas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080227/1e901caa/attachment.html


More information about the mapserver-users mailing list