As mentioned previously, the
GEOMETRY data type is implemented as a CLR data type in SQL Server and is used to represent data in a Euclidean (flat) coordinate system. The
GEOMETRY type is predefined and available in each database. Any variable, parameter, or table column can be declared with the
GEOMETRY data type, and you can operate on geometry data in the same manner as you would use other CLR types using the built-in methods to create, validate, and query geometry data.
SQL Server provides a number of methods for the
GEOGRAPHY data types. Covering all the available methods is beyond the scope of this chapter. The examples provided here touch on some of the more common methods. For more information ...