The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



CalcPixelCoords


Unit:SDL_geomap
Class:TGeoMap
Declaration:function CalcPixelCoords (Lat, Long: double; var x,y: integer): boolean;

The method CalcPixelCoords calculates the pixel coordinates of a given location defined by the latitude lat and the longitude long. The pixel coordinates are valid only if the function returns a TRUE value (i.e. if the graticule is calibrated and valid).

Hint: The pixel coordinates are in the reference frame of the scanned map image, use the method MapImageToControl to transform the coordinates to the screen reference frame.

Example: This method is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): movecar



Last Update: 2012-Oct-20