[Mapserver-users] Gmap and MS 4.2

TCHaddad TCHaddad at cshore.com
Tue Jul 6 16:21:04 PDT 2004


Thanks...

Making sure both php and phtml were recognised improved the situation, but we are now getting alot of warnings dumping out at the top of the main GMap page. 

Seems to be primarily "undefined constant" warnings (see below). The App will work fine despite these warnings if we make Java mode disabled (warnings will still appear at the top every page reload), but the main map will not load if Java mode is enabled.

We're not too worried about the Java mode problem, but we would like the main non-java page to load without all these warnings...

TC

------------example warnings---------------->


Notice: Use of undefined constant MS_GIF - assumed 'MS_GIF' in E:\downloads\mapserver\gmap\gmap-ms40\htdocs\gmap75.inc.php on line 53

Notice: Use of undefined constant MS_GIF - assumed 'MS_GIF' in E:\downloads\mapserver\gmap\gmap-ms40\htdocs\gmap75.inc.php on line 54

Notice: Undefined index: MAP_NAME in E:\downloads\mapserver\gmap\gmap-ms40\htdocs\gmap75.php on line 63

Notice: Use of undefined constant road - assumed 'road' in E:\downloads\mapserver\gmap\gmap-ms40\htdocs\gmap75.inc.php on line 95

Notice: Undefined index: road in E:\downloads\mapserver\gmap\gmap-ms40\htdocs\gmap75.inc.php on line 96

Notice: Use of undefined constant rail - assumed 'rail' in E:\downloads\mapserver\gmap\gmap-ms40\htdocs\gmap75.inc.php on line 101

Notice: Use of undefined constant drainage - assumed 'drainage' in E:\downloads\mapserver\gmap\gmap-ms40\htdocs\gmap75.inc.php on line 107

Notice: Use of undefined constant drain_fn - assumed 'drain_fn' in E:\downloads\mapserver\gmap\gmap-ms40\htdocs\gmap75.inc.php on line 113

Notice: Use of undefined constant park - assumed 'park' in E:\downloads\mapserver\gmap\gmap-ms40\htdocs\gmap75.inc.php on line 119

Notice: Use of undefined constant popplace - assumed 'popplace' in E:\downloads\mapserver\gmap\gmap-ms40\htdocs\gmap75.inc.php on line 131

Notice: Use of undefined constant prov_bound - assumed 'prov_bound' in E:\downloads\mapserver\gmap\gmap-ms40\htdocs\gmap75.inc.php on line 137

Notice: Use of undefined constant fedlimit - assumed 'fedlimit' in E:\downloads\mapserver\gmap\gmap-ms40\htdocs\gmap75.inc.php on line 144

Notice: Use of undefined constant land_fn - assumed 'land_fn' in E:\downloads\mapserver\gmap\gmap-ms40\htdocs\gmap75.inc.php on line 150

Notice: Use of undefined constant grid - assumed 'grid' in E:\downloads\mapserver\gmap\gmap-ms40\htdocs\gmap75.inc.php on line 156

Notice: Undefined index: grid in E:\downloads\mapserver\gmap\gmap-ms40\htdocs\gmap75.inc.php on line 157

Notice: Undefined index: KEYMAP_x in E:\downloads\mapserver\gmap\gmap-ms40\htdocs\gmap75.inc.php on line 205

Notice: Undefined index: redraw_x in E:\downloads\mapserver\gmap\gmap-ms40\htdocs\gmap75.inc.php on line 308

Notice: Undefined index: mainmap_x in E:\downloads\mapserver\gmap\gmap-ms40\htdocs\gmap75.inc.php on line 346

Notice: Use of undefined constant JavaOn_x - assumed 'JavaOn_x' in E:\downloads\mapserver\gmap\gmap-ms40\htdocs\gmap75.php on line 110

Notice: Undefined index: JavaOn_x in E:\downloads\mapserver\gmap\gmap-ms40\htdocs\gmap75.php on line 110

Notice: Use of undefined constant JavaOff_x - assumed 'JavaOff_x' in E:\downloads\mapserver\gmap\gmap-ms40\htdocs\gmap75.php on line 113

---------- Original Message ----------------------------------
From: Yewondwossen Assefa <assefa at dmsolutions.ca>
Date:  Tue, 06 Jul 2004 18:06:43 -0400

>Although the gmap-ms40.zip does not use all the capabilities of 4.2, It
>is still compatible with that version. I have just tried it with 4.2 and
>4.3 (using Apache) and the application loads fine.
>
>  Your problem might be a configuartion issue with IIS  not redirecting
>or recogizing the phtml/php files. Do you have other php applications
>running using the same setup ?
>
>Later,
>
>TCHaddad wrote:
>
>> Greetings,
>> 
>> We just installed Mapserver/PHP Mapscript 4.2.0 (see config below) successfully (we thought) on IIS 5. To test it out we downloaded the most recent GMap we could find ( gmap-ms40.zip ), but on loading Gmap it is clear that GMap won't initialize correctly... instead it gives a bunch of PHP (see bottom), and an unworking interface shell...
>> 
>> Is gmap-ms40.zip compatible with PHP Mapscript 4.2.0 ? if not will there be an update of GMap? If it is supposed to work as is, where do we begin diagnosing our problem?
>> 
>> many thanks for any help,
>> 
>> TC
>> 
>> 
>> MapServer version 4.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE  
>> 
>> PHP MapScript Version  ($Revision: 1.194.2.3 $ $Date: 2004/05/13 21:37:44 $)  
>> 
>> ------------php dumped -------------->
>> 
>> extent->maxx - $gpoMap->extent->minx)/10; $dfTmpDeltaY = ($gpoMap->extent->maxy - $gpoMap->extent->miny)/10; // For now, we disable the 10% buffer until we get new data $dfTmpDeltaX = 0; $dfTmpDeltaY = 0; $dfMapExtMinX = $gpoMap->extent->minx; $dfMapExtMinY = $gpoMap->extent->miny; $dfMapExtMaxX = $gpoMap->extent->maxx; $dfMapExtMaxY = $gpoMap->extent->maxy; $dfMaxExtMinX = $gpoMap->extent->minx - $dfTmpDeltaX; $dfMaxExtMinY = $gpoMap->extent->miny - $dfTmpDeltaY; $dfMaxExtMaxX = $gpoMap->extent->maxx + $dfTmpDeltaX; $dfMaxExtMaxY = $gpoMap->extent->maxy + $dfTmpDeltaY; GMap75CheckClick(); $gszCommand = $HTTP_FORM_VARS["CMD"]; if ( sizeof($gszCommand) == 0) { $gszCommand = "ZOOM_IN"; } /* -------------------------------------------------------------------- */ /* swich between the rosa java applet and simple html for */ /* zooming and querying. */ /* -------------------------------------------------------------------- */ if (strlen($HTTP_FORM_VARS["PREVIOUS_MODE"])==0) $gbI
>
>sH!
>>  tmlMode = 0; // Start with Java On by default else $gbIsHtmlMode = intval($HTTP_FORM_VARS["PREVIOUS_MODE"]); if ($HTTP_FORM_VARS[JavaOn_x]) $gbIsHtmlMode = 0; if ($HTTP_FORM_VARS[JavaOff_x]) $gbIsHtmlMode = 1; function IsHtmlMode() { GLOBAL $gbIsHtmlMode; return $gbIsHtmlMode; } ?> 
>> 
>> 
>>                  
>> _______________________________________________
>> Mapserver-users mailing list
>> Mapserver-users at lists.gis.umn.edu
>> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>> 
>
>
>-- 
>----------------------------------------------------------------
>Assefa Yewondwossen
>Software Analyst
>
>Email: assefa at dmsolutions.ca
>http://www.dmsolutions.ca/
>
>Phone: (613) 565-5056 (ext 14)
>Fax:   (613) 565-0925
>----------------------------------------------------------------
>
>
>
>
>
                 



More information about the MapServer-users mailing list