[ka-Map-users] Error using WMS client function
Lorenzo Becchi
lorenzo at ominiverdi.com
Sun May 27 10:32:54 EDT 2007
Alessio,
I've tested your mapfile, it's well done.
If you use a different server there are no problems.
try DM Solutions example from Mapserver site:
LAYER
NAME "prov_bound"
TYPE RASTER
STATUS ON
CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?"
CONNECTIONTYPE WMS
METADATA
"wms_srs" "EPSG:42304"
"wms_name" "prov_bound"
"wms_server_version" "1.1.1"
"wms_format" "image/gif"
END
END
it will work fine.
I've done some tests with debugging mode.
using shp2img from mapserver 4.6.1 I have no problems.
The map is printed as expected.
using shp2imp from mapserver 4.10.1
http://wms.jpl.nasa.gov/wms.cgi?LAYERS=modis&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fjpeg&HEIGHT=300&VERSION=1.1.0&SRS=EPSG:4326&WIDTH=600&BBOX=%2D180%2C%2D90%2C180%2C90&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_xml
first given error is:
<ServiceExceptionReport version="1.1.0">
<ServiceException>
Required key 'styles' is missing
</ServiceException>
</ServiceExceptionReport>
so I've changed the WMS settings to:
CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?styles=&"
now shp2img works fine returning the right image but ka-map don't.
a new error is prompted (checking iside IMAGEPATH dir):
<ServiceExceptionReport version="1.1.0">
<ServiceException>
Bounding box has an invalid area
</ServiceException>
</ServiceExceptionReport>
how to check the remote call mapscript is doing?
anyway, while bored to test further more, I've done this strange thing:
CONNECTION
"http://wms.jpl.nasa.gov/wms.cgi?styles=&bbox=-180,-90,180,90&"
and the result is this:
http://www.ominiverdi.org/ka-map/multi_layer/htdocs/?map=wms
as you can see, just a little projection problem...
:-P
I guess there's something strange but outside is too sunny to stay in
front of the monitor.
hope somebody else can help too
:-)
ciao
Lorenzo
More information about the ka-Map-users
mailing list