ExpGeoCompare Method

Create compare geospatial operation.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public static Exp GeoCompare(
	Exp left,
	Exp right
)

Parameters

left  Exp
 
right  Exp
 

Return Value

Exp

Example

C#
// Query region within coordinates.
string region =
"{ " +
"  \"type\": \"Polygon\", " +
"  \"coordinates\": [ " +
"    [[-122.500000, 37.000000],[-121.000000, 37.000000], " +
"     [-121.000000, 38.080000],[-122.500000, 38.080000], " +
"     [-122.500000, 37.000000]] " +
"    ] " +
"}";
Exp.GeoCompare(Exp.GeoBin("a"), Exp.Geo(region))

See Also