Пример #1
0
        /// <summary>
        /// Configure distance from center point
        /// </summary>
        /// <param name="parameter">Parameter to configure</param>
        /// <param name="value">Distance from center point</param>
        public static ISpatialFilterParameter <TDocument> Distance <TDocument>(this ISpatialFilterParameter <TDocument> parameter, decimal value)
            where TDocument : Document
        {
            parameter.Distance = value;

            return(parameter);
        }
Пример #2
0
        /// <summary>
        /// Configure function used in spatial filter
        /// </summary>
        /// <param name="parameter">Parameter to configure</param>
        /// <param name="value">Function used in spatial filter</param>
        public static ISpatialFilterParameter <TDocument> FunctionType <TDocument>(this ISpatialFilterParameter <TDocument> parameter, SpatialFunctionType value)
            where TDocument : Document
        {
            parameter.FunctionType = value;

            return(parameter);
        }
Пример #3
0
        /// <summary>
        /// Configure center point to spatial filter
        /// </summary>
        /// <param name="parameter">Parameter to configure</param>
        /// <param name="value">Center point to spatial filter</param>
        public static ISpatialFilterParameter <TDocument> CenterPoint <TDocument>(this ISpatialFilterParameter <TDocument> parameter, GeoCoordinate value)
            where TDocument : Document
        {
            parameter.CenterPoint = value;

            return(parameter);
        }
Пример #4
0
        /// <summary>
        /// Configure expression used to find field name
        /// </summary>
        /// <param name="parameter">Parameter to configure</param>
        /// <param name="value">Expression used to find field name</param>
        public static ISpatialFilterParameter <TDocument> FieldExpression <TDocument>(this ISpatialFilterParameter <TDocument> parameter, Expression <Func <TDocument, object> > value)
            where TDocument : Document
        {
            parameter.FieldExpression = value;

            return(parameter);
        }