Client
[ class tree: Client ] [ index: Client ] [ all elements ]

Class: PixelCoordsConverter

Source Location: /client/HttpRequestHandler.php

Class Overview


Converter from pixel to geographical coordinates


Methods



Class Details

[line 28]
Converter from pixel to geographical coordinates



[ Top ]


Class Methods


method pixel2Coord [line 39]

double pixel2Coord( double $pixelPos, double $pixelMax, double $geoMin, double $geoMax, boolean $inversePix)

Computes pixel to geographical coordinates transformation



Tags:

return:  geographical coordinate
static:  
access:  private


Parameters:

double   $pixelPos   pixel coordinate
double   $pixelMax   maximum pixel coordinate
double   $geoMin   minimum geographical coordinate
double   $geoMax   maximum geographical coordinate
boolean   $inversePix   true if pixel coordinates are reversed

[ Top ]

method point2Coords [line 63]

Point point2Coords( Point $pixelPoint, Dimension $imageSize, Bbox $bbox)

Converts a point coordinates from pixel to geographical.

Pixel coordinates have their origin on image top left. x grows positively from left to right, and y grows from top to bottom.




Tags:

return:  point in geographical coordinates
static:  


Parameters:

Point   $pixelPoint   the point in pixel coordinates
Dimension   $imageSize   the size of the image containing the pixel point
Bbox   $bbox   the geographical bbox extent of the image.

[ Top ]


Documentation generated on Fri, 21 Sep 2007 13:30:49 +0200 by phpDocumentor 1.3.0RC3