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

Chris Black cblack at CalAcademy.Org
Tue Mar 4 14:03:54 EST 2003


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




More information about the mapserver-users mailing list