Condividi tramite


STDisjoint (tipo di dati geography)

Si applica a:SQL ServerDatabase SQL di AzureIstanza gestita di SQL di AzureDatabase SQL in Microsoft Fabric

Restituisce 1 se un'istanza geography è disgiunta a livello spaziale da un'altra istanza geography. In caso contrario, restituisce 0.

Syntax

  
.STDisjoint ( other_geography )  

Arguments

other_geography
Altra istanza geography da confrontare con l'istanza sulla quale viene chiamato STDisjoint().

Tipi restituiti

Tipo SQL Server restituito: bit

Tipo CLR restituito: SqlBoolean

Remarks

Due istanze geography sono disgiunte se l'intersezione dei relativi set di punti è vuota.

Questo metodo restituisce sempre Null se gli identificatori SRID delle istanze geography non corrispondono.

Examples

Nell'esempio seguente viene utilizzato STDisjoint() per verificare se due istanze geography sono disgiunte a livello spaziale.

DECLARE @g geography;  
DECLARE @h geography;  
SET @g = geography::STGeomFromText('LINESTRING(-122.360 47.656, -122.343 47.656)', 4326);  
SET @h = geography::STGeomFromText('POINT(-122.34900 47.65100)', 4326);  
SELECT @g.STDisjoint(@h);  

Vedere anche

Metodi OGC sulle istanze di geografia