msMapGeorefToPixel() - mapobj.c

Frank Warmerdam warmerdam at POBOX.COM
Wed Oct 18 12:06:48 EDT 2006


Sandeep Kumar Jakkaraju wrote:
> Hi Frank,
> 
> Just to confirm ... I can use this method (if implemented) to get the
> pixel x,y of the map image corressponding to some Lat Lon ... in the
> map.. right !!

Sandeep,

This would work assuming the map coordinate system is latlong.  If the
map is projected, you would first need to reproject the latlong location
to the map projection, and then run through msMapGeorefToPixel().  The
functions are for transforming between map pixel/line and the maps
georeferenced coordinate system.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the mapserver-users mailing list