Example #1
0
        public IFeatureDataReader ExecuteFeatureQuery(FeatureQueryExpression bounds,
                                                      FeatureQueryExecutionOptions options)
        {
            FeatureDataReader reader = new FeatureDataReader(_geoFactory, _features, bounds, options);

            return(reader);
        }
Example #2
0
        /// <summary>
        /// Retrieves a <see cref="IFeatureDataReader"/> for the features that
        /// match the given <paramref name="query"/>.
        /// </summary>
        /// <param name="query">Spatial query to execute.</param>
        /// <returns>An IFeatureDataReader to iterate over the results.</returns>
        public IFeatureDataReader ExecuteFeatureQuery(FeatureQueryExpression query)
        {
            if (query == null)
            {
                throw new ArgumentNullException("query");
            }

            FeatureDataReader reader = new FeatureDataReader(_geoFactory,
                                                             _features,
                                                             query,
                                                             FeatureQueryExecutionOptions.FullFeature);

            return(reader);
        }