Thunderstone Software Document Retreival and Management
Search:
Home Products News Support Contact Us About
Texis Manual

geocode2lat, geocode2lon

  geocode2lat(geocode)
  geocode2lon(geocode)

The geocode2lat and geocode2lon functions decode a geocode into a latitude or longitude coordinate, respectively. The returned coordinate is in the decimal degrees format. In version 5.01.1193955804 20071101 and later, an invalid geocode value (eg. -1) will return NaN (Not a Number).

If you want "degrees minutes seconds" (DMS) format, you can use dec2dms to convert it.

EXAMPLE

  select city, geocode2lat(geocode), geocode2lon(geocode) from geotest;

CAVEATS

As with latlon2geocode, the encoded value is platform-dependent in accuracy and format, so it should not be copied across platforms, and the returned coordinates from geocode2lat and geocode2lon may differ up to about half a minute from the original coordinates (due to the finite resolution of a long). In version 5.01.1193955804 20071101 and later, an invalid geocode value (eg. -1) will return NaN (Not a Number).


Copyright © Thunderstone Software     Last updated: Thu Mar 11 17:45:22 EST 2010
 
Home   ::   Products   ::   News   ::   Support   ::   Contact Us   ::   About
Copyright © 2010 Thunderstone Software LLC. All rights reserved.