GeoCache.Common.Repository.MongoRepository.GetByEnvelope C# (CSharp) Method

GetByEnvelope() public method

Get all geometries inside the envelope from a featureClass
public GetByEnvelope ( string featureClassName, IEnvelope envelope ) : IEnumerable
featureClassName string FeatureClass name
envelope IEnvelope Envelope
return IEnumerable
        public IEnumerable<IGeometry> GetByEnvelope(string featureClassName, IEnvelope envelope)
        {
            var result =
                this.GetCollection(featureClassName).FindAs<BsonDocument>(
                    Query.WithinRectangle("coord", envelope.MinX, envelope.MinY, envelope.MaxX, envelope.MaxY));

            return result.Select(Parser);
        }