views:

68

answers:

3

In SQL Server 2005 what column type should I use to store a LatLng Coordinate?

For example a Lat coordinate like 135.0058554

I know there are new types in SQL Server 2008 but I'm stuck with SQL Server 2005 for the time being.

thanks

A: 

Use Decimal.

For example:

Decimal(18,15) for high precision.

Leniel Macaferi
A: 

We're using numeic (12,8) and haven't had any problems with 55,000 Australian geocoded addresses.

Dave Barker
A: 

We use "float" (8 bytes/15 digits), which has adequate (~micron) resolution for most needs and good performance/storage efficiency.

W.r.t. @OMG Ponies' point, I'm a proponent of signed decimal degrees over DMS.

p.s. a latitude of 135.0058554 is REALLY REALLY far north! :-)

Robert Calhoun
thanks - well spotted actually that was the lon value.
Chin