final class projectionObj (View source)

Methods

__construct(string $projectionString)

Creates a projection object based on the projection string passed as argument.

ProjectionObj
ms_newProjectionObj(string $projectionString)

Old style constructor

int
getUnits()

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);

Parameters

string $projectionString

final ProjectionObj ms_newProjectionObj(string $projectionString)

Old style constructor

Parameters

string $projectionString

Return Value

ProjectionObj

final int getUnits()

Returns the units of a projection object. Returns -1 on error.

Return Value

int