[Mapserver-dev] Question about Pix2Georef in php_mapscript.c

Yewondwossen Assefa assefa at dmsolutions.ca
Tue Jul 15 14:43:12 EDT 2003

Sean Gillies wrote:

> Hi,
> Am helping Steve implement PHP-MapScript zoom* functions
> in the standard MapScript.  I'm trying to stay as close
> as possible to the code in php_mapscript.c.
> About Pix2Georef ... why are pixel positions being truncated
> (as ints) when passed as an argument to Pix2Georef?  Aren't
> we losing precision?

 It was based on the assumption that pixel coordinates (comming from 
user clicks and send through form variables) were always integers. There 
is no other reason why this function could not use other types that 
integer if It is necessary.


Assefa Yewondwossen           
Software Analyst   

Email: assefa at dmsolutions.ca    

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925

More information about the mapserver-dev mailing list