Pb : nothing rendered with WMS Client (with the files....)

Virginie Berre vberre at GI-PARIS.COM
Wed Apr 27 04:29:37 EDT 2005


-Sorry if it's the third time you read this message but I haven't receive a
copy so I think you don't too...-

Dear List,

I'm a new French MapServer user!

I try to create a map file (WMS client) which will request my WMS server
GeoServer bur it doesn't work... Nothing is rendered on the browser
 I have
the same problem when I try to request an internet WMS server.

It's strange because when I create a map file (WMS Server) which does the
same, it works...

My config is:
./mapserv -v
MapServer version 4.4.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR
INPUT=GDAL INPUT=SHAPEFILE

I let you see the wms client map file (geoserverwms.map) and my wms server
map file (mywms.map).

I hope you’ll find the error!

Thanks!

Best regards,

Virginie Berre

Générale d'Infographie
ZA Les Erables - Bâtiment 4
66, route de Sartrouville - F-78232 - LE PECQ cedex
Tél : (33) (0)1.30.15.40.50 - Fax : (33) (0)1.30.15.40.60
mailto:vberre at gi-paris.com
http://www.generale-infographie.fr/


_____________________________________________________________________
geoserverwms.map :

MAP
  IMAGETYPE png
  EXTENT -180 -90 180 90
  SIZE 600 400
  IMAGECOLOR 200 200 200

  WEB
    IMAGEPATH '/tmp/'
  END

  PROJECTION
    "init=epsg:4326"
  END

  # Start of LAYER DEFINITIONS ---------------------------------------------
  LAYER
    NAME "Country"
    TYPE RASTER
    STATUS ON
    CONNECTIONTYPE WMS
    CONNECTION "http://localhost:8082/geoserver/wms?"

    METADATA
      "wms_name" "myns:country"
      "wms_request" "GetMap"
      "wms_onlineresource" "http://localhost:8082/geoserver/wms?"
      "wms_server_version" "1.1.1"
      "wms_srs" "EPSG:4326"
      "wms_formatlist" "image/png"
      "wms_format" "image/png"
    END
    PROJECTION
      "init=epsg:4326"
    END
  END
  # End of LAYER DEFINITIONS -------------------------------
END # end of map file/object

________________________________________________________________
mywms.map

MAP
  NAME "DEMO"
  IMAGECOLOR 255 255 255
  EXTENT -180 -90 180 90
  SIZE 600 400

  WEB
    METADATA
      "wms_title"          "WMS Demo Server"
      "wms_onlineresource" "http://localhost/cgi-bin/mapserv?map=mywms.map&"
      "wms_srs"            "EPSG:4326"
    END
    IMAGEPATH '/tmp/'
  END

  PROJECTION
    "init=epsg:4326"
  END

  LAYER
    NAME "Country"
    TYPE RASTER
    STATUS ON
    METADATA
      "wms_title" "Country"
      "wms_onlineresource" "http://localhost/cgi-bin/mapserv?map=mywms.map&"
    END
    CONNECTIONTYPE WMS
    CONNECTION "http://localhost:8082/geoserver/wms?"

    METADATA
      "wms_name" "myns:country"
      "wms_request" "GetMap"
      "wms_onlineresource" "http://localhost:8082/geoserver/wms?"
      "wms_server_version" "1.1.1"
      "wms_srs" "EPSG:4326"
      "wms_latlonboundingbox" "-180 -90 180 90"
      "wms_formatlist" "image/png"
      "wms_format" "image/png"
    END
    PROJECTION
      "init=epsg:4326"
    END
  END
END



More information about the mapserver-users mailing list