[maplab-users] GMAP problems

Jeff McKenna jmckenna at dmsolutions.ca
Sat Nov 27 18:10:25 EST 2004


Hi Paul,

I've done a little digging, and I can make my gmapfactory app work again 
with php_mapscript_44_beta2.dll.  In 
~/yourgmapfactoryapp/wrapper/map_session.php comment the following line:

line 845 $this->oMap->setprojection(implode( "\n", split( " ", 
$aszKeys["SRS"] ) ));

If I comment out that line my gmapfactory applications work (for 
mapscript_42 and 44.  I'm not a developer, so this isn't a fix...but try 
and see if it works for you.  Hopefully one of the original developers 
can explain the purpose of this line, so I'll add this to the bug report 
and see what they say.

jeff





Jeff McKenna wrote:
> Well Paul good/bad news.  You have found a good bug.  In my previous 
> tests it seems I was using mapfiles that did not require mapserver (or 
> the proj4 library) to reproject.  In my gmapfactory test application 
> (using a mapfile that forces a reprojection) using 
> php_mapscript_44_beta2.dll no image is shown..but if I change 
> globprefs.php to use php_mapscript_42.dll the map image appears. 
> Removing the projection references in the mapfile eliminates this 
> problem with php_mapscript_44.dll.  So you have found a good one indeed.
> I've filed a bug on maptools 
> (http://www.maptools.org/bugzilla/show_bug.cgi?id=872) and hopefully we 
> can come up with a solution for this shortly.
> 
> jeff
> 
> 
> 
> 
> Paul Dymecki wrote:
> 
>> Hi Daniel,
>>      The scenario is i have upgraded to mapserver4.4beta.  A previous 
>> GMAP
>> program is now not working,  for some reason except when i comment out 
>> the
>> projection sections from the mapfile(of course the map does'nt display
>> properly)  The same goes for the Tutorial map that comes with maplab ie.
>> works fine until i add the following projection:
>> PROJECTION
>>     "init=epsg:42304"
>>  END
>>
>> Also my old GMAP application does display fine in mapedit preview 
>> section,
>> so i was wondering if i could do code substitution somehow.  ie.  copy 
>> over
>> the code from mapedit to gmap?
>> thx for any ideas....
>> Paul
>>
>> ----- Original Message ----- From: "Daniel Morissette" 
>> <dmorissette at dmsolutions.ca>
>> To: "Paul Dymecki" <pdymecki at sympatico.ca>
>> Cc: "MapLab-users" <maplab-users at maptools.org>
>> Sent: Friday, November 26, 2004 2:56 PM
>> Subject: Re: [maplab-users] GMAP problems
>>
>>
>>
>>> Paul Dymecki wrote:
>>>
>>>> ok a bit further along;  on commenting out the projection section of 
>>>> the
>>
>>
>> map
>>
>>>> my base layers are then viewable so it's definitely a projection
>>
>>
>> problem..
>>
>>>> Paul
>>>>
>>>
>>> I didn't follow this whole thread, but have you considered sharing your
>>> mapfile with the list? I'd suspect an incomplete PROJECTION definition.
>>> That's what the error message tells us:
>>>
>>>
>>>>>>>> 2004 - msProcessProjection(): Projection library error. projection
>>
>>
>> not
>>
>>>>>>>> named\r
>>>
>>>
>>> Daniel
>>> -- 
>>> ------------------------------------------------------------
>>>  Daniel Morissette               dmorissette at dmsolutions.ca
>>>  DM Solutions Group              http://www.dmsolutions.ca/
>>> ------------------------------------------------------------
>>
>>
>>
>> _______________________________________________
>> Maplab-users mailing list
>> Maplab-users at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/maplab-users
>>
> 
> 


-- 
Jeff McKenna
GIS Specialist
DM Solutions Group Inc.
http://www.dmsolutions.ca



More information about the Maplab-users mailing list