<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:56:20 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-1191] $within:$center returns documents outside of the given circle</title>
                <link>https://jira.mongodb.org/browse/SERVER-1191</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The first command returns a document which is outside of the given circle. Decreasing the radius doesn&apos;t help. &lt;br/&gt;
&amp;gt; db.aggregates.find({position:{$within:{$center:[&lt;span class=&quot;error&quot;&gt;&amp;#91;46.16760025, 8.79330351666667&amp;#93;&lt;/span&gt;,0.00001]}}})&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;4c07ca39f18d653fb9000001&quot;), &quot;position&quot; : [ 46.16997015, 8.799318833333333 ] }

&lt;p&gt;The geoNear command returns the same object but calculates a distance which is higher than the radius used in the above command.&lt;br/&gt;
&amp;gt; db.runCommand( &lt;/p&gt;
{ geoNear : &quot;aggregates&quot; , near : [46.16760025, 8.79330351666667], num : 1 }
&lt;p&gt; );&lt;br/&gt;
{&lt;br/&gt;
	&quot;ns&quot; : &quot;myway.aggregates&quot;,&lt;br/&gt;
	&quot;near&quot; : &quot;1100100000010100101100100010000011010000101110010100&quot;,&lt;br/&gt;
	&quot;results&quot; : [&lt;br/&gt;
		{&lt;br/&gt;
			&quot;dis&quot; : 0.0064640792077458676,&lt;br/&gt;
			&quot;obj&quot; : &lt;/p&gt;
{
				&quot;_id&quot; : ObjectId(&quot;4c07ca39f18d653fb9000001&quot;),
				&quot;position&quot; : [
					46.16997015,
					8.799318833333333
				]
			}
&lt;p&gt;		}&lt;br/&gt;
	],&lt;br/&gt;
	&quot;stats&quot; : &lt;/p&gt;
{
		&quot;time&quot; : 0,
		&quot;btreelocs&quot; : 0,
		&quot;nscanned&quot; : 1,
		&quot;objectsLoaded&quot; : 1,
		&quot;avgDistance&quot; : 0.0064640792077458676
	}
&lt;p&gt;,&lt;br/&gt;
	&quot;ok&quot; : 1&lt;br/&gt;
}&lt;br/&gt;
&amp;gt; &lt;/p&gt;</description>
                <environment></environment>
        <key id="12068">SERVER-1191</key>
            <summary>$within:$center returns documents outside of the given circle</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="richard.kreuter">Richard Kreuter</assignee>
                                    <reporter username="werehamster">Tomas Carnecky</reporter>
                        <labels>
                    </labels>
                <created>Thu, 3 Jun 2010 12:05:14 +0000</created>
                <updated>Tue, 12 Jul 2016 00:30:14 +0000</updated>
                            <resolved>Wed, 30 Jun 2010 12:33:48 +0000</resolved>
                                    <version>1.5.2</version>
                                    <fixVersion>1.5.4</fixVersion>
                                    <component>Geo</component>
                                        <votes>2</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="15237" author="richard@10gen.com" created="Wed, 30 Jun 2010 12:33:48 +0000"  >&lt;p&gt;By inspection, this bug went away in commit 93661510e975f9c8a62f315c6a602fecbf50cbfb.&lt;/p&gt;</comment>
                            <comment id="14624" author="auto" created="Tue, 8 Jun 2010 16:55:49 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;kreuter&apos;, &apos;name&apos;: &apos;Richard Kreuter&apos;, &apos;email&apos;: &apos;richard@10gen.com&apos;}
&lt;p&gt;Message: Add an error term for distance comparisons in geo search.  Part of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-848&quot; title=&quot;$center on geoquery doesn&amp;#39;t return a circle but some kind of square&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-848&quot;&gt;&lt;del&gt;SERVER-848&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1191&quot; title=&quot;$within:$center returns documents outside of the given circle&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1191&quot;&gt;&lt;del&gt;SERVER-1191&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/93661510e975f9c8a62f315c6a602fecbf50cbfb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/93661510e975f9c8a62f315c6a602fecbf50cbfb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="14559" author="eliot" created="Thu, 3 Jun 2010 12:30:31 +0000"  >&lt;p&gt;its for floating point rounding errors&lt;/p&gt;

&lt;p&gt;it needs to scale intelligently though will change&lt;/p&gt;</comment>
                            <comment id="14556" author="werehamster" created="Thu, 3 Jun 2010 12:23:18 +0000"  >&lt;p&gt;While looking through the source I found this: (&lt;a href=&quot;http://github.com/mongodb/mongo/blob/master/db/index_geo2d.cpp#L1347&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/blob/master/db/index_geo2d.cpp#L1347&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;virtual bool checkDistance( const GeoHash&amp;amp; h , double&amp;amp; d ){&lt;br/&gt;
 d = _g-&amp;gt;distance( _start , h );&lt;br/&gt;
 GEODEBUG( &quot;\t &quot; &amp;lt;&amp;lt; h &amp;lt;&amp;lt; &quot;\t&quot; &amp;lt;&amp;lt; d );&lt;br/&gt;
 return d &amp;lt;= ( _maxDistance + .01 );&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;Why is there the +.01? If I replace it with .000001 the query from the description no longer returns the document (which is the correct behavior).&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 3 Jun 2010 12:30:31 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 34 weeks ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 34 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>richard.kreuter</customfieldvalue>
            <customfieldvalue>werehamster</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpltr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrik9b:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>21934</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hs9u9r:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>