Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Geography maximum limit reached
Message
From
11/11/2013 09:14:56
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Geography maximum limit reached
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01587737
Message ID:
01587737
Views:
70
If I execute this SQL, I obtain 2493 records:
DECLARE @GeographyCoordinate Geography
DECLARE @Area Geography

SET @GeographyCoordinate=Geography::Point(47.79208,-65.71996,4326)
SET @Area=@GeographyCoordinate.STBuffer(9931*1000)

SELECT Company.PrimaryKey,@GeographyCoordinate.STDistance(Geography)/1000 AS Distance 
FROM Company 
WHERE @Area.STIntersects(Company.Geography)=1
However, if I add one kilometer:
DECLARE @GeographyCoordinate Geography
DECLARE @Area Geography

SET @GeographyCoordinate=Geography::Point(47.79208,-65.71996,4326)
SET @Area=@GeographyCoordinate.STBuffer(9932*1000)

SELECT Company.PrimaryKey,@GeographyCoordinate.STDistance(Geography)/1000 AS Distance 
FROM Company 
WHERE @Area.STIntersects(Company.Geography)=1
...it cannot find any more record.

Is this a limit of the buffer?
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
Next
Reply
Map
View

Click here to load this message in the networking platform