Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Geography maximum limit reached
Message
De
11/11/2013 09:14:56
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Geography maximum limit reached
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01587737
Message ID:
01587737
Vues:
69
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform