[ka-Map-users] Error using WMS client function
Open Maps
alessio.dilorenzo at gmail.com
Sun May 27 06:55:26 EDT 2007
Hi all,
I'm new in this ML and my problem is that my mapfile doesn't work
properly in ka-map pruducing this error:
Warning: [MapServer Error]: msDrawMap(): Failed to draw WMS layer named
'BMNG'. This most likely happened because the remote WMS server returned
an invalid image, and XML exception or another unexpected result in
response to the GetMap request. Also check and make sure that the
layer's connection URL is valid. in
/usr/local/apache2/webdomains/openmaps.it/home/htdocs/ka-map-1.0/htdocs/tile.php
on line 289
Fatal error: Call to a member function saveImage() on a non-object in
/usr/local/apache2/webdomains/openmaps.it/home/htdocs/ka-map-1.0/htdocs/tile.php
on line 290
I checked all the documentation that I know in the web but without any
result...
My mapfile is this:
MAP
NAME 'WorldMap'
TRANSPARENT ON
SIZE 800 600
UNITS dd
SHAPEPATH '/usr/local/apache2/webdomains/openmaps.it/home/mapserv/dati/'
EXTENT -180 -90 180 90
PROJECTION
'proj=longlat'
'ellps=WGS84'
'datum=WGS84'
'no_defs'
END
#IMAGECOLOR 192 192 192
IMAGEQUALITY 96
IMAGETYPE png
OUTPUTFORMAT
NAME gif
DRIVER 'GD/GIF'
MIMETYPE 'image/gif'
IMAGEMODE PC256
EXTENSION 'gif'
END
OUTPUTFORMAT
NAME jpeg
DRIVER 'GD/JPEG'
MIMETYPE 'image/jpeg'
IMAGEMODE RGB
EXTENSION 'jpeg'
END
WEB
IMAGEPATH
'/usr/local/apache2/webdomains/openmaps.it/home/htdocs/ka-map-1.0/tmp/kacache'
IMAGEURL
'/usr/local/apache2/webdomanins/openmaps.it/home/htdocs/ka-map-1.0/tmp/kacache/'
METADATA
"max_extents" "-180 -90 180 90"
END
END
REFERENCE
IMAGE
'/usr/local/apache2/webdomains/openmaps.it/home/mapserv/refmap/worldref.png'
SIZE 250 121
EXTENT -180 -90 180 90
STATUS ON
MINBOXSIZE 10
MAXBOXSIZE 150
COLOR -1 -1 -1
OUTLINECOLOR 128 0 0
MARKERSIZE 8
MARKER 'star'
END
LAYER
GROUP "BMNG"
NAME "BMNG"
TYPE RASTER
STATUS OFF
CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?"
CONNECTIONTYPE WMS
PROJECTION
"init=epsg:4326"
END
METADATA
"DESCRIPTION" "JPL Global Mosaic (WMS)"
"wms_name" "BMNG"
"wms_style" "default"
"wms_server_version" "1.1.1"
"wms_format" "image/jpeg"
END # Metadata
END # Fine Layer
LAYER
GROUP 'WorldMap'
NAME 'WorldMap'
TYPE POLYGON
DATA 'world.shp'
METADATA
'wms_title' 'world'
END
STATUS ON
TRANSPARENCY 100
PROJECTION
'proj=longlat'
'ellps=WGS84'
'datum=WGS84'
'no_defs'
END
CLASS
NAME World
STYLE
SYMBOL 0
SIZE 6
OUTLINECOLOR 0 0 0
COLOR 144 50 207
END
END
END #End Layer
END #End Map
The /.../tmp/kacache directory is accesible and writable...
You can check my app at
http://openmaps.it/kamap/index_overlay
As you can see the vector layer works correctly but BMNG wms layer is
not loaded in the kamap interface
Thanks fot your help!
More information about the ka-Map-users
mailing list