Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Best field type for latitude / longitude
Tue, Feb 22 2011 8:42 AMPermanent Link

Aaron Christiansen

Hi there

I am looking to store lat / long values in an EDB and am curious which field data type would be best suited to storing values along the lines of

-37.8270253
145.1192291

without loss.

I am leaning towards multiplying the values by 1M and storing in NUMERIC, but interested in others' take on this.

Thanks!
Aaron
Tue, Feb 22 2011 9:10 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Aaron,

<< I am looking to store lat / long values in an EDB and am curious which
field data type would be best suited to storing values along the lines of

-37.8270253
145.1192291

without loss. >>

If you have a variable number of decimal places, then the only way to
represent this is to use a DOUBLE floating-point type.  NUMERIC/DECIMAL
types only go to 4 decimal places, so they probably won't work very well.

--
Tim Young
Elevate Software
www.elevatesoft.com
Image