[mapserver-users] Blank map when using WMS connection

Dejan Gambin dejan.gambin at coin.hr
Fri Feb 26 12:04:50 EST 2010


Hi,

Maybe someone can give me a hint about this problem:


I am trying to show a map from an external WMS server. This is what I can do successfully from my browser (get the image displayed):

http://www.geo-portal.hr/wmsconnector/com.esri.wms.Esrimap/SCM?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=107&STYLE=&SRS=EPSG:31275&BBOX=5421243,5015282,5421607,5015717&WIDTH=400&HEIGHT=300&FORMAT=image/png

Now, if I define my layer like this:


MAP
...
PROJECTION   
  "init=epsg:31275"
END 
...
...
LAYER
  NAME "wms_test"
  TYPE RASTER
  STATUS OFF
  CONNECTION "http://www.geo-portal.hr/wmsconnector/com.esri.wms.Esrimap/SCM?"
  CONNECTIONTYPE WMS
  PROJECTION
    "init=epsg:31275"
  END
  METADATA
    "DESCRIPTION"         "WMS Test"
    "wms_name"            "107"
    "wms_server_version"  "1.1.1"
    "wms_format"          "image/png"
    "wms_srs"            "EPSG:31275"
  END
END

...and try to show  it (previously zoomed to the same extent as the one defined above by BBOX) I get nothing shown and there is no error in any log file.

Am I doing something wrong? I tried several combinations with wms_srs, projection (commenting some of them), etc. but nothing helps :-).

Thanks very much,

regards, dejan


More information about the mapserver-users mailing list