<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:52:43 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-39657] BigPolygons $geoIntersects , areas greater than single hemisphere</title>
                <link>https://jira.mongodb.org/browse/SERVER-39657</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Hi,&lt;br/&gt;
&#160;&lt;br/&gt;
&#160;&lt;br/&gt;
&quot;The custom MongoDB CRS uses a counter-clockwise winding order and allows&#160;&lt;a href=&quot;https://docs.mongodb.com/manual/reference/operator/query/geoIntersects/#op._S_geoIntersects&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;$geoIntersects&lt;/tt&gt;&lt;/a&gt;&#160;to support queries with a single-ringed GeoJSON&#160;&lt;a href=&quot;https://docs.mongodb.com/manual/reference/geojson/#geojson-polygon&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;polygon&lt;/a&gt;&#160;whose area is greater than or equal to a single hemisphere. If the specified polygon is smaller than a single hemisphere,&#160;the behavior of&#160;&lt;a href=&quot;https://docs.mongodb.com/manual/reference/operator/query/geoIntersects/#op._S_geoIntersects&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;$geoIntersects&lt;/tt&gt;&lt;/a&gt;with the MongoDB CRS is the same as with the default CRS. See also&#160;&lt;a href=&quot;https://docs.mongodb.com/manual/reference/operator/query/geoIntersects/#geointersects-big-poly&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&#8220;Big&#8221; Polygons&lt;/a&gt;.&quot;&lt;/p&gt;



&lt;p&gt;{&lt;br/&gt;
&#160; &amp;lt;location field&amp;gt;: {&lt;br/&gt;
&#160; &#160; &#160;$geoIntersects: {&lt;br/&gt;
&#160; &#160; &#160; &#160; $geometry: {&lt;br/&gt;
&#160; &#160; &#160; &#160; &#160; &#160;type: &quot;Polygon&quot; ,&lt;br/&gt;
&#160; &#160; &#160; &#160; &#160; &#160;coordinates: [ &amp;lt;coordinates&amp;gt; ],&lt;br/&gt;
&#160; &#160; &#160; &#160; &#160; &#160;crs: &lt;/p&gt;
{
&#160; &#160; &#160; &#160; &#160; &#160; &#160; type: &quot;name&quot;,
&#160; &#160; &#160; &#160; &#160; &#160; &#160; properties: \{ name: &quot;urn:x-mongodb:crs:strictwinding:EPSG:4326&quot; }
&lt;p&gt;&#160; &#160; &#160; &#160; &#160; &#160;}&lt;br/&gt;
&#160; &#160; &#160; &#160; }&lt;br/&gt;
&#160; &#160; &#160;}&lt;br/&gt;
&#160; }&lt;br/&gt;
}&lt;br/&gt;
&#160;&lt;br/&gt;
I want to make&#160;&lt;a href=&quot;https://docs.mongodb.com/manual/reference/operator/query/geoIntersects/#op._S_geoIntersects&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;$geoIntersects&lt;/tt&gt;&lt;/a&gt;&#160;queries for Geojson kept in database that intersects the Polygon. However, the the area can be greater than a single hemisphere or not. For that I have to use the crs property highlighted above.&lt;br/&gt;
&#160;&lt;br/&gt;
&lt;font color=&quot;#494747&quot;&gt;&lt;a href=&quot;https://docs.mongodb.com/manual/reference/operator/query/geoIntersects/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/reference/operator/query/geoIntersects/&lt;/a&gt;&#160;says that &quot;&lt;/font&gt;the behavior of&#160;&lt;a href=&quot;https://docs.mongodb.com/manual/reference/operator/query/geoIntersects/#op._S_geoIntersects&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;$geoIntersects&lt;/tt&gt;&lt;/a&gt;with the MongoDB CRS is the same as with the default CRS&quot;, but if I keep the custom Crs property , and the area is smaller than a single hemisphere I get the intersections from the complementary area. So it seems not to keep the defautl crs behaviour for areas smaller than a single hemisphere.&lt;br/&gt;
&#160;&lt;br/&gt;
&#160;&lt;br/&gt;
&#160;&lt;br/&gt;
Can you help on this issue please?&lt;/p&gt;</description>
                <environment></environment>
        <key id="700120">SERVER-39657</key>
            <summary>BigPolygons $geoIntersects , areas greater than single hemisphere</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="13202">Works as Designed</resolution>
                                        <assignee username="daniel.hatcher@mongodb.com">Danny Hatcher</assignee>
                                    <reporter username="MongoDB2018PB">PL [X]</reporter>
                        <labels>
                            <label>query-44-grooming</label>
                    </labels>
                <created>Tue, 19 Feb 2019 11:53:20 +0000</created>
                <updated>Fri, 27 Oct 2023 13:53:18 +0000</updated>
                            <resolved>Tue, 6 Aug 2019 16:49:23 +0000</resolved>
                                    <version>4.0.0</version>
                                                    <component>Geo</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="2359853" author="daniel.hatcher" created="Tue, 6 Aug 2019 16:49:12 +0000"  >&lt;p&gt;I&apos;ve opened &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-12941&quot; title=&quot;Clarify Big Polygon coordinates must be counter-clockwise&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-12941&quot;&gt;&lt;del&gt;DOCS-12941&lt;/del&gt;&lt;/a&gt; to clarify that all queries and data must have coordinates listed counter-clockwise for Big Polygons. As everything is working correctly, I will close this ticket as Working as Designed.&lt;/p&gt;</comment>
                            <comment id="2315432" author="craig.homa" created="Mon, 8 Jul 2019 16:00:43 +0000"  >&lt;p&gt;Scheduling into a sprint so someone can take a further look at what is really going on here.&lt;/p&gt;</comment>
                            <comment id="2178936" author="mongodb2018pb" created="Tue, 12 Mar 2019 20:50:14 +0000"  >&lt;p&gt;Hi Eric,,&lt;/p&gt;

&lt;p&gt;your comment from 06 Mar 2019 06:39:09 PM solved my problem.&lt;/p&gt;</comment>
                            <comment id="2173056" author="eric.sedor" created="Wed, 6 Mar 2019 19:00:38 +0000"  >&lt;p&gt;The SERVER project is for bug reports and feature requests. Unfortunately it is not the place for clarifying how MongoDB or geospatial coordinate reference systems work.&lt;/p&gt;

&lt;p&gt;Again, for support discussion please post on the&#160;&lt;a href=&quot;https://groups.google.com/group/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-user group&lt;/a&gt;&#160;or&#160;&lt;a href=&quot;https://stackoverflow.com/questions/tagged/mongodb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Stack Overflow with the&#160;&lt;tt&gt;mongodb&lt;/tt&gt;&#160;tag&lt;/a&gt;. A question like this involving more discussion would be best posted on the mongodb-user group.&lt;/p&gt;</comment>
                            <comment id="2173038" author="mongodb2018pb" created="Wed, 6 Mar 2019 18:54:03 +0000"  >&lt;p&gt;Hi Eric, thank you for your answer,&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;To clarify, should I always use&#160;counter-clockwise winding order and&#160;&quot;urn:x-mongodb:crs:strictwinding:EPSG:4326&quot; CRS property?&lt;/p&gt;

&lt;p&gt;Can you confirm that If&#160; &lt;b&gt;always using&#160;counter-clockwise winding order and if&#160; it is not a big polygon&lt;/b&gt;, MongoDB behaves as &lt;b&gt;default CRS&lt;/b&gt; , regardless of specifying &quot;urn:x-mongodb:crs:strictwinding:EPSG:4326&quot; property in the query? and if it is &lt;b&gt;a big polygon it behaves as expected?&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I have no means of identifiying correctly big polygons (areas greater than a single hemisphere).&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="2173004" author="eric.sedor" created="Wed, 6 Mar 2019 18:39:09 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=MongoDB2018PB&quot; class=&quot;user-hover&quot; rel=&quot;MongoDB2018PB&quot;&gt;MongoDB2018PB&lt;/a&gt; we are not seeing anything to indicate a bug yet.&lt;/p&gt;

&lt;p&gt;Please check out &lt;a href=&quot;https://www.mongodb.com/blog/post/mongodb-30-features-big-polygon&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this blog&lt;/a&gt; for some guidance.&lt;/p&gt;

&lt;p&gt;One thing that may be leading you to see unexpected results is that the polygons in your queries are specified in clockwise winding order. For expected results with big polygons and the &quot;urn:x-mongodb:crs:strictwinding:EPSG:4326&quot; CRS, queries and data should use counter-clockwise winding order.&lt;/p&gt;

&lt;p&gt;But for support discussion please post on the &lt;a href=&quot;https://groups.google.com/group/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-user group&lt;/a&gt; or &lt;a href=&quot;https://stackoverflow.com/questions/tagged/mongodb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Stack Overflow with the &lt;tt&gt;mongodb&lt;/tt&gt; tag&lt;/a&gt;. A question like this involving more discussion would be best posted on the mongodb-user group.&lt;/p&gt;</comment>
                            <comment id="2172654" author="mongodb2018pb" created="Wed, 6 Mar 2019 15:35:29 +0000"  >&lt;p&gt;Hi Eric,&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Any news on this issue? It is really important as some developments depend on this MongoDB feature.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Best&lt;/p&gt;</comment>
                            <comment id="2166261" author="mongodb2018pb" created="Thu, 28 Feb 2019 15:56:03 +0000"  >
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.getCollection(&apos;App&apos;).aggregate([ { &quot;$match&quot; : { &quot;version.status&quot; : &quot;A&quot; , &quot;$and&quot; : [{ &quot;Y&quot; : &quot;XXX&quot;}, { &quot;version.number&quot; : &quot;1&quot;}]}} , { &quot;$sort&quot; : { &quot;version.date&quot; : -1}} , { &quot;$limit&quot; : 1} , { &quot;$unwind&quot; : &quot;$region.place&quot;} , { &quot;$match&quot; : { &quot;region.place.fence&quot; : { &quot;$geoIntersects&quot; : { &quot;$geometry&quot; :&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;{ &quot;type&quot; : &quot;Polygon&quot; , &quot;coordinates&quot; : [ [ [ -80.65646219998598 , 79.85312694622819] , [ 130.45321181416512 , &lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;79.85312694622819] , [ 130.45321181416512 , -68.52351256702978] , &lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;[ -80.65646219998598 , -68.52351256702978] , [ -80.65646219998598 , 79.85312694622819]]]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;,&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;crs&quot;:{ &quot;type&quot;: &quot;name&quot;, &quot;properties&quot;: \{ &quot;name&quot;: &quot;urn:x-mongodb:crs:strictwinding:EPSG:4326&quot; }}}}}}} , { &quot;$group&quot; : { &quot;_id&quot; : &quot;$region.place&quot;}}])&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;I get the same number of countries whether I use &quot;crs&quot; or not.&lt;/p&gt;

&lt;p&gt;It could happen I would receive 25 countries with the polygon {{&quot;[[[ -80.65646219998598 , 79.85312694622819] , [ 130.45321181416512 , &lt;br/&gt;
79.85312694622819] , [ 130.45321181416512 , -68.52351256702978] , &lt;br/&gt;
[ -80.65646219998598 , -68.52351256702978] , [ -80.65646219998598 , 79.85312694622819]]]&quot;}} if the area would be greater than a single hemisphere. However these coordinates intersect the 180&#186; meridian. I know that because I inserted a LineString&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&#160;&quot;fence&quot; :{ &quot;type&quot; : &quot;LineString&quot;, &quot;coordinates&quot; : [ [ 180.0, 90.0 ], [ 180.0, -90.0 ] ] }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;&#160;and I get the intersection of the polygon with the LineString. So it might mean that instead of intersecting with the smallest rectangle in the map, it is intersecting with the biggest rectangle that includes the 25 countries. The thing is that if I use the crs I get the same results, 25 countries. So it does not make sense.&#160;&lt;/p&gt;</comment>
                            <comment id="2163801" author="eric.sedor" created="Wed, 27 Feb 2019 00:18:56 +0000"  >&lt;p&gt;Thanks for all the information so far &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=MongoDB2018PB&quot; class=&quot;user-hover&quot; rel=&quot;MongoDB2018PB&quot;&gt;MongoDB2018PB&lt;/a&gt;. We&apos;re still investigating and appreciate your patience.&lt;/p&gt;</comment>
                            <comment id="2162087" author="mongodb2018pb" created="Mon, 25 Feb 2019 20:03:47 +0000"  >&lt;p&gt;I enclose the document for the queries: &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/attachment/209939/209939_REGIONS.json&quot; title=&quot;REGIONS.json attached to SERVER-39657&quot;&gt;REGIONS.json&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.mongodb.org/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="2162076" author="mongodb2018pb" created="Mon, 25 Feb 2019 19:58:28 +0000"  >&lt;p&gt;Hi,&#160;&lt;/p&gt;

&lt;p&gt;&#160;I enclose a document.&lt;/p&gt;

&lt;p&gt;The first query returns all visible countries. The second query returns all countries (25) but the ones visible in the map.&lt;/p&gt;</comment>
                            <comment id="2161843" author="eric.sedor" created="Mon, 25 Feb 2019 18:04:10 +0000"  >&lt;p&gt;MongoDB CRS should behave the same as the default CRS when the polygon is smaller than a single hemisphere. To investigate the possibility of a bug, we&apos;d want to see a specific document that you expect to be returned for both of the above queries but which is only being returned for the first.&lt;/p&gt;

&lt;p&gt;Importantly, the SERVER project is for reporting bugs and feature requests. For MongoDB-related support discussion please post on the &lt;a href=&quot;https://groups.google.com/group/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-user group&lt;/a&gt; or &lt;a href=&quot;https://stackoverflow.com/questions/tagged/mongodb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Stack Overflow with the &lt;tt&gt;mongodb&lt;/tt&gt; tag&lt;/a&gt;. A question like this involving more discussion would be best posted on the mongodb-user group.&lt;/p&gt;</comment>
                            <comment id="2159650" author="mongodb2018pb" created="Fri, 22 Feb 2019 14:20:56 +0000"  >&lt;p&gt;If I make the following aggregation I get the intersection with all the countries visible in map:&lt;/p&gt;

&lt;p&gt;&#160; &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/209839/209839_image.png&quot; width=&quot;100%&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;[ { &quot;$match&quot; : { &quot;version.status&quot; : &quot;A&quot; , &quot;$and&quot; : [{ &quot;Y&quot; : &quot;XXX&quot;}, { &quot;version.number&quot; : &quot;1&quot;}]}} , { &quot;$sort&quot; : { &quot;version.date&quot; : -1}} , { &quot;$limit&quot; : 1} , { &quot;$unwind&quot; : &quot;$region.place&quot;} , { &quot;$match&quot; : { &quot;region.place.fence&quot; : { &quot;$geoIntersects&quot; : { &quot;$geometry&quot; : { &quot;type&quot; : &quot;Polygon&quot; , &quot;coordinates&quot; : [ [ [ -36.57112330198288 , 75.86871204077615] , [ 58.03005807101726 , 75.86871204077615] , [ 58.03005807101726 , -26.458180414737257] , [ -36.57112330198288 , -26.458180414737257] , [ -36.57112330198288 , 75.86871204077615]]]}}}}} , { &quot;$group&quot; : { &quot;_id&quot; : &quot;$region.place&quot;}}]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;&#160;When I rotate the map nearly 45&#186; (using google maps) :&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/209840/209840_image+%281%29.png&quot; width=&quot;100%&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;[ { &quot;$match&quot; : { &quot;version.status&quot; : &quot;A&quot; , &quot;$and&quot; : [{ &quot;Y&quot; : &quot;XXX&quot;}, { &quot;version.number&quot; : &quot;1&quot;}]}} , { &quot;$sort&quot; : { &quot;version.date&quot; : -1}} , { &quot;$limit&quot; : 1} , { &quot;$unwind&quot; : &quot;$region.place&quot;} , { &quot;$match&quot; : { &quot;region.place.fence&quot; : { &quot;$geoIntersects&quot; : { &quot;$geometry&quot; : { &quot;type&quot; : &quot;Polygon&quot; , &quot;coordinates&quot; : [ [ [ -80.65646219998598 , 79.85312694622819] , [ 130.45321181416512 , 79.85312694622819] , [ 130.45321181416512 , -68.52351256702978] , [ -80.65646219998598 , -68.52351256702978] , [ -80.65646219998598 , 79.85312694622819]]]}}}}} , { &quot;$group&quot; : { &quot;_id&quot; : &quot;$region.place&quot;}}]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;


&lt;p&gt;I no longer get the intersections.&#160; Why does not MongoDB identify the intersections if they are included in the coordinates&lt;/p&gt;</comment>
                            <comment id="2159216" author="mongodb2018pb" created="Thu, 21 Feb 2019 23:08:25 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;


&lt;p&gt;I wanted to know if the custom Crs strict winding has the same behavior as the default crs when the area is less than a single hemisphere ,i.e., if it changes the behavior to default in areas less than single hemisphere .&lt;/p&gt;

&lt;p&gt;I am also working with google maps and if I rotate the map more than 15 degrees mongodb does not intersect the google map GeoJsonPolygon with the areas kept in database when I use geointersects.&lt;/p&gt;


&lt;p&gt;How to know if the fence is greater than a single hemisphere ? I have an app making requests to mongodb database and if I need to know beforehand if the area exceeds an hemisphere it will not be accurate because I have no exact means is calculating the exact area of the GeoJsonPolygon.&lt;/p&gt;

&lt;p&gt;Mongo driver 3.10.1 , dB.version() 4.0.0.&lt;/p&gt;</comment>
                            <comment id="2157929" author="eric.sedor" created="Thu, 21 Feb 2019 01:08:30 +0000"  >&lt;p&gt;Thanks for writing in. We have a few questions:&lt;/p&gt;

&lt;p&gt;Can you clarify what MongoDB version you are running?&lt;/p&gt;

&lt;p&gt;Do we understand correctly that you are observing a case in which &quot;If the specified polygon is smaller than a single hemisphere, the behavior of $geoIntersects with the MongoDB CRS is the same as with the default CRS.&quot; is not accurate?&lt;/p&gt;

&lt;p&gt;Are you able to provide a specific operation and the results you are observing that you don&apos;t expect?&lt;/p&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="885317">DOCS-12941</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="209939" name="REGIONS.json" size="1788066" author="MongoDB2018PB" created="Mon, 25 Feb 2019 20:03:36 +0000"/>
                            <attachment id="209840" name="image (1).png" size="212977" author="MongoDB2018PB" created="Sat, 23 Feb 2019 14:33:20 +0000"/>
                            <attachment id="209839" name="image.png" size="739541" author="MongoDB2018PB" created="Sat, 23 Feb 2019 14:33:21 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>15.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 21 Feb 2019 01:08:30 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 27 weeks, 1 day 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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 27 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>craig.homa@mongodb.com</customfieldvalue>
            <customfieldvalue>daniel.hatcher@mongodb.com</customfieldvalue>
            <customfieldvalue>eric.sedor@mongodb.com</customfieldvalue>
            <customfieldvalue>MongoDB2018PB</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hunyjz:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="2882">Query 2019-08-12</customfieldvalue>

                        </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>
                                    <customfieldvalue><![CDATA[eric.sedor@mongodb.com]]></customfieldvalue>
    

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

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