saran
saran

Reputation: 1291

GEOMETRY and GEOGRAPHY difference SQL Server 2008

What is difference between GEOMETRY and GEOGRAPHY in SQL Server 2008?

Upvotes: 27

Views: 17087

Answers (2)

marc_s
marc_s

Reputation: 754368

Read the wonderful manual at:

http://msdn.microsoft.com/en-us/library/bb933790.aspx

The geometry Data Type

The geometry data type (planar) supported by SQL Server conforms to the Open Geospatial Consortium (OGC) Simple Features for SQL Specification version 1.1.0.

For more information on OGC specifications, see the following:

* OGC Specifications, Simple Feature Access Part 1 - Common

Architecture * OGC Specifications, Simple Feature Access Part 2 – SQL Options

The geography Data Type

The geography data type (geodetic) stores ellipsoidal (round-earth) data, such as GPS latitude and longitude coordinates.

It comes down to what model of the earth you're using - a planar or geodetic one.

Upvotes: 19

AakashM
AakashM

Reputation: 63340

GEOMETRY is for planar spatial data (that is, data on a flat surface)

GEOGRAPHY is for terrestrial spatial data (that is, data on the (curved) surface of the Earth)

See eg here, here for more.

Upvotes: 42

Related Questions