[Mapserver-users] documentation bug (was Re: projecting a point in PHP MapScript)

Chris Black cblack@CalAcademy.Org
Tue, 04 Mar 2003 11:03:54 -0800


Eric Bridger wrote:

>Chris,
>1) pointObj->project() does not return a point, it just reprojects the
>pointObj, so getting a null is not an error.
>

In that case, the online PHP class documentation should be modified. 
 The doc at 
http://mapserver.gis.umn.edu/doc36/phpmapscript-class-guide.html#proj 
has this code snippet:

    $projInObj = ms_newprojectionobj("proj=latlong");
    $projOutObj = ms_newprojectionobj("proj=lcc,ellps=GRS80,
                  lat_0=49,lon_0=-95,lat_1=49,lat_2=77");
    $poPoint = ms_newpointobj();
    $poPoint->setXY(-92.0, 62.0);         
    $poPoint = $poPoint->project($projInObj, $projOutObj);				
				

More on my own woes in my next message.

-- Chris

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users