public override void Visit(SqlGeoNearCallScalarExpression sqlGeoNearCallScalarExpression)
        {
            this.writer.Write("(");
            this.writer.Write("_ST_DISTANCE");
            this.writer.Write("(");
            sqlGeoNearCallScalarExpression.PropertyRef.Accept(this);
            this.writer.Write(",");
            sqlGeoNearCallScalarExpression.Geometry.Accept(this);
            this.writer.Write(")");
            this.writer.Write(" BETWEEN ");

            if (sqlGeoNearCallScalarExpression.NumberOfPoints == null)
            {
                this.writer.Write(sqlGeoNearCallScalarExpression.MinimumDistance);
                this.writer.Write(" AND ");
                this.writer.Write(sqlGeoNearCallScalarExpression.MaximumDistance);
            }
            else
            {
                this.writer.Write(SqlGeoNearCallScalarExpression.NearMinimumDistanceName);
                this.writer.Write(" AND ");
                this.writer.Write(SqlGeoNearCallScalarExpression.NearMaximumDistanceName);
            }

            this.writer.Write(")");
        }
 public abstract void Visit(SqlGeoNearCallScalarExpression scalarExpression);
 public override SqlObject Visit(SqlGeoNearCallScalarExpression sqlGeoNearCallScalarExpression)
 {
     throw new NotImplementedException("This is not part of the actual grammar");
 }
Example #4
0
 public override int Visit(SqlGeoNearCallScalarExpression sqlGeoNearCallScalarExpression)
 {
     throw new NotImplementedException("This DOM element is being removed.");
 }
 protected abstract SqlScalarExpression Visit(SqlGeoNearCallScalarExpression expression);