Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Geography maximum limit reached
Message
De
12/11/2013 08:19:51
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01587737
Message ID:
01587828
Vues:
41
>From BOL:
>
>STBuffer (geography Data Type)
>
>distance
> Is a value of type float (double in the .NET Framework) specifying the distance from the geography instance around
>which to calculate the buffer.
>
> The maximum distance of the buffer cannot exceed 0.999 * π * minorAxis * minorAxis / majorAxis (~0.999 * 1/2 Earth’s
>circumference) or the full globe.
>
>
>So, maybe 9931*1000 exceed max distance, becuase
>
>DECLARE @GeographyCoordinate Geography
>DECLARE @Area Geography
>
>SET @GeographyCoordinate=Geography::Point(47.79208,-65.71996,4326)
>SET @Area=@GeographyCoordinate.STBuffer(9931*1000)
>
>SELECT @Area
>
>shows NULL as a result.

Thanks, the fact that it varies explains it. For some values, I can get it at 9930 to result like this. Some others, are ok up to 9931.

I have applied a maximum of 5000 kilometers for the proximity search which should be more than enough for our needs.
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