<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:57:33 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-1618] geodb -bbox query coordinates</title>
                <link>https://jira.mongodb.org/browse/SERVER-1618</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;im using /mongodb-linux-i686-1.6.0 and pymongo to do some geo-queries like bounding box on points and as it is said here:&lt;br/&gt;
&lt;a href=&quot;http://api.mongodb.org/python/1.8%2B/examples/geo.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://api.mongodb.org/python/1.8%2B/examples/geo.html&lt;/a&gt; I have first search coordinate as lower-left and the second search coordinate as upper-right. but it doesn&apos;t work quite fine.&lt;/p&gt;

&lt;p&gt;for instance this query :&lt;br/&gt;
        geodb.point_collection.find({&quot;addr:housenumber&quot;: &quot;420&quot;,&quot;addr:street&quot;: &quot;S Nevada St&quot;, &quot;loc&quot;: {&quot;$within&quot;: &lt;/p&gt;
{&quot;$box&quot;: [[-179,-179], [90, 90]]}
&lt;p&gt;}}):&lt;/p&gt;

&lt;p&gt;returns:&lt;/p&gt;
{u&apos;addr:housenumber&apos;: u&apos;420&apos;, u&apos;loc&apos;: [-117.372889, 33.192777],u&apos;addr:city&apos;: u&apos;Oceanside&apos;, u&apos;is_in:country&apos;: u&apos;United States ofAmerica&apos;, u&apos;addr:postcode&apos;: u&apos;92054&apos;, u&apos;is_in:city&apos;: u&apos;Oceanside&apos;,u&apos;is_in:country_code&apos;: u&apos;US&apos;, u&apos;addr:country&apos;: u&apos;US&apos;, &apos;is_in:state&apos;:u&apos;California&apos;, u&apos;source&apos;: u&apos;SanGIS Addresses Public Domain (http://www.sangis.org/)&amp;#39;, u&apos;id&apos;: u&apos;596715001&apos;, u&apos;_id&apos;:ObjectId(&apos;4c62eb6634e1c779b800017c&apos;), u&apos;type&apos;: u&apos;Point&apos;,u&apos;is_in:state_code&apos;: u&apos;CA&apos;, u&apos;addr:street&apos;: u&apos;S Nevada St&apos;}

&lt;p&gt;but this query&lt;br/&gt;
        geodb.point_collection.find({&quot;addr:housenumber&quot;: &quot;420&quot;,&quot;addr:street&quot;: &quot;S Nevada St&quot;, &quot;loc&quot;: {&quot;$within&quot;: &lt;/p&gt;
{&quot;$box&quot;: [[-118, 33],[0, 34]]}
&lt;p&gt;}}):&lt;/p&gt;

&lt;p&gt;returns this error:&lt;br/&gt;
    for doc in geodb.point_collection.find({&quot;addr:housenumber&quot;: &quot;420&quot;,&quot;addr:street&quot;: &quot;S Nevada St&quot;, &quot;loc&quot;: {&quot;$within&quot;: &lt;/p&gt;
{&quot;$box&quot;: [[-118, 33],[0, 34]]}
&lt;p&gt;}}):&lt;br/&gt;
  File &quot;/usr/local/lib/python2.6/dist-packages/pymongo/cursor.py&quot;,&lt;br/&gt;
line 565, in next   if len(self.__data) or self._refresh():&lt;br/&gt;
  File &quot;/usr/local/lib/python2.6/dist-packages/pymongo/cursor.py&quot;,&lt;br/&gt;
line 528, in &lt;em&gt;refresh    self.&lt;/em&gt;&lt;em&gt;query_spec(), self.&lt;/em&gt;_fields))&lt;br/&gt;
  File &quot;/usr/local/lib/python2.6/dist-packages/pymongo/cursor.py&quot;,&lt;br/&gt;
line 496, in _&lt;em&gt;send_message    self.&lt;/em&gt;&lt;em&gt;as_class, self.&lt;/em&gt;_tz_aware)&lt;br/&gt;
  File &quot;/usr/local/lib/python2.6/dist-packages/pymongo/helpers.py&quot;,&lt;br/&gt;
line 99, in _unpack_response    error_object&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;$err&amp;quot;&amp;#93;&lt;/span&gt;)&lt;br/&gt;
pymongo.errors.OperationFailure: database error: point not in range&lt;/p&gt;

&lt;p&gt;so the bbox coordinates are not lower-left and upper-right. not sure&lt;br/&gt;
wat they are.... &lt;/p&gt;

&lt;p&gt;thanks,&lt;br/&gt;
sima&lt;/p&gt;</description>
                <environment></environment>
        <key id="12765">SERVER-1618</key>
            <summary>geodb -bbox query coordinates</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="greg_10gen">Greg Studer</assignee>
                                    <reporter username="slotfi64">sima lotfi</reporter>
                        <labels>
                    </labels>
                <created>Wed, 11 Aug 2010 20:13:34 +0000</created>
                <updated>Tue, 12 Jul 2016 00:17:10 +0000</updated>
                            <resolved>Wed, 15 Jun 2011 17:32:52 +0000</resolved>
                                    <version>1.5.0</version>
                    <version>1.8.1</version>
                                    <fixVersion>1.9.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="37179" author="greg_10gen" created="Mon, 13 Jun 2011 00:38:27 +0000"  >&lt;p&gt;This may have to do with boundary conditions in 1.8.1 - can you reproduce the results if all your points are within &lt;span class=&quot;error&quot;&gt;&amp;#91;-178, 178&amp;#93;&lt;/span&gt;?  In particular, the exact maximum bound can be translated to the minimum bound, which seems like it may be one of the issues here.  As far as 90/90.1, can you try setting the &quot;bits&quot; option when creating the index to 32 as a workaround?&lt;br/&gt;
If you&apos;re willing to install v1.9, you should get better error messages which tell you exactly which value, if any, is still causing the problem (as well as fixing the boundary and 90 degree issues). &lt;/p&gt;</comment>
                            <comment id="36926" author="jesterfred" created="Thu, 9 Jun 2011 20:17:55 +0000"  >&lt;p&gt;Add the following to strange beavior - this time with version 1.8.1&lt;/p&gt;

&lt;p&gt;query = { &quot;Placemark.Point.coordinates&quot; : { &quot;$within&quot; : &lt;/p&gt;
{ &quot;$box&quot; : [ [ 172.3265993445506 , 9.18637494622202] , [ 180.0 , 20.3450110477435]]}
&lt;p&gt;}}&lt;br/&gt;
Fatal error: need an area &amp;gt; 0 &lt;/p&gt;

&lt;p&gt;The box does have an area.&lt;/p&gt;</comment>
                            <comment id="36912" author="jesterfred" created="Thu, 9 Jun 2011 19:07:14 +0000"  >&lt;p&gt;I am seeing similar behaviour.  The following query should not fail.  The 2d index is not specifying a max or min range.  It is using the default of (-180,180].&lt;/p&gt;

&lt;p&gt;&amp;gt; db.AirTraffic.find({&quot;Placemark.Point.coordinates&quot; : { &quot;$within&quot; : &lt;/p&gt;
{ &quot;$box&quot; : [ [ 90.1 , 9.0] , [ 179.0 , 20.0]]}
&lt;p&gt;}})&lt;br/&gt;
&amp;gt; error: &lt;/p&gt;
{ &quot;$err&quot; : &quot;point not in range&quot;, &quot;code&quot; : 13027 }

&lt;p&gt;The point is in range and should not result in an error.  If I change the first longitude from 90.1 to 80.1, all is well.  The failure seems to be across the 90 boundary - which is lat and is still within the default range.&lt;/p&gt;

&lt;p&gt;&amp;gt; db.serverBuildInfo() &lt;br/&gt;
{&lt;br/&gt;
	&quot;version&quot; : &quot;1.6.3&quot;,&lt;br/&gt;
	&quot;gitVersion&quot; : &quot;nogitversion&quot;,&lt;br/&gt;
	&quot;sysInfo&quot; : &quot;Linux allspice 2.6.24-28-server #1 SMP Wed Aug 18 21:17:51 UTC 2010 x86_64 BOOST_LIB_VERSION=1_42&quot;,&lt;br/&gt;
	&quot;bits&quot; : 64,&lt;br/&gt;
	&quot;debug&quot; : false,&lt;br/&gt;
	&quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;

</comment>
                            <comment id="18890" author="auto" created="Tue, 5 Oct 2010 06:12:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;astaple&apos;, &apos;name&apos;: &apos;Aaron&apos;, &apos;email&apos;: &apos;aaron@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1618&quot; title=&quot;geodb -bbox query coordinates&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1618&quot;&gt;&lt;del&gt;SERVER-1618&lt;/del&gt;&lt;/a&gt; remove debugging&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/7b24925eb9a94cbd9bb2652cf304b51e3ca48d0a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/7b24925eb9a94cbd9bb2652cf304b51e3ca48d0a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="16932" author="richard@10gen.com" created="Mon, 16 Aug 2010 18:33:13 +0000"  >&lt;p&gt;I am not able to reproduce this using mongodb 1.6.0 on a 64bit osx machine.  I think this is an old bug that was fixed a number of weeks ago; if you&apos;re using a recent build, could you show the output of db.serverBuildInfo()?&lt;/p&gt;

&lt;p&gt;&amp;gt; db.serverBuildInfo();&lt;br/&gt;
{&lt;br/&gt;
	&quot;version&quot; : &quot;1.6.0&quot;,&lt;br/&gt;
	&quot;gitVersion&quot; : &quot;2c7f164b653f0d703947572ede064aed41cc2185&quot;,&lt;br/&gt;
	&quot;sysInfo&quot; : &quot;Darwin erh2.10gen.cc 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386 BOOST_LIB_VERSION=1_37&quot;,&lt;br/&gt;
	&quot;bits&quot; : 64,&lt;br/&gt;
	&quot;ok&quot; : 1&lt;br/&gt;
}&lt;br/&gt;
&amp;gt; use test&lt;br/&gt;
switched to db test&lt;br/&gt;
&amp;gt; db.s1618.save(&lt;/p&gt;
{&apos;addr:housenumber&apos;: &apos;420&apos;, &apos;loc&apos;: [-117.372889, 33.192777],&apos;addr:city&apos;: &apos;Oceanside&apos;, &apos;is_in:country&apos;: &apos;United States ofAmerica&apos;, &apos;addr:postcode&apos;: &apos;92054&apos;, &apos;is_in:city&apos;: &apos;Oceanside&apos;,&apos;is_in:country_code&apos;: &apos;US&apos;, &apos;addr:country&apos;: &apos;US&apos;, &apos;is_in:state&apos;:&apos;California&apos;, &apos;source&apos;: &apos;SanGIS Addresses Public Domain (http://www.sangis.org/)&apos;, &apos;id&apos;: &apos;596715001&apos;, &apos;_id&apos;:ObjectId(&apos;4c62eb6634e1c779b800017c&apos;), &apos;type&apos;: &apos;Point&apos;,&apos;is_in:state_code&apos;: &apos;CA&apos;, &apos;addr:street&apos;: &apos;S Nevada St&apos;}
&lt;p&gt;);&lt;br/&gt;
&amp;gt; db.s1618.ensureIndex(&lt;/p&gt;
{loc:&quot;2d&quot;}
&lt;p&gt;);&lt;br/&gt;
&amp;gt; db.s1618.find({&quot;addr:housenumber&quot;: &quot;420&quot;,&quot;addr:street&quot;: &quot;S Nevada St&quot;, &quot;loc&quot;: {&quot;$within&quot;: &lt;/p&gt;
{&quot;$box&quot;: [[-118, 33],[0, 34]]}
&lt;p&gt;}});&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;4c62eb6634e1c779b800017c&quot;), &quot;addr:housenumber&quot; : &quot;420&quot;, &quot;loc&quot; : [ -117.372889, 33.192777 ], &quot;addr:city&quot; : &quot;Oceanside&quot;, &quot;is_in:country&quot; : &quot;United States ofAmerica&quot;, &quot;addr:postcode&quot; : &quot;92054&quot;, &quot;is_in:city&quot; : &quot;Oceanside&quot;, &quot;is_in:country_code&quot; : &quot;US&quot;, &quot;addr:country&quot; : &quot;US&quot;, &quot;is_in:state&quot; : &quot;California&quot;, &quot;source&quot; : &quot;SanGIS Addresses Public Domain (http://www.sangis.org/)&quot;, &quot;id&quot; : &quot;596715001&quot;, &quot;type&quot; : &quot;Point&quot;, &quot;is_in:state_code&quot; : &quot;CA&quot;, &quot;addr:street&quot; : &quot;S Nevada St&quot; }</comment>
                            <comment id="16772" author="richard@10gen.com" created="Wed, 11 Aug 2010 22:22:16 +0000"  >&lt;p&gt;Could you paste the output of db.serverBuildInfo() at the mongo shell?&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>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 11 Aug 2010 22:22:16 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 36 weeks, 3 days 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>
                            12 years, 36 weeks, 3 days 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_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10020"><![CDATA[Linux]]></customfieldvalue>

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

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>21666</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|ht0se7:</customfieldvalue>

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