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

Class: PixelCoordsConverter

Source Location: /client/HttpRequestHandler.php

Class Overview

Converter from pixel to geographical coordinates


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


return:  geographical coordinate
access:  private


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 64]

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.


return:  point in geographical coordinates


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 Wed, 6 Apr 2005 12:06:40 +0200 by phpDocumentor 1.3.0RC3