[Maplab-dev] Bug in MapLab 2.2 gMapFactory module
Zak James
zak-ms at hoppsan.org
Tue Aug 24 09:44:11 EDT 2004
Franck,
Thanks for the patch.
That code was trying to accommodate mapfiles from locations outside the
file browser root but I guess it does not work under certain
conditions. I will try to come up with a solution that is more reliable
for a future release. Your patch will allow it to work under most
normal use so it's a good fix for now.
Is your mapfile on a network drive?
zak
--
Zak James
Applications and Software Development
DM Solutions Group Inc.
http://www.dmsolutions.ca
On Aug 23, 2004, at 5:19 AM, VILLOIN Franck DSIC BMS wrote:
> Hi list,
>
> I installed the new version of MapLab 2.2 on my system.
> When I open in MapEdit the old map (created by MapLab 2.1 rc3) and use
> gMapFactory the first time is good.
> When I change the option and I click the Apply button I have the error.
>
> Warning: [MapServer Error]: msLoadMap(): (//Rac//rac_fr.map) in
> E:\MapLab\htdocs\gmapfactory\build_phtml.php on line 1301
>
> Warning: Failed to open map file //Rac//rac_fr.map in
> E:\MapLab\htdocs\gmapfactory\build_phtml.php on line 1301
>
> Parse error: parse error, unexpected ')' in
> E:\MapLab\projects\gmf_apps\test_franck\globprefs.php on line 46
>
> Fatal error: Call to a member function on a non-object in
> E:\MapLab\projects\gmf_apps\test_franck\test_franck.php on line 51
>
>
> After see the code sources off build_phtml.php, if I commente the
> lines 117
> at 128
>
> /*if (substr($http_form_vars['gszMapFile'], 0, 1) == "/" ||
> preg_match('/^(\w:)/', $http_form_vars['gszMapFile']))
> {
> if (substr($http_form_vars["gszMapFile"], 0,
> strlen($gszFileBrowserRoot)) == $gszFileBrowserRoot)
> {
> $http_form_vars["gszMapFile"] =
> "/".substr($http_form_vars["gszMapFile"], strlen($gszFileBrowserRoot));
> }
> else
> {
> $gszFileBrowserRoot = '';
> }
> } */
>
> and change the lines 130 at 133
>
> if ( !drawGlobprefs( $http_form_vars["gszAppDir"]."globprefs.php",
> $http_form_vars["gszAppDir"], $http_form_vars["gszWorkingDir"].
> "settings.php",
> $gszFileBrowserRoot.$http_form_vars["gszMapFile"],
> $gszMapscriptModule,
> $oLog ) )
>
> by
> if ( !drawGlobprefs( $http_form_vars["gszAppDir"]."globprefs.php",
> $http_form_vars["gszAppDir"], $http_form_vars["gszWorkingDir"].
> "settings.php",
> /*$gszFileBrowserRoot.*/$http_form_vars["gszMapFile"],
> $gszMapscriptModule,
> $oLog ) )
>
> I have commented $gszFileBrowserRoot.
>
> gMapFactory run very nice.
>
> But I see the revision and I don't know this probleme
> * Revision 1.29.2.2 2004/07/21 13:17:00 zak
> * fixed map file path discovery problems when absolute path is
> outside file
> browser root path
> *
> After my modifications this problem exist ???
>
>
> best regards.
>
> Franck
>
>
> _______________________________________________
> Maplab-dev mailing list
> Maplab-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/maplab-dev
More information about the Maplab-dev
mailing list