Example #1
0
            /// <summary>Creates a Filter_Capabilities section for the current request.</summary>
            /// <returns>The Filter_Capabilities section for the current request.</returns>
            protected virtual Filter110.Filter_Capabilities CreateFilterCapabilitiesSection()
            {
                var ret = new Filter110.Filter_Capabilities()
                {
                    Id_Capabilities = new Filter110.Id_CapabilitiesType()
                    {
                        EID = new Filter110.EID[] {
                            new Filter110.EID()
                        }
                    },
                    Scalar_Capabilities = new Filter110.Scalar_CapabilitiesType()
                    {
                        ComparisonOperators = new Filter110.ComparisonOperatorsType()
                        {
                            ComparisonOperator = new string[] {
                                "LessThan",
                                "GreaterThan",
                                "LessThanEqualTo",
                                "GreaterThanEqualTo",
                                "EqualTo",
                                "NotEqualTo",
                                "Like"
                            }
                        },
                        LogicalOperators = new Filter110.LogicalOperators()
                    },
                    Spatial_Capabilities = new Filter110.Spatial_CapabilitiesType()
                    {
                        GeometryOperands = new Filter110.GeometryOperandsType()
                        {
                            GeometryOperand = new string[] {
                                "gml:Envelope",
                                "gml:Point",
                                "gml:LineString",
                                "gml:Polygon"
                            }
                        },
                        SpatialOperators = new Filter110.SpatialOperatorsType()
                        {
                            SpatialOperator = new Filter110.SpatialOperatorType[] {
                                new Filter110.SpatialOperatorType()
                                {
                                    name = "BBOX"
                                },
                                new Filter110.SpatialOperatorType()
                                {
                                    name = "Equals"
                                },
                                new Filter110.SpatialOperatorType()
                                {
                                    name = "Disjoint"
                                },
                                new Filter110.SpatialOperatorType()
                                {
                                    name = "Touches"
                                },
                                new Filter110.SpatialOperatorType()
                                {
                                    name = "Within"
                                },
                                new Filter110.SpatialOperatorType()
                                {
                                    name = "Overlaps"
                                },
                                new Filter110.SpatialOperatorType()
                                {
                                    name = "Crosses"
                                },
                                new Filter110.SpatialOperatorType()
                                {
                                    name = "Intersects"
                                },
                                new Filter110.SpatialOperatorType()
                                {
                                    name = "Contains"
                                },
                                new Filter110.SpatialOperatorType()
                                {
                                    name = "DWithin"
                                },
                                new Filter110.SpatialOperatorType()
                                {
                                    name = "Beyond"
                                }
                            }
                        }
                    }
                };

                ret.Untyped.Add(
                    new XAttribute(XNamespace.Xmlns + CreateUniquePrefix(Namespaces.OgcGml, ret.Untyped, "gml"), Namespaces.OgcGml)
                    );

                return(ret);
            }
Example #2
0
 public XRootNamespace(Filter_Capabilities root)
 {
     this.doc=new XDocument(root.Untyped);
     this.rootObject=root;
 }