Hi,
I also read and followed the article (http://www.xml.com/pub/a/2005/08/10/ka-map.html?page=1), and had this problem. I managed solved it after about three hours of effort. The problem is actually very easy to fix.
In your config.php file go to line 105 (that's what it is in mine) or the line that starts $
szMap this should say something like:
$szMap = 'gmap';
Change this to:
$szMap = 'weather';
This tells the system the default MAP file to load, therefore if it points to a non-existent file, it gives an error. Other than this the instructions are correct.
sahar AMM wrote:
http://mapserver.gis.umn.edu/docs/error/invalid_extent
hi,
I prepared my ka-map web application according the steps in
Build AJAX-Based Web Maps Using ka-Map
by Tyler Mitchell
But when I type http://localhost on my browser the ka-map interface appeare but without my map.. and this error appear:
Warning: Invalid argument supplied for foreach () in c:\kamap\htdocs\init.php on line 75
Fatal error: [MapServer error] : setExtent(): Given map extent invalid. Check that it is in the form:minx,miny, maxx,maxy in c:\kamap\htdocs\init.php on line 93
here is my map file global.map:
MAP NAME global_map STATUS ON SIZE 600 300 EXTENT -180 -90 180 90 UNITS DD IMAGECOLOR 255 255 255 IMAGETYPE png WEB IMAGEPATH "c:/kamap/htdocs/tmp/" IMAGEURL "c:/ka-map/tmp/" END
LEGEND TRANSPARENT TRUE END
SCALEBAR TRANSPARENT TRUE END
LAYER NAME clouds TYPE RASTER STATUS ON DATA "C:/kamap/htdocs/data/day_clouds.tif" END LAYER NAME countries TYPE LINE STATUS ON DATA "C:/kamap/htdocs/data/countries_simpl.shp" CLASS NAME "Country Boundaries" STYLE COLOR 200 100 100 END END END END
please help me to solve this error Don't just search. Find. MSN Search Check out the new MSN Search!
_______________________________________________
Mapserver-west mailing list
Mapserver-west@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/mapserver-west