where spatial.within(spatial.point(latitude, longitude), spatial.wkt('Circle(30 30 d=500.0000)'))
Where the shape is in WKT format and the relation is one of within, contains, disjoint, intersects. The above example will yield the same results as the example from the Radius Search section.
When using spatial.wkt() to define a polygon, the vertices (points that form the corners of the polygon) must be listed
in a counter-clockwise order:
All of the above examples are using the dynamic querying capabilities of RavenDB and will create automatic indexes to retrieve their results. However, spatial queries can also be performed against static indexes, and this is done in a very similar way.