Thunderstone Software Document Retreival and Management
Search:
Advanced Search
Home | Products | Company | News | Tech Support | Demos | Contact Us
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: Wed Sep 10 11:42:21 EDT 2008
 
Home   ::   Products   ::   Company   ::   News   ::   Tech Support   ::   Demos   ::   Contact Us
Copyright © 2009 Thunderstone Software LLC. All rights reserved.