Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalent of atn function
Message
From
13/04/2010 18:40:47
 
 
To
13/04/2010 18:02:37
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01459871
Message ID:
01460093
Views:
29
>You are using SQL 2008 and your values sound to be UTM values. Then why don't you simply utilize SQL 2008's spatial datatype and its methods. For example your location is somewhere near Petit-Rocher. Using Petit-rocher nord and sud coordinates:
>
>
DECLARE @g1 geography, @g2 geography;
>
>SET @g1 = geography::STGeomFromText('POINT(-65.7142 47.7661)', 4326);
>SET @g2 = geography::STGeomFromText('POINT(-65.7305 47.7975)', 4326);
>
>select @g1.STDistance(@g2);
I get result as 3698.76 meters which looked right to me.

Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform