bad raster layer transform when BBOX is specified within request (WMS)

xslove (sent by Nabble.com) lists at NABBLE.COM
Mon Dec 12 04:03:36 EST 2005


Thank you for your interest.
I'll describe my problem deeply. First I print my mapping configuration file mywms.map: 

NAME WMS-test
STATUS ON
SHAPEPATH "c:/shp"
IMAGECOLOR 255 255 255


OUTPUTFORMAT
  NAME jpeg
  DRIVER "GD/JPEG"
  MIMETYPE "image/jpeg"
  IMAGEMODE RGB
  EXTENSION "jpg"
END


WEB
  IMAGEPATH "/ms4w/tmp/ms_tmp/"
  IMAGEURL "/ms_tmp/"
  METADATA
    "wms_title"           "WMS Demo Server"
    "wms_onlineresource"  "http://127.0.0.1:8080/cgi/mapserv.exe?"
    "wms_srs"             "EPSG:4818"
  END
END


PROJECTION
  "init=epsg:4818"
END


LAYER
  NAME "rastr"
  METADATA
    "wms_title"    "rastr"
  END
  DATA "rastr.jpg"
  TYPE RASTER
  # PROCESSING "DITHER=YES"
  STATUS ON
END

LAYER
  NAME "Sidla"
  METADATA
    "wms_title"    "Sidla"
  END
  TYPE POLYGON
  STATUS ON
  DATA "sidlap"
  PROJECTION
    "init=epsg:4818"
  END
  CLASS
    COLOR 0 0 0
  END 
END

END # Map File


So I use client Jump (www.jump-project.org) - a WMS Query looks: 
http://127.0.0.1:8080/cgi/mapserv.exe?map=mywms.map&


The raster layer "rastr" is jpeg file (1902 x 1268 pixels) and georeferencing parameters are stored
withinf file rastr.wld:
89.709857074417116
40.100000
60.100000
-95.749460470924021
-688498.9782178218
-1082839.0144039828


This is request example which the Jump sent to WMS:
http://127.0.0.1:8080/cgi/mapserv.exe?map=mywms.map&REQUEST=map&WMTVER=1.0&WIDTH=465&HEIGHT=345&LAYERS=rastr,Sidla&TRANSPARENT=TRUE&FORMAT=PNG&BBOX=-683099.75,-1229897.5,-520701.62,-1109408.5&SRS=EPSG:4818

The generated file has wrong drawn the raster layer, without rotation 

When I adjust a little a BBOX coordination (for example first -683099.75 to -693099.75) the raster layer is drawn right

This is request with adjusted firs coordination within BBOX param.
http://127.0.0.1:8080/cgi/mapserv.exe?map=mywms.map&REQUEST=map&WMTVER=1.0&WIDTH=465&HEIGHT=345&LAYERS=rastr,Sidla&TRANSPARENT=TRUE&FORMAT=PNG&BBOX=-693099.75,-1229897.5,-520701.62,-1109408.5&SRS=EPSG:4818



Best regards

Radim Slovacek
radim.slovacek at centrum.cz
Czech Republic


--
Sent from the Mapserver - Dev forum at Nabble.com:
http://www.nabble.com/bad-raster-layer-transform-when-BBOX-is-specified-within-request-%28WMS%29-t707716.html#a1902505
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20051212/01b23c47/attachment.html


More information about the mapserver-dev mailing list