public static FeatureQueryExpression Intersects(ProjectionExpression projection, IGeometry geometry)
 {
     return(new FeatureQueryExpression(projection,
                                       null,
                                       SpatialBinaryExpression.Intersects(geometry),
                                       null, null));
 }
 public FeatureQueryExpression(AttributesPredicateExpression attributeFilter,
                               SpatialBinaryExpression spatialFilter, SortExpressionCollectionExpression sort)
     : base(new AllAttributesExpression(), new BinaryExpression(attributeFilter,
                                                                BinaryOperator.And,
                                                                spatialFilter), sort)
 {
 }
 public static FeatureQueryExpression Intersects(ProjectionExpression projection, IExtents extents)
 {
     return(new FeatureQueryExpression(projection,
                                       null,
                                       SpatialBinaryExpression.Intersects(extents),
                                       null, null));
 }
 public FeatureQueryExpression(ProjectionExpression projectionExpression,
                               BinaryExpression attributeFilter,
                               SpatialBinaryExpression spatialFilter,
                               OidCollectionExpression oidFilter, SortExpressionCollectionExpression sort)
 // TODO: Well, this is crazy. We need an init() function, and perhaps some more static creator methods.
     : base(projectionExpression,
            attributeFilter == null
                 ? spatialFilter == null
                         ? oidFilter
                         : oidFilter == null
                             ? (PredicateExpression)spatialFilter
                             : new BinaryExpression(spatialFilter, BinaryOperator.And, oidFilter)
                 : spatialFilter == null
                         ? oidFilter == null
                             ? attributeFilter
                             : new BinaryExpression(attributeFilter, BinaryOperator.And, oidFilter)
                         : oidFilter == null
                             ? new BinaryExpression(attributeFilter, BinaryOperator.And, spatialFilter)
                             : new BinaryExpression(attributeFilter,
                                                    BinaryOperator.And,
                                                    new BinaryExpression(oidFilter,
                                                                         BinaryOperator.And,
                                                                         spatialFilter)), sort)
 {
 }
 public FeatureQueryExpression(AttributeBinaryExpression attributeFilter,
                               SpatialBinaryExpression spatialFilter)
     : base(new AllAttributesExpression(), new BinaryExpression(attributeFilter,
                                                                BinaryOperator.And,
                                                                spatialFilter))
 {
 }
 public FeatureQueryExpression(FeatureQueryExpression expressionToCopy,
                               SpatialBinaryExpression replacementSpatialExpression)
     : this(expressionToCopy.Projection,
            expressionToCopy.SingleAttributePredicate,
            replacementSpatialExpression,
            expressionToCopy.OidPredicate, expressionToCopy.Sort)
 {
 }
 public FeatureQueryExpression(AttributesProjectionExpression attributes,
                               AttributeBinaryExpression attributeFilter,
                               SpatialBinaryExpression spatialFilter, SortExpressionCollectionExpression sort)
     : base(attributes, new BinaryExpression(attributeFilter,
                                             BinaryOperator.And,
                                             spatialFilter), sort)
 {
 }
 public FeatureQueryExpression(AttributesProjectionExpression attributes,
                               AttributesPredicateExpression attributeFilter,
                               SpatialBinaryExpression spatialFilter)
     : base(attributes, new BinaryExpression(attributeFilter,
                                             BinaryOperator.And,
                                             spatialFilter))
 {
 }
Exemplo n.º 9
0
        public Boolean Equals(SpatialBinaryExpression other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            return(Equals(Left, other.Left) &&
                   Op == other.Op &&
                   Equals(Right, other.Right));
        }
Exemplo n.º 10
0
 public RasterQueryExpression(SpatialBinaryExpression spatialFilter)
     : base(new AllBandsExpression(), spatialFilter)
 {
 }
Exemplo n.º 11
0
 public FeatureQueryExpression(AttributesPredicateExpression attributeFilter,
                               SpatialBinaryExpression spatialFilter,
                               OidCollectionExpression oidFilter, SortExpressionCollectionExpression sort)
     : this(new AllAttributesExpression(), attributeFilter, spatialFilter, oidFilter, sort)
 {
 }
Exemplo n.º 12
0
 public FeatureQueryExpression(SpatialBinaryExpression spatialFilter, SortExpressionCollectionExpression sort)
     : base(new AllAttributesExpression(), spatialFilter, sort)
 {
 }
Exemplo n.º 13
0
 public FeatureQueryExpression(AttributeBinaryExpression attributeFilter,
                               SpatialBinaryExpression spatialFilter,
                               OidCollectionExpression oidFilter)
     : this(new AllAttributesExpression(), attributeFilter, spatialFilter, oidFilter, null)
 {
 }
Exemplo n.º 14
0
 public FeatureQueryExpression(SpatialBinaryExpression spatialFilter)
     : base(new AllAttributesExpression(), spatialFilter)
 {
 }