Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Equivalent of atn function
Message
De
13/04/2010 18:40:47
 
 
À
13/04/2010 18:02:37
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01459871
Message ID:
01460093
Vues:
31
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform