Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proximity search
Message
From
15/04/2010 07:14:24
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
14/04/2010 16:44:59
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01459851
Message ID:
01460238
Views:
39
>>
>>DECLARE @g geography,
>>    @area geography ;
>>SET @g = geography::Point(47.7795,-65.7191,4326) ; --Petit-Rocher
>>SET @area = @g.STBuffer(250) ;
>>
>>SELECT  locationId,
>>        Latitude,
>>        Longitude,
>>        @g.STDistance(geoPoint) AS distance
>>FROM    ( SELECT    locationId,
>>                    Latitude,
>>                    Longitude,
>>                    geography::Point(Latitude,Longitude,4326) AS geoPoint
>>          FROM      result
>>        ) geoData
>>WHERE   @area.STIntersects(geoData.geoPoint) = 1 ;
>
>I see that this one uses the meters approach. I like that. Also, what does the 4326 stand for?
>
>I tested that and it works fine. Thanks

It is a datum SRID (spatial reference ID). Don't bother with it if you are not into GIS yourself (earth's coordinate system uses a series of different datums - reference systems. 4326 is the SRID of most common WGS 84 datum and also SQL server's default).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform