Click to Rate and Give Feedback
MSDN
MSDN Library
SQL Server
SQL Server 2008
Database Engine
Technical Reference
 Point (geography Data Type)
Community Content
In this section
Statistics Annotations (2)
Collapse All/Expand All Collapse All
SQL Server 2008 Books Online (October 2009)
Point (geography Data Type)

Constructs a geography instance representing a Point instance from its x and y values and a spatial reference ID (SRID).

Point ( Lat, Long, SRID )
Lat

Is a float expression representing the x-coordinate of the Point being generated.

Long

Is a float expression representing the y-coordinate of the Point being generated.

SRID

Is an int expression representing the SRID of the geography instance you wish to return.

SQL Server return type: geography

CLR return type: SqlGeography

The following example uses Point() to create a geography instance.

DECLARE @g geography; 
SET @g = geography::Point(-122.34900, 47.65100, 4326)
SELECT @g.ToString();
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
I think the Lat only can be between -90 and 90 degrees      Skywalker01   |   Edit   |   Show History

I think the Lat only can be between -90 and 90 degrees (+90 for the north pole and -90 for the south pole?), is that correct?


Constructs a geography instance representing a Point instance from its x and y values and a spatial reference ID (SRID).

Syntax
Point ( Lat, Long, SRID )
Arguments
Lat

Is a float expression representing the x-coordinate of the Point being generated.

Long

Is a float expression representing the y-coordinate of the Point being generated.

SRID

Is an int expression representing the SRID of the geography instance you wish to return.

Return Types

SQL Server return type: geography

CLR return type: SqlGeography

Examples

The following example uses Point() to create a geography instance.

DECLARE @g geography; 
SET @g = geography::Point(-122.34900, 47.65100, 4326)
SELECT @g.ToString();
Tags What's this?: Add a tag
Flag as ContentBug
Flip the Definitions      Mike C_1   |   Edit   |   Show History
Lat - Is a float expression representing the x-coordinate of the Point being generated.

Long - Is a float expression representing the y-coordinate of the Point being generated.

This is reversed and the code sample doesn't work.
Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker