projectionObj
final class projectionObj (View source)
Methods
Creates a projection object based on the projection string passed as argument.
Old style constructor
Returns the units of a projection object. Returns -1 on error.
Details
final
__construct(string $projectionString)
Creates a projection object based on the projection string passed as argument.
$projInObj = ms_newprojectionobj("proj=latlong") will create a geographic projection class. The following example will convert a lat/long point to an LCC projection: $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->project($projInObj, $projOutObj);
final ProjectionObj
ms_newProjectionObj(string $projectionString)
Old style constructor
final int
getUnits()
Returns the units of a projection object. Returns -1 on error.