GeometryOperationExtensionsIsValidDetailed Method
Updated: June 30, 2017
Determines if the geometry specified is valid and can be indexed or used in queries by Azure DocumentDB database service.
If a geometry is not valid, it will not be indexed. Also during query time invalid geometries are equivalent to undefined.
Assembly: Microsoft.Azure.Documents.Client (in Microsoft.Azure.Documents.Client.dll)
Parameters
- geometry
-
Type:
The geometry to check for validity.
Return Value
Type:Instance of GeometryValidationResult.
This example select all the documents which contain invalid geometries which were not indexed.
var invalidReason = documents.Where(document => !document.Location.IsValid()).Select(document => document.Location.IsValidDetailed());
Show: