[Mapserver-users] Gmap and MS 4.2

Yewondwossen Assefa assefa at dmsolutions.ca
Tue Jul 6 18:06:43 EDT 2004


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